# Template file for 'libcue'
pkgname=libcue
version=2.3.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
hostmakedepends="bison flex"
short_desc="CUE Sheet Parser Library"
maintainer="John <me@johnnynator.dev>"
license="GPL-2.0-or-later, BSD-2-Clause"
homepage="https://github.com/lipnitsk/libcue"
distfiles="https://github.com/lipnitsk/libcue/archive/v${version}.tar.gz"
checksum=cc1b3a65c60bd88b77a1ddd1574042d83cf7cc32b85fe9481c99613359eb7cfe

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

post_install() {
	head -22 rem.c > COPYING.BSD
	vlicense COPYING.BSD
}
