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

# source: BLFS 11.3
TARBALL=libsndfile-$PKGVER.tar.xz
MD5SUM=00fbf50ce1d7a67a8e6dc0a04f4d8d2e
SRC_URL=https://github.com/libsndfile/libsndfile/releases/download/$PKGVER/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib32 libflac32 libogg32 libvorbis32 libopus32'
SLACKDESC="libsndfile32: libsndfile32 $PKGVER (Audio file read/write library)  
libsndfile32:  
libsndfile32: Libsndfile is a library of C routines for reading and writing 
libsndfile32: files containing sampled audio data. It support many popular audio 
libsndfile32: file formats.  
libsndfile32: 
libsndfile32: This is 32-bit version of the library
libsndfile32: 
libsndfile32: https://github.com/libsndfile/libsndfile/
libsndfile32: http://mega-nerd.com/libsndfile/
libsndfile32:
"

### 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() {
	CONFFLAGS="$CONFFLAGS --disable-static --docdir=/usr/share/doc/libsndfile-$PKGVER"
	pkg_build_autoconf && 
	pkg_build_slackdesc
}
