# # Platform Packages for Chakra, part of chakra-project.org # # maintainer abveritas@chakra-project.org pkgname=pulseaudio pkgdesc="A featureful, general-purpose sound server" pkgver=2.1 pkgrel=8 arch=('x86_64') url="http://pulseaudio.org/" license=('GPL' 'LGPL') depends=('dbus-core' 'xcb-util' 'libasyncns' 'libcap' 'libxtst' 'libsm' 'libsamplerate' 'json-c' 'rtkit' 'libltdl' 'speex' 'tdb' 'fftw' 'orc' 'webrtc-audio-processing' 'systemd>=195') makedepends=('attr' 'libltdl' 'avahi' 'bluez' 'intltool' 'jack' 'lirc-utils' 'openssl') optdepends=('avahi: zeroconf support' 'bluez: bluetooth support' 'jack: jack support' 'lirc-utils: infra-red support' 'openssl: RAOP support') backup=(etc/pulse/{daemon.conf,default.pa,system.pa}) install="pulseaudio.install" provides=("libpulse=${pkgver}") replaces=('libpulse') conflicts=('libpulse') options=(!emptydirs !libtool !makeflags) source=("http://freedesktop.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.xz") sha256sums=('ef6b347bf47abfb98080795f1583018ac959b4aeb4df916b879f9e1eaba0ca7f') build() { cd "${srcdir}/${pkgname}-${pkgver}" ./configure --prefix=/usr \ --sysconfdir=/etc \ --libexecdir=/usr/lib \ --localstatedir=/var \ --with-udev-rules-dir=/usr/lib/udev/rules.d \ --with-database=tdb \ --disable-tcpwrap \ --disable-rpath \ --disable-default-build-tests make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install # 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" # Python fix sed -i '1s:python$:&2:' "${pkgdir}/usr/bin/qpaeq" rm "${pkgdir}/etc/dbus-1/system.d/pulseaudio-system.conf" # Delay of sound notification workaround, needs to be removed once fixed in systemd #sed -i -e 's/load-module module-udev-detect/load-module module-udev-detect tsched=0/' "${pkgdir}/etc/pulse/default.pa" }