# vim: set syn=sh: # Packager: Phill Watkins pkgname=alsa-plugins-pulse pkgver=1.0.24 pkgrel=1pw #arch=noarch source=("ftp://ftp.alsa-project.org/pub/plugins/alsa-plugins-$pkgver.tar.bz2") sourcetemplate=http://people.salixos.org/pwatk/packages/13.37/l/$pkgname docs=("COPYING*" "README-pulse") url=http://www.alsa-project.org #options=('nosrcpack') doinst() { # Configure ALSA to support Pulseaudio: if [ ! -f etc/asound.conf ] || [ -z "$(grep 'pcm.pulse' etc/asound.conf)" ]; then cat <<- EOF >> etc/asound.conf # Enable Pulseaudio PCM and mixer control: pcm.pulse { type pulse } ctl.pulse { type pulse } # Use PulseAudio by default: #pcm.!default { # type pulse #} #ctl.!default { # type pulse #} EOF fi } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "alsa-plugins-pulse (Pulseaudio plugin for ALSA)" "The Advanced Linux Sound Architecture (ALSA) provides audio and MIDI" "functionality to the Linux operating system." "" "This package contains the Pulseaudio library plugin for ALSA." ) build() { set -e cd $startdir/src/alsa-plugins-$pkgver ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --libdir=/usr/lib${LIBDIRSUFFIX} \ --build=$arch-slackware-linux \ --enable-pulseaudio make -C pulse -j $numjobs make -C pulse install DESTDIR=$startdir/pkg # Configure ALSA to support Pulseaudio: #install -Dm 0644 $startdir/src/asound.conf $startdir/pkg/etc/asound.conf set +e }