void-packages/srcpkgs/yyjson/template

29 lines
825 B
Bash

# Template file for 'yyjson'
pkgname=yyjson
version=0.10.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=0d901cb2c45c5586e3f3a4245e58c2252d6b24bf4b402723f6179523d389b165
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"
}
}