# Template file for 'rubberband'
pkgname=rubberband
version=1.6.0
revision=3
build_style=gnu-configure
makedepends="pkg-config ladspa-sdk libsamplerate-devel vamp-plugin-sdk-devel fftw-devel"
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
long_desc="
 Rubber Band Library is a high quality software library for audio
 time-stretching and pitch-shifting. It permits you to change the tempo
 and pitch of an audio stream or recording dynamically and independently
 of one another."

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

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

rubberband_package() {
	depends="libvamp-plugin-sdk"
	pkg_install() {
		vmove usr
	}
}