# Template file for 'libshout'
pkgname=libshout
version=2.4.1
revision=1
build_style=gnu-configure
makedepends="libtheora-devel libvorbis-devel speex-devel"
short_desc="Icecast client library"
maintainer="Enno Boland <gottox@voidlinux.eu>"
license="GPL-3"
homepage="http://www.icecast.org/"
distfiles="http://downloads.xiph.org/releases/libshout/libshout-$version.tar.gz"
checksum=f3acb8dec26f2dbf6df778888e0e429a4ce9378a9d461b02a7ccbf2991bbf24d

post_install() {
	vinstall shout.pc 644 usr/lib/pkgconfig
}

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