# Template file for 'pulseaudio'
pkgname=pulseaudio
version=2.1
revision=1
build_style=gnu-configure
configure_args="--disable-oss-output --disable-oss-wrapper --disable-tcpwrap
--enable-jack --disable-lirc --disable-hal --disable-hal-compat
--disable-gconf --with-database=tdb --enable-orc
--with-udev-rules-dir=/usr/lib/udev/rules.d"
depends="libpulseaudio>=${version}"
makedepends="pkg-config intltool zlib-devel gtk+-devel libltdl-devel
speex-devel libXi-devel libXtst-devel xcb-util-devel libxcb-devel
libsndfile-devel libasyncns-devel dbus-devel tdb-devel libcap-devel
libbluetooth-devel avahi-libs-devel alsa-lib-devel libudev-devel>=183
openssl-devel libsamplerate-devel json-c-devel orc-devel glib-devel
jack-devel fftw-devel systemd-devel webrtc-audio-processing-devel"
fulldepends="rtkit"
subpackages="libpulseaudio $pkgname-devel"
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=ef6b347bf47abfb98080795f1583018ac959b4aeb4df916b879f9e1eaba0ca7f
long_desc="
 PulseAudio, previously known as Polypaudio, is a sound server for POSIX and
 WIN32 systems. It is a drop in replacement for the ESD sound server with much
 better latency, mixing/re-sampling quality and overall architecture.

 These are some of PulseAudio's features:

  * High quality software mixing of multiple audio streams with support for
    more than one sink/source. May be used to combine multiple sound cards
    into one (with sample rate adjustment).

  * Wide range of supported client libraries. ESD, ALSA, oss, libao and
    GStreamer client applications are supported as-is. Native PulseAudio
    plug-ins are also available for xmms and mplayer.

  * Good low latency behaviour and very accurate latency measurement for
    playback and recording. Ability to fully synchronize multiple playback
    streams.

  * Network transparency, allowing an application to play back or record
    audio on a different machine than the one it is running on.

  * Extensible plug-in architecture with plug-ins for jackd, multicast-rtp
    lirc and avahi, just to name a few."

conf_files="
/etc/pulse/system.pa
/etc/pulse/daemon.conf
/etc/pulse/client.conf
/etc/pulse/default.pa"

post_install() {
	vinstall ${FILESDIR}/pulseaudio.xinit 755 \
		etc/X11/xinit/xinitrc.d pulseaudio
	rm -f ${DESTDIR}/etc/dbus-1/system.d/pulseaudio-system.conf
}
