# Contributor: Natanael Copa # Maintainer: Natanael Copa pkgname=audacity pkgver=2.1.0 pkgrel=0 pkgdesc="Multitrack audio editor" url="http://audacity.sourceforge.net" arch="all" license="GPL2" depends="" depends_dev="" makedepends="$depends_dev alsa-lib-dev bash expat-dev flac-dev jack-dev lame-dev libid3tag-dev libmad-dev libogg-dev libsndfile-dev libvorbis-dev portaudio-dev soxr-dev taglib-dev wxgtk2.8-dev " install="" subpackages="$pkgname-doc $pkgname-lang" source="http://sourceforge.net/projects/audacity/files/audacity-minsrc-$pkgver.tar.xz musl-workaround.patch " _builddir="$srcdir"/audacity-minsrc-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { local _arch cd "$_builddir" case "$CTARGET" in x86|x86_64) _arch="--enable-sse";; *) _arch="--disable-sse";; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --with-lib-preference=system \ --with-libsndfile=system \ --with-soxr=system \ --with-id3tag=system \ --with-libvorbis=system \ --with-portaudio=system \ --with-libmad=system \ --with-widgetextra=local \ --without-libresample \ --without-libsamplerate \ --without-ffmpeg \ $_arch \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 rm -f "$pkgdir"/usr/lib/*.la } md5sums="d21a794cc1e2a1567d3d75b53b1f2f02 audacity-minsrc-2.1.0.tar.xz f4d0e4b195c2f604cea8e8d696ffcc17 musl-workaround.patch" sha256sums="b0d98d89b38be233e88af81e1add649732484b6f8feec95dc5977accdde042b3 audacity-minsrc-2.1.0.tar.xz 888e2a0c0055f11300ecaa550aff5ab1991dbce3b2dab0d05596c3b304b2c675 musl-workaround.patch" sha512sums="5ed441b567bc72a794d9d5a1248db137d1a6d019b5fcdcb8b536a509ecacbf5d85b50c2a0cad484f84053dff4ffa662027cca157fde4b18f9d53b2bd106c34b4 audacity-minsrc-2.1.0.tar.xz b5488a7f5398c07fe986e090b8d61353ecba594ed23fda6a4444e59718f7d1e8bd5c716047ce139350983d5609b5810362a78a2fd5d85e9b1730d196c57c685b musl-workaround.patch"