Date: Friday, March 3, 2023 @ 09:07:44 Author: dvzrv Revision: 470150
upgpkg: alsa-plugins 1:1.2.7.1-2: Rebuild against ffmpeg 6. Move configure options to local array for better handling. Use install instead of mkdir in package(). use one dep per line arrays for dependencies for easier handling. Modified: alsa-plugins/trunk/PKGBUILD ----------+ PKGBUILD | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2023-03-03 04:50:49 UTC (rev 470149) +++ PKGBUILD 2023-03-03 09:07:44 UTC (rev 470150) @@ -6,13 +6,22 @@ pkgbase=alsa-plugins pkgname=(alsa-plugins pulseaudio-alsa) pkgver=1.2.7.1 -pkgrel=1 +pkgrel=2 epoch=1 pkgdesc="Additional ALSA plugins" arch=(x86_64) url="https://www.alsa-project.org" license=(LGPL2.1) -makedepends=(alsa-lib dbus ffmpeg jack libavtp libpulse libsamplerate speexdsp) +makedepends=( + alsa-lib + dbus + ffmpeg + jack + libavtp + libpulse + libsamplerate + speexdsp +) source=( https://www.alsa-project.org/files/pub/plugins/$pkgbase-$pkgver.tar.bz2{,.sig} pulse-sysdefault.diff @@ -36,12 +45,15 @@ } build() { + local configure_options=( + --prefix=/usr + --sysconfdir=/etc + --enable-maemo-plugin + --enable-maemo-resource-manager + ) + cd $pkgbase-$pkgver - ./configure \ - --prefix=/usr \ - --sysconfdir=/etc \ - --enable-maemo-plugin \ - --enable-maemo-resource-manager + ./configure "${configure_options[@]}" # prevent excessive overlinking due to libtool sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool make @@ -48,7 +60,10 @@ } package_alsa-plugins() { - depends=(glibc libasound.so) + depends=( + alsa-lib libasound.so + glibc + ) optdepends=( 'dbus: for maemo plugin' 'ffmpeg: for pcm_a52 plugin' @@ -74,9 +89,12 @@ package_pulseaudio-alsa() { pkgdesc="ALSA Configuration for PulseAudio" - depends=('alsa-plugins>=1.2.2-2' pulseaudio) + depends=( + 'alsa-plugins>=1.2.2-2' + pulseaudio + ) - mkdir -p "$pkgdir/etc/alsa/conf.d" + install -vdm 755 "$pkgdir/etc/alsa/conf.d" ln -st "$pkgdir/etc/alsa/conf.d" /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf }
