# Template file for 'jansson'
pkgname=jansson
version=2.13.1
revision=1
build_style=gnu-configure
hostmakedepends="autoconf automake libtool"
short_desc="Library for encoding, decoding and manipulating JSON data"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://www.digip.org/jansson/"
changelog="https://github.com/akheron/jansson/raw/master/CHANGES"
distfiles="https://github.com/akheron/jansson/archive/v${version}.tar.gz"
checksum=f22901582138e3203959c9257cf83eba9929ac41d7be4a42557213a22ebcc7a0

pre_configure() {
	autoreconf -vfi
}

post_install() {
	vlicense LICENSE
}

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