summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 12864d22d92798378263118f5c49e0d752999ae4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pkgname='helvum-git'
_pkgname='helvum'
pkgver=0.3.4.134.gdf72a68
pkgrel=1
pkgdesc="A GTK patchbay for pipewire."
arch=('i686' 'x86_64')
url="https://gitlab.freedesktop.org/pipewire/helvum.git"
license=('GPL3')
depends=('pipewire' 'gtk4')
makedepends=('appstream-glib' 'rust' 'cargo' 'clang' 'git' 'meson')
provides=('helvum')
conflicts=('helvum')
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)"
}

build() {
  meson --prefix=/usr --buildtype=plain "$pkgname-$pkgver" build
  meson compile -C build
}

package() {
  meson install -C build --destdir "$pkgdir"
}