1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
3 # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
4 # Contributor: Daniel Ehlers <danielehlers@mindeye.net>
7 pkgname=(alsa-plugins pulseaudio-alsa)
11 pkgdesc="Additional ALSA plugins"
13 url="https://www.alsa-project.org"
15 makedepends=(alsa-lib dbus ffmpeg jack libavtp libpulse libsamplerate speexdsp)
18 https://www.alsa-project.org/files/pub/plugins/$pkgbase-$pkgver.tar.bz2{,.sig}
21 sha512sums=('437c05a7e0175594768fd6a9a6d1a158bb4a01a7de6a42c2bd468d9381e01b64d385ddfac7d87baf84fe13cb4e65dc24da643940f416d4b191c528728822d964'
23 'b8c8e55f4da0ae87cc44d75a906d00b4f1e2304e6bc10419c6e0913c8f7d29599a3f3d41733decbe412a4669ea0d5af2a57f85b1655fba3625fbbd33c956f3f9')
24 b2sums=('6f7aa503eda879cd273f36a16eec702b4da9267a60835cb5acbbfe355a83b7ffa3e93eb6483c9946c1d0bcd845a8f574470e7b84c66f793d0d0c6c9883ad52ee'
26 '83c16b77c1737b2b59b60302be22b63e53026a366799fd97fe3c03b86756063d1b9689d5ffc7c793b40db55bdb79a5b6d72a17e0c8aa32364d6e639cf7ad3ce0')
27 validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team (Package Signing Key v1) <release@alsa-project.org>
32 # Make use of the pulse plugin's "fallback" feature
33 # Keeps parity with our old config from pulseaudio-alsa
34 patch -Np1 -i ../pulse-sysdefault.diff
44 --enable-maemo-plugin \
45 --enable-maemo-resource-manager
46 # prevent excessive overlinking due to libtool
47 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
51 package_alsa-plugins() {
52 depends=(glibc libasound.so)
54 'dbus: for maemo plugin'
55 'ffmpeg: for pcm_a52 plugin'
56 'jack: for pcm_jack plugin'
57 'libavtp: for pcm_aaf plugin'
58 'libsamplerate: for rate_samplerate plugin'
59 'libpulse: for conf_pulse, ctl_pulse and pcm_pulse plugins'
60 'speexdsp: for pcm_speex and rate_speexrate plugins'
64 make DESTDIR="$pkgdir" install
65 install -vDm 644 doc/README* doc/*.txt -t "$pkgdir/usr/share/doc/$pkgbase"
67 # remove maemo plugin configuration (it overrides defaults for pcm and ctl),
68 # until a better way is found to package default overrides:
69 # https://bugs.archlinux.org/task/65440
70 rm -v "$pkgdir/etc/alsa/conf.d/98-maemo.conf"
72 # make a proper off-by-default config template out of the example file
73 mv -v "$pkgdir/etc/alsa/conf.d/99-pulseaudio-default.conf.example" "$pkgdir/usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf"
76 package_pulseaudio-alsa() {
77 pkgdesc="ALSA Configuration for PulseAudio"
78 depends=('alsa-plugins>=1.2.2-2' pulseaudio)
80 mkdir -p "$pkgdir/etc/alsa/conf.d"
81 ln -st "$pkgdir/etc/alsa/conf.d" /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf