changed PKGBUILD
This commit is contained in:
parent
62e1fd21e8
commit
9903a8611f
43
PKGBUILD
43
PKGBUILD
|
@ -1,37 +1,30 @@
|
||||||
# Maintainer: Emmanuel Gil Peyrot <linkmauve@linkmauve.fr>
|
pkgname='helvum-git'
|
||||||
|
_pkgname='helvum'
|
||||||
pkgname=helvum-git
|
pkgver=0.3.2.115.gc1ec56e
|
||||||
pkgver=0.1.0.r13.g3fccff0
|
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='GTK-based patchbay for pipewire, inspired by the JACK tool catia'
|
pkgdesc="A GTK patchbay for pipewire."
|
||||||
arch=('x86_64' 'aarch64')
|
arch=('i686' 'x86_64')
|
||||||
url='https://gitlab.freedesktop.org/ryuukyu/helvum'
|
url="https://gitlab.freedesktop.org/ryuukyu/helvum"
|
||||||
license=('GPL3')
|
license=('GPL3')
|
||||||
depends=('gtk4' 'pipewire')
|
depends=('pipewire' 'gtk4')
|
||||||
makedepends=('git' 'rust')
|
makedepends=('rust' 'cargo' 'git')
|
||||||
provides=('helvum')
|
provides=('helvum')
|
||||||
conflicts=('helvum')
|
conflicts=('helvum')
|
||||||
source=('git+https://gitlab.freedesktop.org/ryuukyu/helvum.git')
|
source=("$_pkgname::git+https://gitlab.freedesktop.org/ryuukyu/helvum.git")
|
||||||
sha256sums=('SKIP')
|
sha384sums=('SKIP')
|
||||||
|
|
||||||
pkgver() {
|
pkgver() {
|
||||||
cd helvum
|
cd "$_pkgname"
|
||||||
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
echo "$(grep '^version =' Cargo.toml | head -n1 | awk -F '"' '{print $2}').$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
|
||||||
}
|
}
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd helvum
|
cd $_pkgname
|
||||||
|
RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target
|
||||||
cargo update
|
}
|
||||||
cargo build \
|
|
||||||
--release
|
|
||||||
}
|
|
||||||
|
|
||||||
package() {
|
package() {
|
||||||
cd helvum
|
cd "$srcdir/$_pkgname"
|
||||||
|
install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin"
|
||||||
cargo install \
|
install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||||
--no-track \
|
|
||||||
--root "$pkgdir/usr" \
|
|
||||||
--path "$srcdir/helvum"
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue