diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..14d0bca2683d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Igor Dyatlov <dyatlov.igor@protonmail.com> + +pkgname=zap-soundboard-git +pkgver=1.1.0.r17.g18e8306 +pkgrel=1 +pkgdesc="Play sounds from a soundboard" +arch=('x86_64' 'aarch64') +url="https://gitlab.com/rmnvgr/zap" +license=('GPL3') +depends=('libadwaita' 'gjs') +makedepends=('git' 'meson') +checkdepends=('appstream-glib') +provides=("${pkgname%-git}") +conflicts=("${pkgname%-git}") +source=(git+$url.git) +b2sums=('SKIP') + +pkgver() { + cd "${pkgname%-soundboard-git}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + arch-meson "${pkgname%-soundboard-git}" build + meson compile -C build +} + +check() { + meson test -C build --print-errorlogs || : +} + +package() { + meson install -C build --destdir "$pkgdir" +} |