# Template file for 'audacity'
pkgname=audacity
version=2.1.1
revision=1
wrksrc="${pkgname}-Audacity-${version}"
build_style=gnu-configure
configure_args="--with-libsamplerate"
if ! [ "$XBPS_TARGET_MACHINE" = "i686" -o "$XBPS_TARGET_MACHINE" = "x86_64" ]; then
	configure_args+=" --disable-sse"
fi
hostmakedepends="pkg-config cmake"
makedepends="wxGTK-devel gtk+-devel expat-devel
 libsndfile-devel libmad-devel libsamplerate-devel soundtouch-devel
 vamp-plugin-sdk-devel lame-devel libid3tag-devel"
depends="desktop-file-utils hicolor-icon-theme"
short_desc="Graphical cross-platform audio editor"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="GPL-2"
homepage="http://audacityteam.org/"
distfiles="https://github.com/${pkgname}/${pkgname}/archive/Audacity-${version}.tar.gz"
checksum=15c5ff7ac1c0b19b08f4bdcb0f4988743da2f9ed3fab41d6f07600e67cb9ddb6

post_install() {
	rm ${DESTDIR}/usr/share/doc/${pkgname}/LICENSE.txt
	vlicense LICENSE.txt LICENSE
}
