void-packages/srcpkgs/cJSON/template

27 lines
648 B
Bash

# Template file for 'cJSON'
pkgname=cJSON
version=1.7.10
revision=1
build_style=cmake
short_desc="Ultralightweight JSON parser in ANSI C"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="MIT"
homepage="https://github.com/DaveGamble/cJSON"
distfiles="https://github.com/DaveGamble/cJSON/archive/v${version}.tar.gz"
checksum=cc544fdd065f3dd19113f1d5ba5f61d696e0f810f291f4b585d1dec361b0188e
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"
}
}