aboutsummaryrefslogtreecommitdiffstats
path: root/testing/alsa-plugins
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2017-04-19 09:24:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-04-20 15:16:17 +0000
commitdf2bdad2dfbca594d37fd7727e68f3b03f32eba3 (patch)
treea74e72d4acfe364e831da4f3f364e601ae0a1443 /testing/alsa-plugins
parentcff862c32909209f3292159036dc02c07b96b749 (diff)
downloadaports-df2bdad2dfbca594d37fd7727e68f3b03f32eba3.tar.bz2
aports-df2bdad2dfbca594d37fd7727e68f3b03f32eba3.tar.xz
testing/alsa-plugins: new aport
http://www.alsa-project.org Alsa Plugins
Diffstat (limited to 'testing/alsa-plugins')
-rw-r--r--testing/alsa-plugins/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/testing/alsa-plugins/APKBUILD b/testing/alsa-plugins/APKBUILD
new file mode 100644
index 0000000000..4cb7deff1c
--- /dev/null
+++ b/testing/alsa-plugins/APKBUILD
@@ -0,0 +1,55 @@
+# Maintainer: Taner Tas <taner76@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"