aboutsummaryrefslogtreecommitdiffstats
path: root/community/alsa-plugins/APKBUILD
diff options
context:
space:
mode:
authorTaner Tas <taner76@gmail.com>2019-01-12 10:06:46 +0300
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-12 11:41:15 +0000
commit96a4b82036347b0908f035b682035adc6a6cdedc (patch)
tree5a28e9f5743733e80603732341c38250f86d7280 /community/alsa-plugins/APKBUILD
parent51771d65ca85865b55c3b4a63cdcfe7ca4983b0e (diff)
downloadaports-96a4b82036347b0908f035b682035adc6a6cdedc.tar.gz
aports-96a4b82036347b0908f035b682035adc6a6cdedc.tar.bz2
aports-96a4b82036347b0908f035b682035adc6a6cdedc.tar.xz
testing/alsa-plugins/APKBUILD -> community/alsa-plugins:
* Upgrade to 1.1.8 * Move from testing * Include corresponding config files to subpackages * Cosmetic changes
Diffstat (limited to 'community/alsa-plugins/APKBUILD')
-rw-r--r--community/alsa-plugins/APKBUILD112
1 files changed, 112 insertions, 0 deletions
diff --git a/community/alsa-plugins/APKBUILD b/community/alsa-plugins/APKBUILD
new file mode 100644
index 0000000000..14a985d991
--- /dev/null
+++ b/community/alsa-plugins/APKBUILD
@@ -0,0 +1,112 @@
+# Contributor: Taner Tas <taner76@gmail.com>
+# Maintainer: Taner Tas <taner76@gmail.com>
+pkgname=alsa-plugins
+pkgver=1.1.8
+pkgrel=0
+pkgdesc="Advanced Linux Sound Architecture (ALSA) plugins"
+url="http://www.alsa-project.org"
+arch="all !s390x"
+license="GPL-2.0-or-later LGPL-2.1-or-later"
+makedepends="
+ alsa-lib-dev
+ ffmpeg-dev
+ jack-dev
+ libsamplerate-dev
+ linux-headers
+ pulseaudio-dev
+ speex-dev
+ "
+subpackages="
+ $pkgname-doc
+ $pkgname-pulse
+ $pkgname-lavrate
+ $pkgname-a52
+ $pkgname-jack
+ "
+source="
+ ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2
+ "
+
+prepare() {
+ default_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
+}
+
+doc() {
+ default_doc
+ mkdir -p "$subpkgdir"/usr/share/doc/$pkgname
+ cat > "$subpkgdir"/usr/share/doc/$pkgname/README.alpine <<EOF
+ ==> please note that alsa-plugins-lavcrate has been renamed to lavrate.
+ ==> So you need to run: apk add alsa-plugins-lavrate
+EOF
+}
+
+lavrate() {
+ pkgdesc="FFmpeg samplerate conversion plugins for alsa"
+ _mv_lib *lavrate*
+ _mv_conf 10-rate-lav.conf
+}
+
+pulse() {
+ pkgdesc="Pulseaudio support plugins for alsa-only applications"
+ _mv_lib *pulse.so
+ _mv_conf *pulseaudio*
+}
+
+a52() {
+ pkgdesc="Converts S16 linear sound format to A52 compressed format and sends it to an SPDIF output"
+ _mv_lib *a52.so
+ _mv_conf 60-a52-encoder.conf
+}
+
+jack() {
+ pkgdesc="Allows native ALSA applications to work with jackd"
+ _mv_lib *jack.so
+ _mv_conf 50-jack.conf
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+ find $pkgdir -name *.la -type f -exec rm -f {} \;
+}
+
+_mv_lib() {
+ mkdir -p "$subpkgdir"/usr/lib/alsa-lib/
+
+ for i in "$@"; do
+ mv "$pkgdir"/usr/lib/alsa-lib/${i} \
+ "$subpkgdir"/usr/lib/alsa-lib/
+ done
+}
+
+_mv_conf() {
+ mkdir -p "$subpkgdir"/etc/alsa/conf.d/ \
+ "$subpkgdir"/usr/share/alsa/alsa.conf.d
+
+ for i in "$@"; do
+ mv "$pkgdir"/usr/share/alsa/alsa.conf.d/${i} \
+ "$subpkgdir"/usr/share/alsa/alsa.conf.d/
+ mv "$pkgdir"/etc/alsa/conf.d/${i} \
+ "$subpkgdir"/etc/alsa/conf.d/
+ done
+}
+
+sha512sums="bb1a4411921ec332f47b43515f6d3b4c03a01568854950b9b5c3f0d8172d9a0c4a5b3652bc64c62eae5ea3aaa5d95fe3d32c0a213fe99adf490a9807bcb58ecd alsa-plugins-1.1.8.tar.bz2"