Browse code

First commit

Qurban Ullah authored on 27/02/2018 18:17:39
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,40 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=alsa-plugins
6
+pkgver=1.1.4
7
+pkgrel=1
8
+pkgdesc="Extra alsa plugins"
9
+arch=(i686 x86_64)
10
+url="http://www.alsa-project.org"
11
+license=(GPL)
12
+depends=(alsa-lib)
13
+makedepends=(libpulse jack ffmpeg)
14
+optdepends=('libpulse: PulseAudio plugin'
15
+            'jack: Jack plugin'
16
+            'ffmpeg: libavcodec resampling plugin, a52 plugin'
17
+            'libsamplerate: libsamplerate resampling plugin'
18
+            'speex: libspeexdsp resampling plugin')
19
+source=("ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2")
20
+md5sums=('ada0163e0e84c787bfc929ad0f3f5cb8')
21
+
22
+build() {
23
+	cd "${srcdir}/${pkgname}-${pkgver}"
24
+	CFLAGS+=' -DHAVE_STDINT_H' # We have issue similar to this one https://code.google.com/p/cantata/issues/detail?id=627
25
+	./configure --prefix=/usr
26
+	make
27
+}
28
+
29
+package() {
30
+	cd "${srcdir}/${pkgname}-${pkgver}"
31
+	make DESTDIR="$pkgdir" install
32
+
33
+	mv "$pkgdir"/usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf.example \
34
+	"$pkgdir"/usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf
35
+
36
+	install -d "$pkgdir/usr/share/doc/$pkgname"
37
+	install -m644 doc/README* doc/*.txt "$pkgdir/usr/share/doc/$pkgname/"
38
+}
39
+
40
+