void-packages/srcpkgs/cJSON/template
2020-04-12 10:08:10 +02:00

27 lines
645 B
Bash

# Template file for 'cJSON'
pkgname=cJSON
version=1.7.13
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=d4e77a38f540f2c37f55758f2666655314f1f51c716fea5f279659940efdcf04
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"
}
}