Subject: [alpine-aports] [PATCH] testing/alsa-plugins: Separate a52 plugin, add jack plugin.

From: Taner Tas <[email-masked]>
Date: Wed, 20 Dec 2017 10:31:06 +0000

---
 testing/alsa-plugins/APKBUILD | 20 +++++++++++++++-----
 1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/testing/alsa-plugins/APKBUILD b/testing/alsa-plugins/APKBUILD
index 4ab0a6ac5..9673adbe5 100644
--- a/testing/alsa-plugins/APKBUILD
+++ b/testing/alsa-plugins/APKBUILD
@@ -1,13 +1,13 @@
 # Maintainer: Taner Tas <[email-masked]>
 pkgname=alsa-plugins
 pkgver=1.1.5
-pkgrel=0
+pkgrel=1
 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"
+makedepends="linux-headers alsa-lib-dev speex-dev ffmpeg-dev libsamplerate-dev pulseaudio-dev jack-dev"
+subpackages="$pkgname-lavcrate $pkgname-pulse $pkgname-a52 $pkgname-jack"
 source="ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2"
 
 prepare() {
@@ -33,19 +33,29 @@ 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/
 }
 
+a52() {
+	pkgdesc="Converts S16 linear sound format to A52 compressed format and sends it to an SPDIF output"
+	mkdir -p "$subpkgdir"/usr/lib/alsa-lib/
+	mv "$pkgdir"/usr/lib/alsa-lib/*a52.so "$subpkgdir"/usr/lib/alsa-lib/
+}
+
+jack() {
+	pkgdesc="Allows native ALSA applications to work with jackd"
+	mkdir -p "$subpkgdir"/usr/lib/alsa-lib/
+	mv "$pkgdir"/usr/lib/alsa-lib/*jack.so "$subpkgdir"/usr/lib/alsa-lib/
+}
+
 package() {
 	cd "$builddir"
 	make DESTDIR="$pkgdir" install
-- 
2.15.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---