### this file is sourced not run
PKGVER=0.4.7
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=aubio-$PKGVER.tar.bz2
MD5SUM=1e8deb14b0e45ffadc91dcf7cfaee0c8
SRC_URL=http://aubio.org/pub/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib libjack2 libsamplerate libsndfile ffmpeg libfftw3f' # 
SLACKDESC="aubio: aubio $PKGVER (Audio annotations tool)
aubio: 
aubio: aubio is a tool designed for the extraction of annotations from audio 
aubio: signals. Its features include segmenting a sound file before each of 
aubio: its attacks, performing pitch detection, tapping the beat and 
aubio: producing midi streams from live audio.
aubio: 
aubio: http://aubio.org/
aubio: 
aubio: 
aubio: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cp tmp/pkg/txt2man usr/bin &&
	chmod +x usr/bin/txt2man
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/aubio*
	./waf configure $CONFFLAGS --libdir=/usr/$LIBDIR --enable-fftw3f &&
	./waf build $MAKEFLAGS &&
	./waf install &&
	pkg_build_slackdesc &&
	
	# clean up
	rm -f /usr/bin/txt2man &&
	rm /usr/$LIBDIR/libaubio.a # don't want the static lib
}
