void-packages/srcpkgs/pulseaudio/template

69 lines
2.4 KiB
Text

# Template file for 'pulseaudio'
pkgname=pulseaudio
version=6.0
revision=2
# Package build options
build_options="systemd"
build_style=gnu-configure
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
--enable-jack --disable-lirc --disable-hal-compat --disable-gconf --enable-orc
--with-database=tdb --with-udev-rules-dir=/usr/lib/udev/rules.d --disable-bluez4
--disable-esound --disable-gtk3 --enable-bluez5 --disable-bluez5-ofono-headset
$(vopt_enable systemd) $(vopt_enable systemd systemd-journal)"
hostmakedepends="automake libtool pkg-config intltool orc-devel"
makedepends="
zlib-devel libltdl-devel glib-devel libudev-devel speex-devel>=1.2rc2_4 libXi-devel
libXtst-devel xcb-util-devel libsndfile-devel libasyncns-devel
dbus-devel tdb-devel libcap-devel avahi-libs-devel libressl-devel>=2.1.3
webrtc-audio-processing-devel json-c-devel>=0.11_2 orc-devel jack-devel fftw-devel
libcap-progs sbc-devel libxcb-devel libXtst-devel libSM-devel
$(vopt_if systemd systemd-devel)"
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>"
homepage="http://www.freedesktop.org/wiki/Software/PulseAudio"
license="LGPL-2"
distfiles="${FREEDESKTOP_SITE}/${pkgname}/releases/${pkgname}-${version}.tar.xz"
checksum=b50640e0b80b1607600accfad2e45aabb79d379bf6354c9671efa2065477f6f6
pre_configure() {
libtoolize -f
touch aclocal.m4 Makefile.in config.h.in
}
post_install() {
rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
vmkdir usr/share/bash-completion/completions
mv ${DESTDIR}/etc/bash_completion.d/* \
${DESTDIR}/usr/share/bash-completion/completions
}
libpulseaudio_package() {
shlib_provides="libpulsecommon-6.0.so"
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() {
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
}
}