2020-10-05 18:59:25 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
2019-09-12 11:55:38 +00:00
|
|
|
# - patch to remove meson NEON check
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
pkgbase=pulseaudio
|
2020-10-08 00:55:35 +00:00
|
|
|
pkgname=(pulseaudio libpulse alsa-card-profiles pulseaudio-{zeroconf,lirc,jack,bluetooth,equalizer,rtp})
|
2013-04-01 23:50:22 +00:00
|
|
|
pkgdesc="A featureful, general-purpose sound server"
|
2021-01-13 13:58:09 +00:00
|
|
|
pkgver=14.1
|
2021-01-15 00:54:10 +00:00
|
|
|
pkgrel=2
|
2018-06-21 12:56:44 +00:00
|
|
|
arch=(x86_64)
|
|
|
|
url="https://www.freedesktop.org/wiki/Software/PulseAudio/"
|
2017-01-19 02:24:35 +00:00
|
|
|
license=(GPL)
|
2019-09-12 11:55:38 +00:00
|
|
|
makedepends=(libasyncns libcap attr libxtst libsm libsndfile rtkit libsoxr
|
|
|
|
speexdsp tdb systemd dbus avahi bluez bluez-libs jack2 sbc
|
|
|
|
lirc openssl fftw orc gtk3 webrtc-audio-processing check git meson
|
2020-10-29 15:15:04 +00:00
|
|
|
xmltoman)
|
2021-01-13 13:58:09 +00:00
|
|
|
_commit=d6c8c9ce37f38ea95275453f75b112b393abc38b # tags/v14.1^0
|
2019-09-12 11:55:38 +00:00
|
|
|
source=("git+https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git#commit=$_commit"
|
|
|
|
'0001-disable-neon.patch')
|
|
|
|
sha256sums=('SKIP'
|
2020-10-05 18:59:25 +00:00
|
|
|
'7572bfc1a185f8b6f7757db217d35f9134128fc8cd047845f34acb17e2fe67d1')
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2017-01-19 02:24:35 +00:00
|
|
|
pkgver() {
|
|
|
|
cd pulseaudio
|
|
|
|
git describe --tags | sed 's/^v//;s/-/+/g'
|
|
|
|
}
|
|
|
|
|
2013-10-30 14:06:42 +00:00
|
|
|
prepare() {
|
2017-01-19 02:24:35 +00:00
|
|
|
cd pulseaudio
|
2019-09-15 14:37:32 +00:00
|
|
|
|
2020-01-11 19:53:57 +00:00
|
|
|
# Freeze version before patching
|
|
|
|
./git-version-gen doesnt-exist >.tarball-version
|
|
|
|
|
2021-01-15 00:54:10 +00:00
|
|
|
# Pick some ACP updates required by pipewire
|
|
|
|
git cherry-pick -n \
|
|
|
|
a28f2e7293a055588f7bba568b5049ff91b3aad0 \
|
|
|
|
69ba5a2b58ad6e98c8899aa297afd8276dbbe052 \
|
|
|
|
05c373d939506f31f96e58d8390b92e737e12afc \
|
|
|
|
a73ec2a3f4f03829575761dc17546cf3226861c7 \
|
|
|
|
71aa4720a4194e9602271634d9042b8e56a8217f \
|
|
|
|
7ec6ee4725a72b42ddcb38550efc968a06e6be2f \
|
|
|
|
836ba89c4a3cd15efa33f9e70ed8e4764bcb3793 \
|
|
|
|
19e34d8d5bb9380ed70607b3f661c26df6d4836c
|
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
if [[ $CARCH != "aarch64" ]]; then
|
|
|
|
patch -p1 -i ../0001-disable-neon.patch
|
|
|
|
fi
|
2013-10-30 14:06:42 +00:00
|
|
|
}
|
2013-10-28 14:04:55 +00:00
|
|
|
|
2013-04-01 23:50:22 +00:00
|
|
|
build() {
|
2019-09-12 11:55:38 +00:00
|
|
|
arch-meson pulseaudio build \
|
2020-10-05 18:59:25 +00:00
|
|
|
-D alsadatadir=/usr/share/alsa-card-profile/mixer \
|
2019-09-12 11:55:38 +00:00
|
|
|
-D pulsedsp-location='/usr/\$LIB/pulseaudio' \
|
2020-10-05 18:59:25 +00:00
|
|
|
-D stream-restore-clear-old-devices=true \
|
2019-09-12 11:55:38 +00:00
|
|
|
-D udevrulesdir=/usr/lib/udev/rules.d
|
2020-10-05 18:59:25 +00:00
|
|
|
meson compile -C build
|
2019-09-12 11:55:38 +00:00
|
|
|
}
|
2017-01-19 02:24:35 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
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
|
2013-04-01 23:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio() {
|
2020-10-05 18:59:25 +00:00
|
|
|
depends=("libpulse=$pkgver-$pkgrel" alsa-card-profiles rtkit libltdl speexdsp
|
2020-10-29 15:15:04 +00:00
|
|
|
tdb orc libsoxr webrtc-audio-processing libxtst)
|
2020-10-08 00:55:35 +00:00
|
|
|
optdepends=('pulseaudio-alsa: ALSA configuration (recommended)'
|
|
|
|
'pulseaudio-zeroconf: Zeroconf support'
|
|
|
|
'pulseaudio-lirc: IR (lirc) support'
|
|
|
|
'pulseaudio-jack: Jack support'
|
|
|
|
'pulseaudio-bluetooth: Bluetooth support'
|
|
|
|
'pulseaudio-equalizer: Graphical equalizer'
|
|
|
|
'pulseaudio-rtp: RTP and RAOP support')
|
2013-04-01 23:50:22 +00:00
|
|
|
backup=(etc/pulse/{daemon.conf,default.pa,system.pa})
|
2015-05-15 04:37:46 +00:00
|
|
|
install=pulseaudio.install
|
2018-06-21 12:56:44 +00:00
|
|
|
replaces=('pulseaudio-xen<=9.0' 'pulseaudio-gconf<=11.1')
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
local pulsever=$(cd pulseaudio; ./git-version-gen .tarball-version)
|
|
|
|
while [[ $pulsever = *.*.* ]]; do
|
|
|
|
pulsever=${pulsever%.*}
|
2015-09-27 17:00:34 +00:00
|
|
|
done
|
2019-09-12 11:55:38 +00:00
|
|
|
pulsever=${pulsever%%-*}
|
2015-09-24 18:16:08 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2015-09-24 18:16:08 +00:00
|
|
|
cd "$pkgdir"
|
|
|
|
|
|
|
|
# Superseded by socket activation
|
2015-12-10 05:58:36 +00:00
|
|
|
sed -e '/autospawn/iautospawn = no' \
|
2015-09-24 18:16:08 +00:00
|
|
|
-i etc/pulse/client.conf
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
# 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|#&|' \
|
2015-09-24 18:16:08 +00:00
|
|
|
-i usr/bin/start-pulseaudio-x11
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2018-07-26 12:21:35 +00:00
|
|
|
# Required by qpaeq
|
|
|
|
sed -e '/Load several protocols/aload-module module-dbus-protocol' \
|
|
|
|
-i etc/pulse/default.pa
|
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
rm -r etc/dbus-1
|
2015-09-24 18:16:08 +00:00
|
|
|
|
2020-10-08 00:55:35 +00:00
|
|
|
# Split packages
|
2019-09-12 11:55:38 +00:00
|
|
|
_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
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2020-10-05 18:59:25 +00:00
|
|
|
_pick alsa-card-profiles usr/share/alsa-card-profile
|
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
local moddir=usr/lib/pulse-$pulsever/modules
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
_pick zeroconf $moddir/libavahi-wrap.so
|
|
|
|
_pick zeroconf $moddir/module-zeroconf-{publish,discover}.so
|
|
|
|
_pick zeroconf $moddir/module-raop-discover.so
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
_pick lirc $moddir/module-lirc.so
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
_pick jack $moddir/module-jack-{sink,source}.so
|
|
|
|
_pick jack $moddir/module-jackdbus-detect.so
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
_pick bluetooth $moddir/libbluez5-util.so
|
|
|
|
_pick bluetooth $moddir/module-bluetooth-{discover,policy}.so
|
|
|
|
_pick bluetooth $moddir/module-bluez5-{discover,device}.so
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
_pick equalizer $moddir/module-equalizer-sink.so
|
|
|
|
_pick equalizer usr/bin/qpaeq
|
2020-10-08 00:55:35 +00:00
|
|
|
|
|
|
|
_pick rtp $moddir/lib{rtp,raop}.so
|
|
|
|
_pick rtp $moddir/module-rtp-{send,recv}.so
|
|
|
|
_pick rtp $moddir/module-raop-sink.so
|
2013-04-01 23:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
|
|
|
pkgdesc="$pkgdesc (client library)"
|
2020-10-29 15:15:04 +00:00
|
|
|
depends=(dbus libasyncns libcap libxcb libsm libsndfile systemd)
|
|
|
|
optdepends=('glib2: mainloop integration')
|
2020-01-11 19:53:57 +00:00
|
|
|
provides=(libpulse{,-simple,-mainloop-glib}.so)
|
2017-01-19 02:24:35 +00:00
|
|
|
license=(LGPL)
|
2013-04-01 23:50:22 +00:00
|
|
|
backup=(etc/pulse/client.conf)
|
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv libpulse/* "$pkgdir"
|
2013-04-01 23:50:22 +00:00
|
|
|
}
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2020-10-05 18:59:25 +00:00
|
|
|
package_alsa-card-profiles() {
|
|
|
|
pkgdesc="ALSA card profiles shared by PulseAudio"
|
|
|
|
license=(LGPL)
|
|
|
|
|
|
|
|
mv alsa-card-profiles/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2015-05-15 04:37:46 +00:00
|
|
|
package_pulseaudio-zeroconf(){
|
|
|
|
pkgdesc="Zeroconf support for PulseAudio"
|
2015-09-24 18:16:08 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel" avahi openssl)
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv zeroconf/* "$pkgdir"
|
2015-05-15 04:37:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-lirc(){
|
|
|
|
pkgdesc="IR (lirc) support for PulseAudio"
|
2015-09-24 18:16:08 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel" lirc)
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv lirc/* "$pkgdir"
|
2015-05-15 04:37:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-jack(){
|
|
|
|
pkgdesc="Jack support for PulseAudio"
|
2017-01-19 18:45:27 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel" jack)
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv jack/* "$pkgdir"
|
2015-05-15 04:37:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-bluetooth(){
|
|
|
|
pkgdesc="Bluetooth support for PulseAudio"
|
2017-01-19 02:24:35 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel" bluez bluez-libs sbc)
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv bluetooth/* "$pkgdir"
|
2015-05-15 04:37:46 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-equalizer(){
|
2020-10-08 00:55:35 +00:00
|
|
|
pkgdesc="Graphical equalizer for PulseAudio"
|
2020-10-05 18:59:25 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel" python-{pyqt5,dbus} fftw)
|
2015-05-15 04:37:46 +00:00
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
mv equalizer/* "$pkgdir"
|
2015-05-15 04:37:46 +00:00
|
|
|
}
|
2019-09-12 11:55:38 +00:00
|
|
|
|
2020-10-08 00:55:35 +00:00
|
|
|
package_pulseaudio-rtp(){
|
|
|
|
pkgdesc="RTP and RAOP support for PulseAudio"
|
2020-10-29 15:15:04 +00:00
|
|
|
depends=("pulseaudio=$pkgver-$pkgrel")
|
2020-10-08 00:55:35 +00:00
|
|
|
|
|
|
|
mv rtp/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
2019-09-12 11:55:38 +00:00
|
|
|
# vim:set sw=2 et:
|