8fd23ece4e
alsa-* 1.2.6 breaks audio switching and microphones on several devices, with some outstanding issues still open upstream. This 'fork' is meant to be very short-lived, to restore audio on devices while we figure out how to fix it on 1.2.6. see: https://gitlab.com/postmarketOS/pmaports/-/issues/1334
49 lines
1.6 KiB
Text
49 lines
1.6 KiB
Text
# Forked from Alpine aports, latest alsa-* breaks audio on devices
|
|
pkgname=alsa-utils
|
|
pkgver=9999
|
|
_pkgver=1.2.5
|
|
pkgrel=0
|
|
pkgdesc="Advanced Linux Sound Architecture (ALSA) utilities"
|
|
url="https://alsa-project.org/"
|
|
arch="all"
|
|
options="!check" # No test suite, applets use ncurses / don't have --version
|
|
license="GPL-2.0-or-later"
|
|
makedepends="alsa-lib-dev fftw-dev ncurses-dev pciutils-dev xmlto"
|
|
depends="dialog"
|
|
subpackages="$pkgname-dbg alsaconf::noarch $pkgname-doc $pkgname-openrc"
|
|
source="https://alsa-project.org/files/pub/utils/alsa-utils-$_pkgver.tar.bz2
|
|
alsaconf.patch
|
|
alsa.initd
|
|
alsa.confd
|
|
"
|
|
builddir="$srcdir/$pkgname-$_pkgver"
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--disable-nls
|
|
make
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
install -D -m755 ../alsa.initd "$pkgdir"/etc/init.d/alsa
|
|
install -D -m644 ../alsa.confd "$pkgdir"/etc/conf.d/alsa
|
|
}
|
|
|
|
alsaconf() {
|
|
depends="alsa-utils bash"
|
|
cd "$builddir"
|
|
mkdir -p "$subpkgdir"/usr/sbin
|
|
mv "$pkgdir"/usr/sbin/alsaconf \
|
|
"$subpkgdir"/usr/sbin
|
|
}
|
|
|
|
sha512sums="
|
|
0e319e553c9c209a46f5c83c50007bd82acf1c9cf78649978b3ab6fbb4349f51c1c7c6a975a8c24d25ba07ad5325e74d2c34dc5c89180998a0f63d1326fde8b1 alsa-utils-1.2.5.tar.bz2
|
|
f04155e1e391c7f36d44422c8e769bf9370117f6bbea6c0664e9858f7a676cc958e4260e4b4d226e71d0716f6be4e6fdd60f1d07cb7e9922fff378ceec01c47d alsaconf.patch
|
|
c66959a4a1a24a727c9c91a455caa5fa093c523d17a563b56ec2449a02ff30c83683db555006954b1fe571446cf4a117cc41de8c8b869a6e875d386595b3cc1f alsa.initd
|
|
d7e212e9f624b09168117b46c66289204a23915adf0d1b0c9ae258049430397b8f2d86d3b5f7e3087151948a031c4eab863e8195a6c7b1276704e9cba9c2d2a7 alsa.confd
|
|
"
|