void-packages/srcpkgs/pulseaudio/template

77 lines
2.5 KiB
Text
Raw Normal View History

# Template file for 'pulseaudio'
pkgname=pulseaudio
2014-03-03 19:36:58 +00:00
version=5.0
revision=7
build_style=gnu-configure
2011-09-28 07:28:22 +00:00
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
2012-12-18 10:42:49 +00:00
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
--with-database=tdb --with-udev-rules-dir=/usr/lib/udev/rules.d
--disable-esound --disable-gtk3 --enable-bluez5 --disable-bluez4"
2014-03-06 15:29:09 +00:00
hostmakedepends="automake libtool pkg-config intltool which orc-devel"
makedepends="
zlib-devel libltdl-devel glib-devel libudev-devel speex-devel libXi-devel
libXtst-devel xcb-util-devel libsndfile-devel libasyncns-devel
2014-07-14 13:49:14 +00:00
dbus-devel tdb-devel libcap-devel avahi-libs-devel libressl-devel
libsamplerate-devel json-c-devel>=0.11_2 orc-devel jack-devel fftw-devel
webrtc-audio-processing-devel sbc-devel libxcb-devel libXtst-devel libSM-devel
libcap-progs rtkit"
depends="rtkit"
conf_files="
/etc/pulse/system.pa
/etc/pulse/daemon.conf
/etc/pulse/client.conf
/etc/pulse/default.pa"
short_desc="A featureful, general-purpose sound server"
maintainer="Juan RP <xtraeme@gmail.com>"
2012-05-11 18:58:48 +00:00
homepage="http://www.freedesktop.org/wiki/Software/PulseAudio"
2011-07-06 19:41:25 +00:00
license="LGPL-2"
2012-12-18 10:24:00 +00:00
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.xz"
2014-03-03 19:36:58 +00:00
checksum=99c13a8b1249ddbd724f195579df79484e9af6418cecf6a15f003a7f36caf939
# Package build options
build_options="systemd"
if [ "$build_option_systemd" ]; then
configure_args+=" --enable-systemd --enable-systemd-journal"
makedepends+=" systemd-devel"
else
configure_args+=" --disable-systemd --disable-systemd-journal"
fi
2014-03-03 19:36:58 +00:00
pre_configure() {
libtoolize -f
}
2012-05-11 18:58:48 +00:00
post_install() {
2013-12-03 09:53:38 +00:00
vinstall ${FILESDIR}/pulseaudio.xinit 755 etc/X11/xinit/xinitrc.d pulseaudio
2012-05-11 18:58:48 +00:00
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
2013-12-03 09:53:38 +00:00
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/pulseaudio-bash-completion.sh \
${DESTDIR}/usr/share/bash-completion/completions/pulseaudio
}
libpulseaudio_package() {
short_desc+=" - shared libraries"
pkg_install() {
vmove "usr/lib/libpulse.so.*"
vmove "usr/lib/libpulse-simple.so.*"
vmove "usr/lib/libpulse-mainloop-glib.so.*"
vmove usr/lib/pulseaudio
}
}
pulseaudio-devel_package() {
2013-12-03 09:53:38 +00:00
depends="libasyncns-devel dbus-devel libXtst-devel libpulseaudio>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove usr/lib/cmake
vmove usr/lib/libpulse.so
vmove usr/lib/libpulse-simple.so
vmove usr/lib/libpulse-mainloop-glib.so
vmove usr/share/vala
}
}