# Template file for 'jsoncpp'
pkgname=jsoncpp
version=1.9.6
revision=1
build_style=meson
short_desc="JSON implementation in C++"
maintainer="Orphaned <orphan@voidlinux.org>"
license="Public Domain, MIT"
homepage="https://github.com/open-source-parsers/jsoncpp"
changelog="https://github.com/open-source-parsers/jsoncpp/releases"
distfiles="https://github.com/open-source-parsers/jsoncpp/archive/${version}.tar.gz"
checksum=f93b6dd7ce796b13d02c108bc9f79812245a82e577581c4c9aabe57075c90ea2

post_install() {
	vlicense LICENSE
	# Remove broken cmake config https://github.com/open-source-parsers/jsoncpp/issues/1568
	rm -r "${DESTDIR}"/usr/lib/cmake
}

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