38 lines
962 B
Bash
38 lines
962 B
Bash
# Template file for 'jq'
|
|
pkgname=jq
|
|
version=1.7.1
|
|
revision=1
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake libtool"
|
|
makedepends="oniguruma-devel"
|
|
checkdepends="valgrind"
|
|
short_desc="Command-line JSON processor"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="MIT"
|
|
homepage="https://jqlang.github.io/jq/"
|
|
distfiles="https://github.com/jqlang/jq/releases/download/jq-${version}/jq-${version}.tar.gz"
|
|
checksum=478c9ca129fd2e3443fe27314b455e211e0d8c60bc8ff7df703873deeee580c2
|
|
CFLAGS=" -D_LARGE_FILE_SOURCE=1 -D_FILE_OFFSET_BITS=64"
|
|
|
|
pre_configure() {
|
|
vsed -i -e 's/-static-libtool-libs//' Makefile.am
|
|
autoreconf -fi
|
|
echo "echo $version" >scripts/version
|
|
}
|
|
|
|
post_install() {
|
|
rm -rf ${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
|
|
vmove usr/lib/pkgconfig
|
|
}
|
|
}
|