blob: b194830ad57fdd29f2319daf0c089cac7e0a88fc (
plain) (
tree)
|
|
# Contributor: Taner Tas <taner76@gmail.com>
# Maintainer: Max Rees <maxcrees@me.com>
pkgname=alsa-plugins
pkgver=1.1.7
pkgrel=0
pkgdesc="Advanced Linux Sound Architecture (ALSA) plugins"
url="https://www.alsa-project.org/main/index.php/Main_Page"
arch="all"
options="!check" # No test suite.
license="GPL-2.0+ AND LGPL-2.1+ AND BSD-3-Clause AND MIT"
makedepends="linux-headers alsa-lib-dev speexdsp-dev ffmpeg-dev
libsamplerate-dev pulseaudio-dev"
subpackages="$pkgname-lavcrate $pkgname-pulse $pkgname-a52"
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
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install
find "$pkgdir" -name '*.la' -type f -delete
rm "$pkgdir"/etc/alsa/conf.d/*.conf
}
lavcrate() {
pkgdesc="FFmpeg samplerate conversion plugins for ALSA"
mkdir -p "$subpkgdir"/usr/lib/alsa-lib/ \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
mv "$pkgdir"/usr/lib/alsa-lib/*lavrate* "$subpkgdir"/usr/lib/alsa-lib/
mv "$pkgdir"/usr/share/alsa/alsa.conf.d/*rate-lav* \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
}
pulse() {
pkgdesc="PulseAudio support for ALSA-only applications"
mkdir -p "$subpkgdir"/usr/lib/alsa-lib/ \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
mv "$pkgdir"/usr/lib/alsa-lib/*pulse.so "$subpkgdir"/usr/lib/alsa-lib/
mv "$pkgdir"/usr/share/alsa/alsa.conf.d/*pulse* \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
mv "$pkgdir"/etc/alsa/conf.d/*pulse* \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
}
a52() {
pkgdesc="S16 linear sound format to A52 compressed format for SPDIF output"
mkdir -p "$subpkgdir"/usr/lib/alsa-lib/ \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
mv "$pkgdir"/usr/lib/alsa-lib/*a52.so "$subpkgdir"/usr/lib/alsa-lib/
mv "$pkgdir"/usr/share/alsa/alsa.conf.d/*a52* \
"$subpkgdir"/usr/share/alsa/alsa.conf.d/
}
sha512sums="c3bb22ec3c5a167fb246cfc94131d53800e321b486ab743c3395a9d91dee0ff9703f6e4a2feaea5a4ee42a7e486d835d48ab880c784c5c34bb4eb5e9ded06d8e alsa-plugins-1.1.7.tar.bz2"
|