2013-06-07 14:16:15 +00:00
|
|
|
# $Id$
|
2013-04-01 23:50:22 +00:00
|
|
|
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
|
|
|
|
# Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
|
|
|
|
# Contributor: Corrado Primier <bardo@aur.archlinux.org>
|
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
|
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - added --disable-neon-opt to configure
|
2015-05-15 04:37:46 +00:00
|
|
|
# - removed xen pieces
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
pkgbase=pulseaudio
|
2015-05-15 04:37:46 +00:00
|
|
|
pkgname=(pulseaudio libpulse pulseaudio-{gconf,zeroconf,lirc,jack,bluetooth,equalizer})
|
2013-04-01 23:50:22 +00:00
|
|
|
pkgdesc="A featureful, general-purpose sound server"
|
2015-02-13 04:30:17 +00:00
|
|
|
pkgver=6.0
|
2015-05-15 04:37:46 +00:00
|
|
|
pkgrel=2
|
2013-04-01 23:50:22 +00:00
|
|
|
arch=(i686 x86_64)
|
|
|
|
url="http://www.freedesktop.org/wiki/Software/PulseAudio"
|
2015-05-15 04:37:46 +00:00
|
|
|
license=(LGPL)
|
2015-02-13 04:30:17 +00:00
|
|
|
makedepends=(libasyncns libcap attr libxtst libsm libsndfile libtool rtkit
|
|
|
|
speexdsp tdb systemd dbus avahi bluez bluez-libs gconf intltool jack2-dbus sbc
|
|
|
|
lirc openssl fftw orc json-c gtk3 webrtc-audio-processing
|
|
|
|
check)
|
2014-03-03 22:30:09 +00:00
|
|
|
options=(!emptydirs)
|
|
|
|
source=(http://freedesktop.org/software/$pkgbase/releases/$pkgbase-$pkgver.tar.xz)
|
2015-02-13 04:30:17 +00:00
|
|
|
sha256sums=('b50640e0b80b1607600accfad2e45aabb79d379bf6354c9671efa2065477f6f6')
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2013-10-30 14:06:42 +00:00
|
|
|
prepare() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
}
|
2013-10-28 14:04:55 +00:00
|
|
|
|
2013-04-01 23:50:22 +00:00
|
|
|
build() {
|
|
|
|
cd $pkgbase-$pkgver
|
|
|
|
|
2014-03-03 22:30:09 +00:00
|
|
|
./configure --prefix=/usr \
|
2013-04-01 23:50:22 +00:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
|
|
|
--with-database=tdb \
|
|
|
|
--disable-tcpwrap \
|
2014-03-03 22:30:09 +00:00
|
|
|
--disable-bluez4 \
|
2015-02-13 04:30:17 +00:00
|
|
|
--disable-samplerate \
|
2013-04-01 23:50:22 +00:00
|
|
|
--disable-rpath \
|
|
|
|
--disable-default-build-tests \
|
|
|
|
--disable-neon-opt
|
|
|
|
|
|
|
|
# fight unused direct deps
|
|
|
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
|
|
|
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio() {
|
2015-05-15 04:37:46 +00:00
|
|
|
depends=("libpulse=$pkgver-$pkgrel" rtkit libltdl speexdsp tdb orc
|
2015-02-13 04:30:17 +00:00
|
|
|
webrtc-audio-processing sbc)
|
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
|
2013-04-01 23:50:22 +00:00
|
|
|
|
|
|
|
cd $pkgbase-$pkgver
|
2013-06-07 14:16:15 +00:00
|
|
|
make -j1 DESTDIR="$pkgdir" install \
|
|
|
|
bashcompletiondir=/usr/share/bash-completion/completions
|
2013-04-01 23:50:22 +00:00
|
|
|
|
2013-10-28 14:04:55 +00:00
|
|
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
|
|
|
# the last user session (module-systemd-login keeps it alive)
|
2013-04-01 23:50:22 +00:00
|
|
|
sed -e '/exit-idle-time/iexit-idle-time=0' \
|
|
|
|
-i "$pkgdir/etc/pulse/daemon.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 "$pkgdir/usr/bin/start-pulseaudio-x11"
|
|
|
|
|
|
|
|
rm "$pkgdir/etc/dbus-1/system.d/pulseaudio-system.conf"
|
|
|
|
|
|
|
|
### Split libpulse
|
|
|
|
|
|
|
|
mkdir -p "$srcdir"/libpulse/{etc/pulse,usr/{bin,lib/pulseaudio,share/man/man{1,5}}}
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/etc/pulse/client.conf
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/bin/pa{cat,ctl,dsp,mon,play,rec,record} \
|
|
|
|
"$srcdir/libpulse/usr/bin"
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/libpulse{,-simple,-mainloop-glib}.so* \
|
|
|
|
"$srcdir/libpulse/usr/lib"
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/pulseaudio/libpulsedsp.so \
|
|
|
|
"$pkgdir"/usr/lib/pulseaudio/libpulsecommon-*.so \
|
|
|
|
"$srcdir/libpulse/usr/lib/pulseaudio"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/lib/cmake
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/lib/pkgconfig
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/include
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/share/man/man1/pa{cat,ctl,dsp,play}.1 \
|
|
|
|
"$srcdir/libpulse/usr/share/man/man1"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/share/man/man5/pulse-client.conf.5
|
|
|
|
mv {"$pkgdir","$srcdir/libpulse"}/usr/share/vala
|
2015-05-15 04:37:46 +00:00
|
|
|
|
|
|
|
### Split modules
|
|
|
|
|
|
|
|
mkdir -p "$srcdir"/{gconf,zeroconf,lirc,jack,bluetooth,equalizer}/usr/lib/pulse-$pkgver/modules \
|
|
|
|
"$srcdir"/{gconf/usr/lib/pulse,equalizer/usr/bin}
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/gconf"}/usr/lib/pulse-$pkgver/modules/module-gconf.so
|
|
|
|
mv {"$pkgdir","$srcdir/gconf"}/usr/lib/pulse/gconf-helper
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/{libavahi-wrap,module-{zeroconf-{publish,discover},raop-discover}}.so \
|
|
|
|
"$srcdir/zeroconf/usr/lib/pulse-$pkgver/modules"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/lirc"}/usr/lib/pulse-$pkgver/modules/module-lirc.so
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/module-jack{-sink,-source,dbus-detect}.so \
|
|
|
|
"$srcdir/jack/usr/lib/pulse-$pkgver/modules"
|
|
|
|
|
|
|
|
mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/{libbluez5-util,module-{bluetooth-{discover,policy},bluez5-{discover,device}}}.so \
|
|
|
|
"$srcdir/bluetooth/usr/lib/pulse-$pkgver/modules"
|
|
|
|
|
|
|
|
mv {"$pkgdir","$srcdir/equalizer"}/usr/lib/pulse-$pkgver/modules/module-equalizer-sink.so
|
|
|
|
mv {"$pkgdir","$srcdir/equalizer"}/usr/bin/qpaeq
|
2013-04-01 23:50:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_libpulse() {
|
|
|
|
pkgdesc="$pkgdesc (client library)"
|
2014-03-03 22:30:09 +00:00
|
|
|
depends=(dbus libasyncns libcap libxtst libsm libsndfile json-c systemd)
|
2013-04-01 23:50:22 +00:00
|
|
|
backup=(etc/pulse/client.conf)
|
|
|
|
|
|
|
|
mv "$srcdir"/libpulse/* "$pkgdir"
|
|
|
|
}
|
2015-05-15 04:37:46 +00:00
|
|
|
|
|
|
|
package_pulseaudio-gconf(){
|
|
|
|
pkgdesc="GConf support for PulseAudio"
|
|
|
|
depends=(pulseaudio gconf)
|
|
|
|
|
|
|
|
mv "$srcdir"/gconf/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-zeroconf(){
|
|
|
|
pkgdesc="Zeroconf support for PulseAudio"
|
|
|
|
depends=(pulseaudio avahi openssl)
|
|
|
|
|
|
|
|
mv "$srcdir"/zeroconf/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-lirc(){
|
|
|
|
pkgdesc="IR (lirc) support for PulseAudio"
|
|
|
|
depends=(pulseaudio lirc)
|
|
|
|
|
|
|
|
mv "$srcdir"/lirc/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-jack(){
|
|
|
|
pkgdesc="Jack support for PulseAudio"
|
|
|
|
depends=(pulseaudio jack2)
|
|
|
|
|
|
|
|
mv "$srcdir"/jack/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-bluetooth(){
|
|
|
|
pkgdesc="Bluetooth support for PulseAudio"
|
|
|
|
depends=(pulseaudio bluez bluez-libs)
|
|
|
|
|
|
|
|
mv "$srcdir"/bluetooth/* "$pkgdir"
|
|
|
|
}
|
|
|
|
|
|
|
|
package_pulseaudio-equalizer(){
|
|
|
|
pkgdesc="Equalizer for PulseAudio"
|
|
|
|
depends=(pulseaudio python-pyqt4 fftw)
|
|
|
|
license=(AGPL3)
|
|
|
|
|
|
|
|
mv "$srcdir"/equalizer/* "$pkgdir"
|
|
|
|
}
|