# Template file for 'rubberband'
pkgname=rubberband
version=1.6.0
revision=4
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="ladspa-sdk libsamplerate-devel vamp-plugin-sdk-devel fftw-devel"
depends="libvamp-plugin-sdk"
short_desc="Time-stretching and pitch-shifting audio library"
maintainer="davehome <davehome@redthumb.info.tm>"
license="GPL-2"
homepage="http://www.breakfastquay.com/rubberband/"
distfiles="http://code.breakfastquay.com/attachments/download/16/${pkgname}-${version}.tar.bz2"
checksum=5bd339e3a64c7ba428f99d8890cee1de5c7165d963d085edb2e7ad357a39c896

librubberband_package() {
	short_desc+=" - Runtime libraries"
	pkg_install() {
		vmove "usr/lib/*.so.*"
		vmove usr/lib/vamp
		vmove usr/lib/ladspa
	}
}

rubberband-devel_package() {
	depends="librubberband>=${version}_${revision}"
	short_desc+=" - Development files"
	pkg_install() {
        	vmove usr/include
		vmove "usr/lib/*.a"
		vmove "usr/lib/*.so"
        	vmove usr/lib/pkgconfig
	}
}
