summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorPhilip Goto2020-11-21 21:53:34 +0100
committerPhilip Goto2020-11-21 21:53:34 +0100
commita7e60db8a78a4cc6cca0c5f1b895cbe62458b949 (patch)
tree53b09acdfec64d2193ff00eda7b0abe324446038 /PKGBUILD
downloadaur-a7e60db8a78a4cc6cca0c5f1b895cbe62458b949.tar.gz
Initialize package
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD37
1 files changed, 37 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..f41ade17b48
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer: Philip Goto <philip.goto@gmail.com>
+
+pkgname=callaudiod-git
+pkgver=0.0.4.r2.g6c8ffc2
+pkgrel=1
+pkgdesc="Call audio routing daemon"
+arch=(i686 x86_64 armv7h aarch64)
+url="https://gitlab.com/mobian1/callaudiod"
+license=(GPL3)
+depends=(alsa-lib glib2 libpulse)
+makedepends=(git meson)
+provides=(callaudiod)
+conflicts=(callaudiod)
+source=("git+${url}.git")
+md5sums=(SKIP)
+
+prepare() {
+ ln -s ../src/callaudiod.h callaudiod/libcallaudio/callaudiod.h
+}
+
+pkgver() {
+ cd callaudiod
+ git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ arch-meson callaudiod build
+ meson compile -C build
+}
+
+check() {
+ meson test -C build --print-errorlogs
+}
+
+package() {
+ DESTDIR="${pkgdir}" meson install -C build
+}