### this file is sourced not run
PKGVER=1.2.7.1 # have to be identical as the main alsa-plugins
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 11.3
TARBALL=alsa-plugins-$PKGVER.tar.bz2
MD5SUM=8fb7e05b84c87f30655a8997a9a983d1
SRC_URL=https://www.alsa-project.org/files/pub/plugins/$TARBALL
BUNDLE=

# If one day we build pulseaudio before we build alsa-plugins,
# we don't need this extra package anymore.

SLACKREQ='alsa-lib pulseaudio'
SLACKDESC="alsa-plugin-pulse: alsa-plugin-pulse $PKGVER (ALSA plugin for PulseAudio)
alsa-plugin-pulse: 
alsa-plugin-pulse: This package contains ALSA output plugin for Pulseaudio. With this 
alsa-plugin-pulse: plugin, applications which use ALSA can continue to output sound 
alsa-plugin-pulse: while Pulseaudio is running.
alsa-plugin-pulse: 
alsa-plugin-pulse: 
alsa-plugin-pulse: 
alsa-plugin-pulse: 
alsa-plugin-pulse: 
alsa-plugin-pulse:
"

### default pkg_download
### default pkg_prepare

### build
pkg_build() {
	cd /tmp/alsa-plugins*
	pkg_build_autoconf && 
	pkg_build_slackdesc
}

### package
pkg_packageb() {
	# delete stuff which isn't pulseaudio related
	find . -path ./install -prune -o ! -type d -print | grep -v pulse | xargs rm
	find . -type d -empty -delete
}
