# Template file for 'confuse'
pkgname=confuse
version=3.3
revision=1
build_style=gnu-configure
configure_args="--enable-shared --enable-static"
short_desc="Small configuration file parser library for C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="ISC"
homepage="https://github.com/martinh/libconfuse"
changelog="https://github.com/martinh/libconfuse/raw/master/ChangeLog.md"
distfiles="${homepage}/releases/download/v${version}/confuse-${version}.tar.xz"
checksum=1dd50a0320e135a55025b23fcdbb3f0a81913b6d0b0a9df8cc2fdf3b3dc67010

post_install() {
	vlicense LICENSE
}

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