aboutsummaryrefslogtreecommitdiffstats
path: root/main/jq/APKBUILD
blob: 2c6b01915c17e9b1c38fb7a8eb06e279ab73ed6c (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
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
pkgver=1.5
pkgrel=4
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"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/stedolan/jq/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz
	0001-mktemp-needs-6-or-more-X-s-fix-1000.patch
	CVE-2015-8863.patch
	"

builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	cd "$builddir"
	./configure --prefix=/usr --disable-docs
	make
}

check() {
	cd "$builddir"
	make check
}

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

sha512sums="4a0bb069ae875f47731d7d84ae6b82240703dc7a694cfb0aee4c7e9639defe7ba9af575d17dc32bda4426b80c186cc8dcd4505f3a6bcbe16b39e9b13097da238  jq-1.5.tar.gz
c3508ad1692ebd7ad3486e376869f0f89230ad5869e00353c682cf86ff43cc15360ee2f45803ec113d7fd822d863856a9b93ff22b83b69d319786fe5bdce1edb  0001-mktemp-needs-6-or-more-X-s-fix-1000.patch
e7e7fdf346ccd6df725dd28029654a6bebaa45ed6f14119f51d7f898b555416595d004bfc8a51f612039c11e9573d0f6ea28c3c2ca6aca1d23f1ee0543bfe1e9  CVE-2015-8863.patch"