# Template file for 'yyjson'
pkgname=yyjson
version=0.12.0
revision=1
build_style=cmake
configure_args="-DBUILD_SHARED_LIBS=ON"
short_desc="High performance JSON library"
maintainer="classabbyamp <void@placeviolette.net>"
license="GPL-3.0-or-later"
homepage="https://ibireme.github.io/yyjson"
changelog="https://github.com/ibireme/yyjson/raw/master/CHANGELOG.md"
distfiles="https://github.com/ibireme/yyjson/archive/refs/tags/${version}.tar.gz"
checksum=b16246f617b2a136c78d73e5e2647c6f1de1313e46678062985bdcf1f40bb75d

if [ -n "$XBPS_CHECK_PKGS" ]; then
	configure_args+=" -DYYJSON_BUILD_TESTS=ON"
fi

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