### this file is sourced not run
PKGVER=0.1.12.2019.10
PKGBUILD=1
PKGARCH=i686

# source: james
TARBALL=apulse-master-20191003.tar.gz
MD5SUM=82fe4e0c589552fd152ac59e293372cb
#TARBALL=apulse-${PKGVER}.tar.gz
#SRC_URL=https://github.com/i-rinat/apulse/archive/v${PKGVER}.tar.gz
SRC_URL=http://distro.ibiblio.org/fatdog/source/800/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib'
SLACKDESC="libapulse32: libapulse32 $PKGVER (PulseAudio Emulation for ALSA)
libapulse32: 
libapulse32: PulseAudio emulation for ALSA. Required for software that demands
libapulse32: pulseaudio. If you need skype you want this. 
libapulse32: 
libapulse32: This contains 32-bit version of the library.
libapulse32: 
libapulse32: 
libapulse32: https://github.com/i-rinat/apulse
libapulse32: 
libapulse32:
"

### default pkg_download
### default pkg_prepare

### package - only collect the libraries
pkg_package() {
	rm -rf usr/include usr/share etc usr/bin
}

### build
pkg_build() {
	cd /tmp/apulse*
	CMAKEFLAGS="$CMAKE_FLAGS \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DAPULSEPATH=/usr/$LIBDIR/apulse \
		-DCMAKE_BUILD_TYPE=Release"
	pkg_build_cmake &&
	pkg_build_slackdesc
}


