#Maintainer: Frederic Boulet bipbiponlinux~AT~gmail.com pkgname=pulseaudio pkgver=1.1 zenver=72 pkgrel=1 arch=i486 source=("http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$pkgver.tar.gz" \ "http://patch-tracker.debian.org/patch/series/dl/pulseaudio/0.9.23-1/0001-Work-around-some-platforms-not-having-O_CLOEXEC.patch" \ "http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname/pulse-alsa.conf.new") docs=("readme" "install" "GPL" "LGPL" "LICENSE" "copying" "changelog" "authors" "news" "todo" "maintainers") url=www.gnome.org sourcetemplate=http://zenwalk.pinguix.com/user-accounts/bip/EXTRA/g/$pkgname options=('norequiredbuilder' 'keepdepfile') doinst() { # pulse group is required for user level if ! grep ^pulse: /etc/group 2>&1 > /dev/null; then echo "--- Group pulse for pulseaudio doesn't exist, lets create it." groupadd -g 216 pulse >/dev/null 2>&1 sleep 1 elif ! grep ^pulse: /etc/passwd 2>&1 > /dev/null; then echo "--- User pulse for pulseaudio doesn't exist, lets create it." useradd -r -M -s /bin/false -g pulse -G audio -u 216 -c "PulseAudio Server" -d /var/lib/pulse pulse >/dev/null 2>&1 rm -f /var/spool/mail/pulse >/dev/null 2>&1 sleep 1 fi ( cd usr/bin; rm -f esd; ) ( cd usr/bin; ln -sf esdcompat esd; ) if [ -x etc/rc.d/rc.avahidaemon ]; then echo "Restarting Avahi Daemon ..." /etc/rc.d/rc.avahidaemon restart >/dev/null 2>&1 fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pulseaudio (PulseAudio sound server)" "PulseAudio is a networked sound server for POSIX systems and acts as" "a proxy for your sound applications. It allows you to do advanced" "operations on your sound data as it passes between your application" "and your hardware like transferring the audio to a different machine," "changing the sample format or channel count and mixing several sounds" "into one." ) build() { cd $startdir/src/$pkgname-$pkgver ./configure --prefix=/usr --localstatedir=/var --sysconfdir=/etc --disable-static --enable-avahi --enable-bluez \ --enable-alsa --disable-hal --with-system-user=pulse --with-system-group=pulse --with-access-group=audio \ --disable-tcpwrap --disable-rpath --disable-default-build-tests --disable-jack make || return 1 make install DESTDIR=$startdir/pkg mkdir -p $startdir/pkg/var/lib/pulse || exit 1 mkdir -p $startdir/pkg/var/run/pulse || exit 1 mkdir -p $startdir/pkg/etc/alsa || exit 1 install -m644 -D $startdir/src/pulse-alsa.conf.new $startdir/pkg/etc/alsa/pulse-alsa.conf # Lower resample quality, saves CPU sed -e '/resample-method/iresample-method=speex-float-0' -i $startdir/pkg/etc/pulse/daemon.conf # To make GStreamer use PulseAudio mkdir -p $startdir/pkg/etc/gconf/gconf.xml.defaults gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults -t string --set /system/gstreamer/0.10/default/audiosink pulsesink gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults -t string --set /system/gstreamer/0.10/default/audiosrc pulsesrc gconftool-2 --direct --config-source xml::$startdir/pkg/etc/gconf/gconf.xml.defaults -t string --set /system/gstreamer/0.10/default/musicaudiosink pulsesink }