diff options
author | Amitayas Banerjee | 2022-09-09 13:35:54 +0530 |
---|---|---|
committer | Amitayas Banerjee | 2022-09-09 13:35:54 +0530 |
commit | f8d71d48d9099613e1282678602095113bc25eb8 (patch) | |
tree | edc6f01e4bf33608608ff5500067e2511d64e42d | |
parent | ac5589df98951f53f1ec043d0aa112c17c3d6ec9 (diff) | |
download | aur-f8d71d48d9099613e1282678602095113bc25eb8.tar.gz |
use meson to build
-rw-r--r-- | .SRCINFO | 5 | ||||
-rw-r--r-- | PKGBUILD | 18 |
2 files changed, 11 insertions, 12 deletions
@@ -2,17 +2,18 @@ pkgbase = helvum-git pkgdesc = GTK-based patchbay for pipewire, inspired by the JACK tool catia pkgver = 0.3.2.115.gc1ec56e pkgrel = 1 - url = https://gitlab.freedesktop.org/ryuukyu/helvum + url = https://gitlab.freedesktop.org/pipewire/helvum.git arch = x86_64 arch = aarch64 license = GPL3 makedepends = git makedepends = rust + makedepends = meson depends = gtk4 depends = pipewire provides = helvum conflicts = helvum - source = git+https://gitlab.freedesktop.org/ryuukyu/helvum.git + source = git+https://gitlab.freedesktop.org/pipewire/helvum.git sha256sums = SKIP pkgname = helvum-git @@ -7,24 +7,22 @@ arch=('i686' 'x86_64') url="https://gitlab.freedesktop.org/ryuukyu/helvum" license=('GPL3') depends=('pipewire' 'gtk4') -makedepends=('rust' 'cargo' 'git') +makedepends=('rust' 'cargo' 'git' 'meson') provides=('helvum') conflicts=('helvum') -source=("$_pkgname::git+https://gitlab.freedesktop.org/ryuukyu/helvum.git") +source=("$_pkgname::git+https://gitlab.freedesktop.org/pipewire/helvum.git") sha384sums=('SKIP') pkgver() { - cd "$_pkgname" - echo "$(grep '^version =' Cargo.toml | head -n1 | awk -F '"' '{print $2}').$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" + cd "$_pkgname" + echo "$(grep '^version =' Cargo.toml | head -n1 | awk -F '"' '{print $2}').$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)" } build() { - cd $_pkgname - RUSTUP_TOOLCHAIN=stable cargo build --release --locked --all-features --target-dir=target - } + meson --prefix=/usr --buildtype=plain "$pkgname-$pkgver" build + meson compile -C build +} package() { - cd "$srcdir/$_pkgname" - install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin" - install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" + meson install -C build --destdir "$pkgdir" } |