diff options
author | Christian Hesse | 2015-07-08 14:54:09 +0200 |
---|---|---|
committer | Christian Hesse | 2015-07-08 14:54:09 +0200 |
commit | 6bd73b42ab41659c5b87b319045976056d960b22 (patch) | |
tree | 0fbb5a818d7ab76869812c52e37ffab8cc4aa009 /PKGBUILD | |
download | aur-6bd73b42ab41659c5b87b319045976056d960b22.tar.gz |
initial import of apulse 0.1.6-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..0b53adb15a4b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Christian Hesse <arch@eworm.de> +# Contributor: speps <speps at aur dot archlinux dot org> + +pkgname=apulse +pkgver=0.1.6 +pkgrel=1 +pkgdesc='PulseAudio emulation for ALSA' +arch=('i686' 'x86_64') +url='https://github.com/i-rinat/apulse' +license=('custom:MIT') +depends=('alsa-lib' 'glib2') +makedepends=('cmake') +install=apulse.install +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz" + 'asoundrc.sample') +sha256sums=('f9ffbf7aff96680beff3243758e5c1e0d4ac9043d4bd6cbfb219890b4b91c9f3' + 'e851197ec9ebff528154210751cd6d5c426abfc2b1aa34343580407b1ea789a4') + +prepare() { + cd apulse-${pkgver} + + mkdir -p build +} + +build() { + cd apulse-${pkgver}/build + + cmake .. -DCMAKE_INSTALL_PREFIX=/usr \ + -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" +} + |