summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorJavier Tiá2020-04-03 14:43:57 -0600
committerJavier Tiá2020-04-03 14:44:40 -0600
commitbd98182fd19accd37fe775d51f885ca23aaf86d5 (patch)
treee023670b09b467637faac6ba1a6f478cda234a57 /PKGBUILD
downloadaur-bd98182fd19accd37fe775d51f885ca23aaf86d5.tar.gz
Bump up alsa-sndio 0.2-1
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD29
1 files changed, 29 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..f626b2f6da57
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,29 @@
+# Maintainer: Javier Tia <javier dot tia at gmail dot com>
+
+pkgname=alsa-sndio
+pkgver=0.2
+pkgrel=1
+pkgdesc="ALSA PCM to play audio on sndio servers"
+arch=('i686' 'x86_64')
+url="https://github.com/Duncaen/alsa-sndio"
+license=('ISC')
+depends=(alsa-lib sndio)
+source=("https://github.com/Duncaen/${pkgname}/archive/${pkgver}.tar.gz")
+sha512sums=('50371881eaceb224703632df1078ea6d39eb51d9cc652029cc75a41f4b66f4a1d73f8f9b07cfbba27c11db5c6bcf5c4c9c80e26d0d7b8a305bc6a48f9f63e8c7')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ sed -i 's?/usr/local?/usr?g' Makefile
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}/" install
+
+ install -d "${pkgdir}/usr/share/licenses/${pkgname}"
+ install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}