# Template file for 'opus'
pkgname=opus
version=1.0.2
revision=2
build_style=gnu-configure
configure_args="--enable-float-approx"
short_desc="Codec designed for interactive speech and audio transmission over the Internet"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://www.opus-codec.org/"
license="BSD"
distfiles="http://downloads.xiph.org/releases/opus/opus-${version}.tar.gz"
checksum=da615edbee5d019c1833071d69a4782c19f178cf9ca1401375036ecef25cd78a

post_install() {
	vinstall COPYING 644 usr/share/licenses/opus
}

opus-devel_package() {
	depends="opus-${version}_${revision}"
	short_desc="${short_desc} -- development files"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.a"
		vmove usr/share/aclocal
	}
}

opus_package() {
	pkg_install() {
		vmove usr
	}
}
