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

# source: james
# release tarball
#PKGVER=0.1.13
#TARBALL=apulse-$PKGVER.tar.gz
#MD5SUM=
#SRC_URL=https://github.com/i-rinat/apulse/archive/refs/tags/$PKGVER.tar.gz
#BUNDLE=

# git-master tarball
PKGVER=0.1.13.2023.04 # contains important manpage update
MD5SUM=d852e423acbcd7c31efd04dd89278b7a
hash=6c4ce36bd02189fe4fadd09ac074a4d0d1045d32
hash7=${hash#???????}; hash7=${hash%$hash7}
TARBALL=apulse-$PKGVER-$hash7.tar.gz
SRC_URL=https://github.com/i-rinat/apulse/archive/$hash.tar.gz

SLACKREQ='alsa-lib32 glib32'
SLACKDESC="libapulse32: libapulse32 $PKGVER (PulseAudio Emulation for ALSA)
libapulse32: 
libapulse32: PulseAudio emulation for ALSA. Required for software that demands
libapulse32: pulseaudio. 
libapulse32: 
libapulse32: This contains 32-bit version of the library.
libapulse32: 
libapulse32: https://github.com/i-rinat/apulse
libapulse32: 
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
}


