2010-11-20 00:10:49 +01:00
|
|
|
# Template file for 'pulseaudio'
|
|
|
|
pkgname=pulseaudio
|
2014-03-03 20:36:58 +01:00
|
|
|
version=5.0
|
2014-03-28 16:38:02 +01:00
|
|
|
revision=4
|
2011-10-24 14:14:47 +02:00
|
|
|
build_style=gnu-configure
|
2011-09-28 09:28:22 +02:00
|
|
|
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
|
2012-12-18 11:42:49 +01:00
|
|
|
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
|
2013-04-27 10:50:53 +02:00
|
|
|
--with-database=tdb --with-udev-rules-dir=/usr/lib/udev/rules.d
|
2014-03-28 16:38:02 +01:00
|
|
|
--disable-esound --disable-gtk3 --enable-bluez5 --disable-bluez4"
|
2014-03-06 16:29:09 +01:00
|
|
|
hostmakedepends="automake libtool pkg-config intltool which orc-devel"
|
2013-06-22 09:22:42 +02:00
|
|
|
makedepends="zlib-devel libltdl-devel glib-devel libudev-devel speex-devel libXi-devel
|
2013-05-15 10:04:40 +02:00
|
|
|
libXtst-devel xcb-util-devel libsndfile-devel libasyncns-devel
|
|
|
|
dbus-devel tdb-devel libcap-devel avahi-libs-devel openssl-devel
|
|
|
|
libsamplerate-devel json-c-devel>=0.11_2 orc-devel jack-devel fftw-devel
|
2013-09-28 18:58:42 +02:00
|
|
|
systemd-devel webrtc-audio-processing-devel sbc-devel
|
2013-04-27 10:50:53 +02:00
|
|
|
libcap-progs libxcb-devel libXtst-devel libSM-devel rtkit"
|
2014-01-01 16:10:11 +01:00
|
|
|
depends="rtkit"
|
|
|
|
conf_files="
|
|
|
|
/etc/pulse/system.pa
|
|
|
|
/etc/pulse/daemon.conf
|
|
|
|
/etc/pulse/client.conf
|
|
|
|
/etc/pulse/default.pa"
|
2010-11-20 00:10:49 +01:00
|
|
|
short_desc="A featureful, general-purpose sound server"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
2012-05-11 20:58:48 +02:00
|
|
|
homepage="http://www.freedesktop.org/wiki/Software/PulseAudio"
|
2011-07-06 21:41:25 +02:00
|
|
|
license="LGPL-2"
|
2012-12-18 11:24:00 +01:00
|
|
|
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.xz"
|
2014-03-03 20:36:58 +01:00
|
|
|
checksum=99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939
|
2010-11-20 00:10:49 +01:00
|
|
|
|
2014-03-03 20:36:58 +01:00
|
|
|
pre_configure() {
|
|
|
|
libtoolize -f
|
|
|
|
}
|
2010-11-20 00:10:49 +01:00
|
|
|
|
2012-05-11 20:58:48 +02:00
|
|
|
post_install() {
|
2013-12-03 10:53:38 +01:00
|
|
|
vinstall ${FILESDIR}/pulseaudio.xinit 755 etc/X11/xinit/xinitrc.d pulseaudio
|
2012-05-11 20:58:48 +02:00
|
|
|
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
|
2013-12-03 10:53:38 +01:00
|
|
|
|
2013-09-14 04:50:56 +02:00
|
|
|
vmkdir usr/share/bash-completion/completions
|
|
|
|
mv ${DESTDIR}/etc/bash_completion.d/pulseaudio-bash-completion.sh \
|
|
|
|
${DESTDIR}/usr/share/bash-completion/completions/pulseaudio
|
2013-12-03 10:53:38 +01:00
|
|
|
|
|
|
|
# Disable autospawn by default
|
|
|
|
sed -e '/autospawn/iautospawn=no' -i ${DESTDIR}/etc/pulse/client.conf
|
|
|
|
|
|
|
|
# Speed up pulseaudio shutdown so that it exits immediately with
|
|
|
|
# the last user session (module-systemd-login keeps it alive)
|
|
|
|
sed -e '/exit-idle-time/iexit-idle-time=0' -i ${DESTDIR}/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 ${DESTDIR}/usr/bin/start-pulseaudio-x11
|
2010-11-20 00:10:49 +01:00
|
|
|
}
|
2013-04-13 22:47:11 +02:00
|
|
|
|
|
|
|
libpulseaudio_package() {
|
2013-04-27 10:50:53 +02:00
|
|
|
short_desc+=" - shared libraries"
|
2013-04-13 22:47:11 +02:00
|
|
|
pkg_install() {
|
2013-06-22 09:22:42 +02:00
|
|
|
vmove "usr/lib/libpulse.so.*"
|
|
|
|
vmove "usr/lib/libpulse-simple.so.*"
|
|
|
|
vmove "usr/lib/libpulse-mainloop-glib.so.*"
|
2013-04-13 22:47:11 +02:00
|
|
|
vmove usr/lib/pulseaudio
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pulseaudio-devel_package() {
|
2013-12-03 10:53:38 +01:00
|
|
|
depends="libasyncns-devel dbus-devel libXtst-devel libpulseaudio>=${version}_${revision}"
|
2013-04-27 10:50:53 +02:00
|
|
|
short_desc+=" - development files"
|
2013-04-13 22:47:11 +02:00
|
|
|
pkg_install() {
|
|
|
|
vmove usr/include
|
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
vmove usr/lib/cmake
|
2013-06-22 09:22:42 +02:00
|
|
|
vmove usr/lib/libpulse.so
|
|
|
|
vmove usr/lib/libpulse-simple.so
|
|
|
|
vmove usr/lib/libpulse-mainloop-glib.so
|
2013-04-13 22:47:11 +02:00
|
|
|
vmove usr/share/vala
|
|
|
|
}
|
|
|
|
}
|