# Template file for 'cJSON'
pkgname=cJSON
version=1.7.19
revision=1
build_style=cmake
configure_args="-DCMAKE_POLICY_VERSION_MINIMUM=3.5"
short_desc="Ultralightweight JSON parser in ANSI C"
maintainer="Orphaned <orphan@voidlinux.org>"
license="MIT"
homepage="https://github.com/DaveGamble/cJSON"
distfiles="https://github.com/DaveGamble/cJSON/archive/v${version}.tar.gz"
checksum=7fa616e3046edfa7a28a32d5f9eacfd23f92900fe1f8ccd988c1662f30454562

post_install() {
	vlicense LICENSE
}

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