Mail archive
alpine-aports

[alpine-aports] [PATCH] testing/alsa-plugins: new aport

From: Taner Tas <taner76_at_gmail.com>
Date: Wed, 19 Apr 2017 09:24:32 +0000

http://www.alsa-project.org
Alsa Plugins
---
 testing/alsa-plugins/APKBUILD | 55 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)
 create mode 100644 testing/alsa-plugins/APKBUILD
diff --git a/testing/alsa-plugins/APKBUILD b/testing/alsa-plugins/APKBUILD
new file mode 100644
index 00000000..c6b764db
--- /dev/null
+++ b/testing/alsa-plugins/APKBUILD
_at_@ -0,0 +1,55 @@
+# Maintainer: Taner Tas <taner76_at_gmail.com>
+pkgname=alsa-plugins
+pkgver=1.1.1
+pkgrel=0
+pkgdesc="Alsa Plugins"
+url="http://www.alsa-project.org"
+arch="all"
+license="GPL"
+makedepends="linux-headers alsa-lib-dev speex-dev ffmpeg-dev libsamplerate-dev pulseaudio-dev"
+subpackages="$pkgname-lavcrate $pkgname-pulse"
+source="ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2"
+
+prepare() {
+	update_config_sub
+}
+
+build() {
+	cd "$builddir"
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--localstatedir=/var
+	make
+}
+
+check(){
+        cd "$builddir"
+        make check
+}
+
+lavcrate() {
+	pkgdesc="FFmpeg samplerate conversion plugins for alsa"
+	depends="alsa-lib ffmpeg-libs"
+	mkdir -p "$subpkgdir"/usr/lib/alsa-lib/
+	mv "$pkgdir"/usr/lib/alsa-lib/*lavcrate* "$subpkgdir"/usr/lib/alsa-lib/
+}
+
+pulse() {
+	pkgdesc="Pulseaudio support plugins for alsa-only applications"
+	depends="alsa-lib pulseaudio-libs"
+	mkdir -p "$subpkgdir"/usr/lib/alsa-lib/
+	mv "$pkgdir"/usr/lib/alsa-lib/*pulse.so "$subpkgdir"/usr/lib/alsa-lib/
+	mv "$pkgdir"/usr/share "$subpkgdir"/usr/
+}
+
+package() {
+	cd "$builddir"
+	make DESTDIR="$pkgdir" install
+	find $pkgdir -name *.la -type f -exec rm -f {} \;
+}
+
+sha512sums="9dd277cb5cce144ce4e5e0010cebcba0f8634c783e7bcd80ce6d04b198d6de5150a2764df3087a39a468b5fb7c4578de2e252095568e811dedaa5e7ffdbeb7c9  alsa-plugins-1.1.1.tar.bz2"
-- 
2.12.2
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Apr 19 2017 - 09:24:32 UTC