summaryrefslogtreecommitdiff
path: root/libre/alsa-lib-static/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/alsa-lib-static/PKGBUILD')
-rw-r--r--libre/alsa-lib-static/PKGBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/alsa-lib-static/PKGBUILD b/libre/alsa-lib-static/PKGBUILD
new file mode 100644
index 000000000..3a73fcb05
--- /dev/null
+++ b/libre/alsa-lib-static/PKGBUILD
@@ -0,0 +1,30 @@
+# Maintainer: Márcio Silva <coadde@parabola.nu>
+# based of alsa-lib
+
+_pkgname=alsa-lib
+pkgname=alsa-lib-static
+pkgver=1.1.1
+pkgrel=1
+pkgdesc="An alternative implementation of Linux sound support (static libraries only)"
+arch=('i686' 'x86_64' 'armv7h')
+url="http://www.alsa-project.org"
+depends=('alsa-lib')
+makedepends=('python2')
+license=('GPL')
+options=('staticlibs')
+source=(ftp://ftp.alsa-project.org/pub/lib/$_pkgname-$pkgver.tar.bz2)
+sha1sums=('09f7e9b2d88287e04a4bb0d56e0cbc9018e524ec')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ ./configure --prefix=/usr --with-pythonlibs="-lpthread -lm -ldl -lpython2.7" --with-pythonincludes=-I/usr/include/python2.7 --enable-static --disable-shared
+ make
+}
+
+package() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ make DESTDIR="$pkgdir" install
+
+ # remove conflicting files
+ rm -vr ${pkgdir}/usr/{bin,include,lib/{alsa-lib,pkgconfig},share}
+}