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

# source: james updated to BLFS 11.3
TARBALL=soundtouch-$PKGVER.tar.gz
MD5SUM=058db201df6151e3cbd07dc8929885c4
SRC_URL=https://www.surina.net/soundtouch/$TARBALL
#SRC_URLhttps://codeberg.org/soundtouch/soundtouch/archive/$PKGVER.tar.gz # alternativey
BUNDLE=

SLACKREQ=
SLACKDESC="libsoundtouch32: libsoundtouch32 $PKGVER (Audio processing library)
libsoundtouch32: 
libsoundtouch32: SoundTouch is an open-source audio processing library for changing 
libsoundtouch32: the Tempo, Pitch and Playback Rates of audio streams or audio files. 
libsoundtouch32: The library additionally supports estimating stable beats-per-minute 
libsoundtouch32: rates for audio tracks.
libsoundtouch32: 
libsoundtouch32: This is 32-bit version of the library.
libsoundtouch32: 
libsoundtouch32: http://www.surina.net/soundtouch/
libsoundtouch32: https://gitlab.com/soundtouch/soundtouch
"

### default pkg_download
### default pkg_prepare
### package - only collect the libraries
pkg_package() {
	rm -rf bin sbin usr/bin usr/sbin usr/include usr/share
}

### build
pkg_build() {
	cd /tmp/soundtouch*
	
	CONFFLAGS="$CONFFLAGS \
		--docdir=/usr/share/doc/soundtouch-$PKGVER \
		--enable-openmp \
	" &&
	
	./bootstrap &&
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
