2010-08-12 01:18:31 +08:00
|
|
|
#
|
2012-05-19 11:02:03 +08:00
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
2010-08-12 01:18:31 +08:00
|
|
|
#
|
2012-05-19 11:02:03 +08:00
|
|
|
# maintainer abveritas@chakra-project.org
|
2010-08-12 01:18:31 +08:00
|
|
|
|
2012-09-09 07:14:05 +08:00
|
|
|
pkgname=pulseaudio
|
2011-10-19 05:02:07 +08:00
|
|
|
pkgdesc="A featureful, general-purpose sound server"
|
2012-12-19 04:58:01 +08:00
|
|
|
pkgver=3.0
|
2013-03-12 10:19:39 +08:00
|
|
|
pkgrel=4
|
2012-11-20 09:29:41 +08:00
|
|
|
arch=('x86_64')
|
2010-11-28 16:31:40 +08:00
|
|
|
url="http://pulseaudio.org/"
|
2012-02-01 06:32:29 +08:00
|
|
|
license=('GPL' 'LGPL')
|
2012-09-09 07:14:05 +08:00
|
|
|
depends=('dbus-core' 'xcb-util' 'libasyncns' 'libcap' 'libxtst' 'libsm'
|
|
|
|
'libsamplerate' 'json-c' 'rtkit' 'libltdl' 'speex' 'tdb'
|
2012-12-19 07:56:30 +08:00
|
|
|
'fftw' 'orc' 'webrtc-audio-processing' 'systemd>=195' 'sbc')
|
2013-03-12 10:19:39 +08:00
|
|
|
makedepends=('attr' 'libltdl' 'avahi' 'bluez' 'intltool' 'jack' 'lirc-utils' 'openssl'
|
|
|
|
'libsndfile' 'pkgconfig' 'sh')
|
2012-09-09 07:14:05 +08:00
|
|
|
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}")
|
2012-09-09 07:14:05 +08:00
|
|
|
replaces=('libpulse')
|
|
|
|
conflicts=('libpulse')
|
2010-11-28 16:31:40 +08:00
|
|
|
options=(!emptydirs !libtool !makeflags)
|
2013-03-12 10:19:39 +08:00
|
|
|
#source=("http://freedesktop.org/software/${pkgname}/releases/${pkgname}-${pkgver}.tar.xz")
|
2013-03-13 10:38:10 +08:00
|
|
|
source=("http://chakra.sourceforge.net/sources/${pkgname}/${pkgname}.tar.xz")
|
2013-03-12 10:19:39 +08:00
|
|
|
md5sums=('10049e1fa0577be38ba04d8bab159fd1')
|
2010-08-12 01:18:31 +08:00
|
|
|
|
|
|
|
build() {
|
2013-03-12 10:19:39 +08:00
|
|
|
cd "${srcdir}/${pkgname}"
|
|
|
|
|
|
|
|
./autogen.sh --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--libexecdir=/usr/lib \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--with-udev-rules-dir=/usr/lib/udev/rules.d \
|
|
|
|
--with-database=tdb \
|
|
|
|
--disable-rpath \
|
|
|
|
--disable-default-build-tests
|
2010-11-28 16:31:40 +08:00
|
|
|
|
2010-08-12 01:18:31 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
2012-09-09 07:14:05 +08:00
|
|
|
package() {
|
2013-03-12 10:19:39 +08:00
|
|
|
cd "${srcdir}/${pkgname}"
|
2012-02-01 06:32:29 +08:00
|
|
|
make DESTDIR="${pkgdir}" install
|
2010-11-28 16:31:40 +08:00
|
|
|
|
2011-10-19 05:02:07 +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|#&|' \
|
2012-02-01 06:32:29 +08:00
|
|
|
-i "${pkgdir}/usr/bin/start-pulseaudio-x11"
|
2011-10-19 05:02:07 +08:00
|
|
|
|
|
|
|
# Python fix
|
2012-02-01 06:32:29 +08:00
|
|
|
sed -i '1s:python$:&2:' "${pkgdir}/usr/bin/qpaeq"
|
2010-11-28 16:31:40 +08:00
|
|
|
|
2012-02-01 06:32:29 +08:00
|
|
|
rm "${pkgdir}/etc/dbus-1/system.d/pulseaudio-system.conf"
|
2013-01-24 05:34:08 +08:00
|
|
|
rm "${pkgdir}/etc/xdg/autostart/pulseaudio.desktop"
|
|
|
|
rm "${pkgdir}/etc/xdg/autostart/pulseaudio-kde.desktop"
|
2012-09-02 01:46:16 +08:00
|
|
|
|
2010-09-04 05:37:49 +08:00
|
|
|
}
|