aboutsummaryrefslogtreecommitdiffstats
path: root/main/jq/APKBUILD
blob: 57afc94ce37e55650d2971f0c107ee0a32ac5896 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
pkgver=1.6
pkgrel=1
pkgdesc="A lightweight and flexible command-line JSON processor"
url="https://stedolan.github.io/jq/"
arch="all"
license="MIT"
makedepends="oniguruma-dev automake autoconf libtool"
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/stedolan/jq/archive/jq-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgname-$pkgver"

# secfixes:
#   1.6_rc1-r0:
#     - CVE-2016-4074

prepare() {
	default_prepare
	autoreconf -fi
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--disable-docs
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" prefix=/usr install
}

sha512sums="e707682239c9a3e6c31c2ce0d433c35140d88881d25637cefa880e0ae288b7746497b73b25403ad11134707c755979bee455523fb32b77a716f101f1e07a1149  jq-1.6.tar.gz"