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

From: Taner Tas <[email-masked]>
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
@@ -0,0 +1,55 @@
+# Maintainer: Taner Tas <[email-masked]>
+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:  [email-masked]
Help:         [email-masked]
---

---

From: Taner Tas <[email-masked]>
Date: Wed, 19 Apr 2017 09:53:32 +0000

---
 testing/alsa-plugins/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testing/alsa-plugins/APKBUILD b/testing/alsa-plugins/APKBUILD
index c6b764db..4cb7deff 100644
--- a/testing/alsa-plugins/APKBUILD
+++ b/testing/alsa-plugins/APKBUILD
@@ -27,8 +27,8 @@ build() {
 }
 
 check(){
-        cd "$builddir"
-        make check
+	cd "$builddir"
+	make check
 }
 
 lavcrate() {
-- 
2.12.2

---