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

# source: BLFS 11.3
TARBALL=speex-$PKGVER.tar.gz
MD5SUM=fe7bf610883ff202092b92c72fe0fe3e
SRC_URL=http://downloads.us.xiph.org/releases/speex/$TARBALL
BUNDLE=

TARBALL2=speexdsp-$PKGVERDSP.tar.gz
MD5SUM2=e6eb5ddef743a362c8018f260b91dca5
SRC_URL2=http://downloads.us.xiph.org/releases/speex/$TARBALL2

SLACKREQ=
SLACKDESC="libspeex32: libspeex32 $PKGVER (Speex audio codec)  
libspeex32:  
libspeex32: Speex is an audio compression format designed especially for speech. 
libspeex32: It is well-adapted to internet applications and provides useful 
libspeex32: features that are not present in most other CODECs.  
libspeex32: 
libspeex32: This contains 32-bit version of the library. 
libspeex32: 
libspeex32: https://www.speex.org/
libspeex32: 
libspeex32:  
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	TARBALL=$TARBALL2 SRC_URL=$SRC_URL2 MD5SUM=$MD5SUM2 &&
	pkg_prepare_default
}

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

### build
pkg_build() {
	cd /tmp/speex-* &&
	./configure $CONFFLAGS --disable-static --docdir=/usr/share/doc/speex-$PKGVER && 
	make && make install &&
	cd ../speexdsp* &&
	./configure $CONFFLAGS --disable-static --docdir=/usr/share/doc/speexdsp-$PKGVERDSP && 
	make && make install &&
	pkg_build_slackdesc
}
