# Template file for 'libfishsound'
pkgname="libfishsound"
version="1.0.0"
revision=1
build_style="gnu-configure"
hostmakedepends="pkg-config doxygen"
makedepends="libflac-devel speex-devel libvorbis-devel liboggz-devel libsndfile-devel"
short_desc="Simple interface for decoding/encoding audio data using Xiph.org codecs"
maintainer="newbluemoon <blaumolch@mailbox.org>"
homepage="https://xiph.org/fishsound/"
license="BSD"
distfiles="http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=2e0b57ce2fecc9375eef72938ed08ac8c8f6c5238e1cae24458f0b0e8dade7c7
configure_args="--enable-static=no"

post_install() {
	vlicense COPYING
	vdoc AUTHORS
	vdoc README
}

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

