aboutsummaryrefslogtreecommitdiffstats
path: root/main/jq/APKBUILD
blob: 6932ec8fa71abd9a0a6877eddeb424c7c05bd7a1 (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_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.6_rc1-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"