core/pulseaudio/PKGBUILD

65 lines
2.1 KiB
Bash
Raw Normal View History

2010-08-12 01:18:31 +08:00
#
# Platform Packages for Chakra, part of chakra-project.org
2010-08-12 01:18:31 +08:00
#
# maintainer abveritas@chakra-project.org
2010-08-12 01:18:31 +08:00
pkgname=pulseaudio
pkgdesc="A featureful, general-purpose sound server"
2012-12-19 04:58:01 +08:00
pkgver=3.0
pkgrel=1
arch=('x86_64')
2010-11-28 16:31:40 +08:00
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"
2012-09-13 02:35:28 +08:00
provides=("libpulse=${pkgver}")
replaces=('libpulse')
conflicts=('libpulse')
2010-11-28 16:31:40 +08:00
options=(!emptydirs !libtool !makeflags)
2012-09-13 02:35:28 +08:00
source=("http://freedesktop.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.xz")
2012-12-19 04:58:01 +08:00
md5sums=('47fd7eca8479c757822bee68a1feef25')
2010-08-12 01:18:31 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-08-12 01:18:31 +08:00
2010-11-28 16:31:40 +08:00
./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
2010-11-28 16:31:40 +08:00
2010-08-12 01:18:31 +08:00
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
2010-11-28 16:31:40 +08:00
# Disable cork-request module, can result in e.g. media players unpausing
# when there's a Skype call incoming
2010-11-28 16:31:40 +08:00
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"
2010-11-28 16:31:40 +08:00
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"
}