# Template file for 'libucl'
pkgname=libucl
version=0.9.4
revision=1
build_style=gnu-configure
configure_args="--enable-urls --enable-signatures"
hostmakedepends="automake libtool pkg-config"
makedepends="libcurl-devel"
checkdepends="xz"
short_desc="Universal configuration library parser"
maintainer="Orphaned <orphan@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://github.com/vstakhov/libucl"
changelog="https://github.com/vstakhov/libucl/raw/master/ChangeLog.md"
distfiles="https://github.com/vstakhov/libucl/archive/${version}.tar.gz"
checksum=319d8ff13441f55d91cd7f3708a54bd03779733e26958c2346c5109014520aaf

pre_configure() {
	NOCONFIGURE=1 ./autogen.sh
}

post_install() {
	vlicense COPYING LICENSE
}

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