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

# source: kirk (updated to 2.1.2 by james)
TARBALL=audacity-minsrc-$PKGVER.tar.xz
MD5SUM=2336353377132971fd8e22fc95fd6b83
#SRC_URL=http://www.fosshub.com/Audacity.html/$TARBALL # needs captcha
SRC_URL=http://distro.ibiblio.org/fatdog/source/710/$TARBALL
BUNDLE=

SLACKREQ='wxwidgets lv2 ffmpeg libmad libvorbis lame 
libsndfile libvamp libflac twolame libjack2 libsoxr libid3tag
liblilv libsuil'
SLACKDESC="audacity: audacity $PKGVER (Audio editor)  
audacity:  
audacity: Audacity(R): A Free, Cross-Platform Digital Audio Editor
audacity: WWW: http://audacity.sourceforge.net/
audacity:
audacity: 
audacity: 
audacity: 
audacity: 
audacity: 
audacity:
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/audacity* &&
	patch -Np1 -i ../pkg/ftbfs.patch
}

### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS --disable-static --enable-sse \
		--disable-dynamic-loading \
		--with-ffmpeg --with-lame --with-libmad --with-libvorbis --with-libid3tag"
	cd /tmp/audacity*
	rm -f /usr/$LIBDIR/libvamp*.la # remove bad stuff
	pkg_build_autoconf &&
	pkg_build_slackdesc
}
