# Contributor: Johannes Matheis # Maintainer: Johannes Matheis pkgname=jq pkgver=1.6_rc1 _pkgver=${pkgver/_} pkgrel=1 pkgdesc="A lightweight and flexible command-line JSON processor" url="http://stedolan.github.io/jq/" arch="all" license="MIT" depends="" depends_dev="" makedepends="$depends_dev oniguruma-dev automake autoconf libtool" install="" subpackages="$pkgname-doc $pkgname-dev" source="https://github.com/stedolan/jq/archive/${pkgname}-${_pkgver}.tar.gz" builddir="${srcdir}/$pkgname-${pkgname}-${_pkgver}" # secfixes: # 1.6rc1-r0: # - CVE-2016-4074 prepare() { cd "$builddir" autoreconf -fi } build() { cd "$builddir" ./configure --prefix=/usr --disable-docs make } check() { cd "$builddir" make check } package() { cd "$builddir" make DESTDIR="$pkgdir" prefix=/usr install } sha512sums="c70983c4c60d34fc6edb22763624b100f57db8536381c447a6cb31b660d68f51574f823ee3a231186dde422b871ba017b16488f7296efb5962f9af34859c2377 jq-1.6rc1.tar.gz"