temp/alsa-plugins: drop (MR 2925)

Should have been dropped in
https://gitlab.com/postmarketOS/pmaports/-/merge_requests/2743,
but wasn't.
This commit is contained in:
Newbyte 2022-02-11 23:16:42 +01:00 committed by Oliver Smith
parent 5eed24ebad
commit b8239447d9
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB

View file

@ -1,111 +0,0 @@
# Forked from Alpine aports, latest alsa-* breaks audio on devices
pkgname=alsa-plugins
pkgver=9999
_pkgver=1.2.5
pkgrel=0
pkgdesc="Advanced Linux Sound Architecture (ALSA) plugins"
url="https://alsa-project.org/"
arch="all"
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="https://alsa-project.org/files/pub/plugins/alsa-plugins-$_pkgver.tar.bz2"
builddir="$srcdir/$pkgname-$_pkgver"
build() {
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var
make
}
check() {
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"
# pipewire provides pulseaudio-alsa; when pipewire is used,
# alsa-plugins-pulse is not needed.
install_if="alsa-lib pulseaudio-alsa !pipewire"
_mv_lib ./*pulse.so
_mv_conf ./*pulseaudio*
mv "$subpkgdir"/etc/alsa/conf.d/99-pulseaudio-default.conf.example \
"$subpkgdir"/etc/alsa/conf.d/99-pulseaudio-default.conf
}
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() {
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="
32aa475ec4af040861c2bfb01eac71042242d2109d3c5102d0111f3327e3f6c9031c32cbb50eb4b6568a6bd9408691a047a39972f09d6087e31ec11f19ddc9cf alsa-plugins-1.2.5.tar.bz2
"