# Template file for 'dcadec'
pkgname=dcadec
version=0.2.0
revision=2
build_style=gnu-makefile
short_desc="DTS Coherent Acoustics decoder with support for HD extensions"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1"
homepage="https://github.com/foo86/dcadec"
distfiles="$homepage/archive/v${version}.tar.gz"
checksum=ed9d207fde3e8d576f3af8b0d1235b3371e315175757173689104efcaebf0d44
CFLAGS='-std=gnu99'
make_build_args="CONFIG_SHARED=TRUE"
make_install_args="CONFIG_SHARED=TRUE"

post_install() {
	mv -v ${DESTDIR}/usr/bin/dcadec{,-hd}
}

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