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-05 18:59:25 +00:00
|
|
|
pkgname=(pulseaudio libpulse alsa-card-profiles pulseaudio-{zeroconf,lirc,jack,bluetooth,equalizer})
|
2013-04-01 23:50:22 +00:00
|
|
|
pkgdesc="A featureful, general-purpose sound server"
|
2020-10-05 18:59:25 +00:00
|
|
|
pkgver=13.99.2+7+g6101798c7
|
|
|
|
pkgrel=1
|
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-05 18:59:25 +00:00
|
|
|
xmltoman gst-plugins-base-libs)
|
|
|
|
_commit=6101798c7a4fa5b8ce7f5589706b03d87a3aee76 # master
|
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
|
|
|
|
|
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
|
|
|
|
tdb orc libsoxr webrtc-audio-processing gst-plugins-base-libs)
|
2015-05-15 04:37:46 +00:00
|
|
|
optdepends=('pulseaudio-alsa: ALSA configuration (recommended)')
|
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
|
|
|
|
2013-04-01 23:50:22 +00:00
|
|
|
### Split libpulse
|
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
|
|
|
### Split alsa-card-profiles
|
|
|
|
_pick alsa-card-profiles usr/share/alsa-card-profile
|
|
|
|
|
2015-05-15 04:37:46 +00:00
|
|
|
### Split modules
|
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
|
2013-04-01 23:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
|
|
|
pkgdesc="$pkgdesc (client library)"
|
2017-01-19 02:24:35 +00:00
|
|
|
depends=(dbus libasyncns libcap libxtst libsm libsndfile systemd)
|
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(){
|
|
|
|
pkgdesc="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
|
|
|
|
|
|
|
# vim:set sw=2 et:
|