void-packages/srcpkgs/jq/template

31 lines
787 B
Bash

# Template file for 'jq'
pkgname=jq
version=1.5
revision=1
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Command-line JSON processor"
maintainer="Christian Neukirchen <chneukirchen@gmail.com>"
license="MIT"
homepage="http://stedolan.github.io/jq/"
distfiles="https://github.com/stedolan/${pkgname}/archive/${pkgname}-${version}.tar.gz"
checksum=d644aded536167e0cb7e3547d13decf0000312b5ed8e75be8f053b0ecdf39d83
post_extract() {
autoreconf -fi
}
post_install() {
rm -r ${DESTDIR}/usr/share/doc/$pkgname
vlicense COPYING
}
jq-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.a"
vmove "usr/lib/*.so*"
}
}