void-packages/srcpkgs/cJSON/template
2020-10-15 02:10:50 -03:00

27 lines
645 B
Bash

# Template file for 'cJSON'
pkgname=cJSON
version=1.7.14
revision=1
build_style=cmake
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=fb50a663eefdc76bafa80c82bc045af13b1363e8f45cec8b442007aef6a41343
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"
}
}