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

# source: james
TARBALL=aubio-0.4.1.tar.bz2
MD5SUM=ffe7d24f6bd8e9053aeaba6c0231efb0
SRC_URL=http://aubio.org/pub/$TARBALL
BUNDLE=

SLACKREQ='alsa-lib libjack2 libsamplerate libsndfile ffmpeg libfftw3f' # 
SLACKDESC='aubio: aubio 0.4.1 (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 $CHROOT_DIR/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 &&
	mv /usr/lib/libaubio* /usr/$LIBDIR &&
	rm /usr/$LIBDIR/libaubio.a # don't want the static lib
}
