summaryrefslogtreecommitdiff
path: root/pcr/apulse/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pcr/apulse/PKGBUILD')
-rw-r--r--pcr/apulse/PKGBUILD49
1 files changed, 49 insertions, 0 deletions
diff --git a/pcr/apulse/PKGBUILD b/pcr/apulse/PKGBUILD
new file mode 100644
index 000000000..5b3abe196
--- /dev/null
+++ b/pcr/apulse/PKGBUILD
@@ -0,0 +1,49 @@
+# Maintainer (aur): Christian Hesse <arch@eworm.de>
+# Contributor: speps <speps at aur dot archlinux dot org>
+# Maintainer: Parabola Hackers <dev@lists.parabola.nu>
+
+pkgname=apulse
+pkgver=0.1.13
+pkgrel=1
+pkgdesc='PulseAudio emulation for ALSA'
+arch=('i686' 'x86_64')
+arch+=('armv7h')
+url='https://github.com/i-rinat/apulse'
+license=('custom:MIT')
+license+=('LGPL2.1') # pulseaudio headers
+depends=('alsa-lib' 'glib2')
+makedepends=('cmake')
+install=apulse.install
+source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz"
+ 'asoundrc.sample')
+sha256sums=('9234ec4e10e408b9c01d5f4ea768ad1fc15494217c932db2c435202a9c7b5efd'
+ 'e851197ec9ebff528154210751cd6d5c426abfc2b1aa34343580407b1ea789a4')
+
+prepare() {
+ cd apulse-${pkgver}
+
+ mkdir -p build
+}
+
+build() {
+ cd apulse-${pkgver}/build
+
+ cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
+ -Wno-dev \
+ -DCMAKE_BUILD_TYPE=Release
+ make
+}
+
+package() {
+ cd apulse-${pkgver}/build
+
+ make DESTDIR="${pkgdir}/" install
+
+ # sample asoundrc
+ install -Dm644 ../../${source[1]} \
+ "${pkgdir}/usr/share/${pkgname}/${source[1]}"
+
+ # license
+ install -Dm644 ../LICENSE.MIT \
+ "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}