void-packages/srcpkgs/json-c++/template

23 lines
587 B
Bash

# Template file for 'json-c++'
pkgname=json-c++
version=3.9.1
revision=2
wrksrc="json-${version}"
build_style=cmake
configure_args="-DJSON_MultipleHeaders=ON"
checkdepends="git"
short_desc="JSON for modern C++"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://github.com/nlohmann/json"
distfiles="https://github.com/nlohmann/json/archive/v${version}.tar.gz"
checksum=4cf0df69731494668bdd6460ed8cb269b68de9c19ad8c27abc24cd72605b2d5b
if [ -z "$XBPS_CHECK_PKGS" ]; then
configure_args+=" -DBUILD_TESTING=OFF"
fi
post_install() {
vlicense LICENSE.MIT
}