summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorCédric Schieli2020-03-01 13:41:54 +0100
committerCédric Schieli2020-03-01 13:41:54 +0100
commit1c2d8da38376e10aa91f746ccbced55ae24a8da2 (patch)
treee3cb44891ce881861580e2d530abb9ddc5df0ecc /PKGBUILD
parentbb46b392020d15b7079211cfbc86aa8efe61f473 (diff)
downloadaur-1c2d8da38376e10aa91f746ccbced55ae24a8da2.tar.gz
Reinitialize from upstream (pulseaudio-13.0-3)
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD152
1 files changed, 146 insertions, 6 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 61d6f9ee843..aaf18a44902 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,8 +4,8 @@
# Contributor: William Rea <sillywilly@gmail.com>
pkgbase=pulseaudio-bluedio
-pkgname=pulseaudio-bluedio
-pkgdesc="Fixup Pulseaudio module for my Bluedio headset"
+pkgname=(pulseaudio-bluedio libpulse-bluedio pulseaudio-{zeroconf,lirc,jack,bluetooth,equalizer}-bluedio)
+pkgdesc="A featureful, general-purpose sound server"
pkgver=13.0
pkgrel=3
arch=(x86_64)
@@ -17,9 +17,11 @@ makedepends=(libasyncns libcap attr libxtst libsm libsndfile rtkit libsoxr
xmltoman)
_commit=200618b32f0964a479d69c9b6e5073e6931c370a # tags/v13.0^0
source=("git+https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git#commit=$_commit"
- 0001-bluetooth-new-module-bluedio-fixup.patch)
+ 0001-bluetooth-new-module-bluedio-fixup.patch
+ 0001-meson-Define-TUNNEL_SINK-for-module-tunnel-sink.patch)
sha256sums=('SKIP'
- 'bc83a8075decebf7b18efd165593ad0f658dd97881c21804dae3699c1df8bc2f')
+ 'bc83a8075decebf7b18efd165593ad0f658dd97881c21804dae3699c1df8bc2f'
+ '4ff133e2847baad5bb6798b5816d67551cfba2efabb2f1f348628d7217abd07d')
pkgver() {
cd pulseaudio
@@ -32,6 +34,10 @@ prepare() {
# Freeze version before patching
./git-version-gen doesnt-exist >.tarball-version
+ # https://bugs.archlinux.org/task/63755
+ git apply -3 ../0001-meson-Define-TUNNEL_SINK-for-module-tunnel-sink.patch
+
+ # Add the fixup module
git apply -3 ../0001-bluetooth-new-module-bluedio-fixup.patch
}
@@ -40,18 +46,152 @@ build() {
-D gcov=false \
-D pulsedsp-location='/usr/\$LIB/pulseaudio' \
-D udevrulesdir=/usr/lib/udev/rules.d
- ninja -C build src/modules/module-bluedio-fixup.so
+ ninja -C build
+}
+
+check() {
+ meson test -C build --print-errorlogs
+ ninja -C build test-daemon
+}
+
+_pick() {
+ local p="$1" f d; shift
+ for f; do
+ d="$srcdir/$p/${f#$pkgdir/}"
+ mkdir -p "$(dirname "$d")"
+ mv "$f" "$d"
+ rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
+ done
}
package_pulseaudio-bluedio() {
+ depends=("libpulse-bluedio=$pkgver-$pkgrel" rtkit libltdl speexdsp tdb orc libsoxr
+ webrtc-audio-processing)
+ optdepends=('pulseaudio-alsa-bluedio: ALSA configuration (recommended)')
+ backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
+ install=pulseaudio.install
+ replaces=('pulseaudio-xen<=9.0' 'pulseaudio-gconf<=11.1')
+ provides=("pulseaudio=$pkgver-$pkgrel")
+ conflicts=(pulseaudio)
+
local pulsever=$(cd pulseaudio; ./git-version-gen .tarball-version)
while [[ $pulsever = *.*.* ]]; do
pulsever=${pulsever%.*}
done
pulsever=${pulsever%%-*}
- install -s -D -t "${pkgdir}/usr/lib/pulse-${pulsever}/modules" build/src/modules/module-bluedio-fixup.so
+ DESTDIR="$pkgdir" meson install -C build
+
+ cd "$pkgdir"
+
+ # Assumes that any volume adjustment is intended by the user, who can control
+ # each app's volume. Misbehaving clients can trigger earsplitting volume
+ # jumps. App volumes can diverge wildly and cause apps without their own
+ # volume control to fall below sink volume; a sink-only volume control will
+ # suddenly be unable to make such an app loud enough.
+ sed -e '/flat-volumes/iflat-volumes = no' \
+ -i etc/pulse/daemon.conf
+
+ # Superseded by socket activation
+ sed -e '/autospawn/iautospawn = no' \
+ -i etc/pulse/client.conf
+
+ # Disable cork-request module, can result in e.g. media players unpausing
+ # when there's a Skype call incoming
+ sed -e 's|/usr/bin/pactl load-module module-x11-cork-request|#&|' \
+ -i usr/bin/start-pulseaudio-x11
+
+ # Required by qpaeq
+ sed -e '/Load several protocols/aload-module module-dbus-protocol' \
+ -i etc/pulse/default.pa
+
+ rm -r etc/dbus-1
+
+### Split libpulse
+ _pick libpulse etc/pulse/client.conf
+ _pick libpulse usr/bin/pa{cat,ctl,dsp,mon,play,rec,record}
+ _pick libpulse usr/lib/libpulse{,-simple,-mainloop-glib}.so*
+ _pick libpulse usr/lib/{cmake,pkgconfig}
+ _pick libpulse usr/lib/pulseaudio/libpulse{dsp,common-*}.so
+ _pick libpulse usr/include
+ _pick libpulse usr/share/man/man1/pa{cat,ctl,dsp,mon,play,rec,record}.1
+ _pick libpulse usr/share/man/man5/pulse-client.conf.5
+ _pick libpulse usr/share/vala
+
+### Split modules
+ local moddir=usr/lib/pulse-$pulsever/modules
+
+ _pick zeroconf $moddir/libavahi-wrap.so
+ _pick zeroconf $moddir/module-zeroconf-{publish,discover}.so
+ _pick zeroconf $moddir/module-raop-discover.so
+
+ _pick lirc $moddir/module-lirc.so
+
+ _pick jack $moddir/module-jack-{sink,source}.so
+ _pick jack $moddir/module-jackdbus-detect.so
+
+ _pick bluetooth $moddir/libbluez5-util.so
+ _pick bluetooth $moddir/module-bluetooth-{discover,policy}.so
+ _pick bluetooth $moddir/module-bluez5-{discover,device}.so
+
+ _pick equalizer $moddir/module-equalizer-sink.so
+ _pick equalizer usr/bin/qpaeq
+}
+
+package_libpulse-bluedio() {
+ pkgdesc="$pkgdesc (client library)"
+ depends=(dbus libasyncns libcap libxtst libsm libsndfile systemd)
+ provides=(libpulse{,-simple,-mainloop-glib}.so "libpulse=$pkgver-$pkgrel")
+ conflicts=(libpulse)
+ license=(LGPL)
+ backup=(etc/pulse/client.conf)
+
+ mv libpulse/* "$pkgdir"
+}
+
+package_pulseaudio-zeroconf-bluedio(){
+ pkgdesc="Zeroconf support for PulseAudio"
+ depends=("pulseaudio-bluedio=$pkgver-$pkgrel" avahi openssl)
+ provides=("pulseaudio-zeroconf=$pkgver-$pkgrel")
+ conflicts=(pulseaudio-zeroconf)
+
+ mv zeroconf/* "$pkgdir"
+}
+
+package_pulseaudio-lirc-bluedio(){
+ pkgdesc="IR (lirc) support for PulseAudio"
+ depends=("pulseaudio-bluedio=$pkgver-$pkgrel" lirc)
+ provides=("pulseaudio-lirc=$pkgver-$pkgrel")
+ conflicts=(pulseaudio-lirc)
+
+ mv lirc/* "$pkgdir"
+}
+
+package_pulseaudio-jack-bluedio(){
+ pkgdesc="Jack support for PulseAudio"
+ depends=("pulseaudio-bluedio=$pkgver-$pkgrel" jack)
+ provides=("pulseaudio-jack=$pkgver-$pkgrel")
+ conflicts=(pulseaudio-jack)
+
+ mv jack/* "$pkgdir"
+}
+
+package_pulseaudio-bluetooth-bluedio(){
+ pkgdesc="Bluetooth support for PulseAudio"
+ depends=("pulseaudio-bluedio=$pkgver-$pkgrel" bluez bluez-libs sbc)
+ provides=("pulseaudio-bluetooth=$pkgver-$pkgrel")
+ conflicts=(pulseaudio-bluetooth)
+
+ mv bluetooth/* "$pkgdir"
+}
+
+package_pulseaudio-equalizer-bluedio(){
+ pkgdesc="Equalizer for PulseAudio"
+ depends=("pulseaudio-bluedio=$pkgver-$pkgrel" python-{pyqt5,dbus,sip} fftw)
+ provides=("pulseaudio-equalizer=$pkgver-$pkgrel")
+ conflicts=(pulseaudio-equalizer)
+ mv equalizer/* "$pkgdir"
}
# vim:set sw=2 et: