aboutsummaryrefslogtreecommitdiffstats
path: root/main/jq/APKBUILD
blob: d37c46124f327a7888c001add7e8c300d63121c8 (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
45
46
47
48
49
50
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
pkgver=1.4
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"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/stedolan/jq/releases/download/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz
	CVE-2015-8863.patch
	"

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

prepare() {
	cd "$_builddir"
	for i in $source; do
		case "$i" in
		*.patch)
			msg "Applying $i"
			patch -p1 -i "$srcdir"/$i || return 1
			;;
		esac
	done
}

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

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=/usr install
	rm -f "$pkgdir"/usr/lib/*.la
}

md5sums="e3c75a4f805bb5342c9f4b3603fb248f  jq-1.4.tar.gz
f811e526723ff1b39c20e57b31005b1d  CVE-2015-8863.patch"
sha256sums="998c41babeb57b4304e65b4eb73094279b3ab1e63801b6b4bddd487ce009b39d  jq-1.4.tar.gz
e5c1c4e2bef0e904cb1742218581009a6ab80e0c5bb5e20a002e908c467256f8  CVE-2015-8863.patch"
sha512sums="02e601b713a3249bcfe5373153dff38a63bf504895181ca3f691dbf033b407373a9c5880001bbd1954123cdf89f4fe75e2a5168e7a7cf13b3f7355dc18f92458  jq-1.4.tar.gz
704325eb869af47ee9c49b4af2bcc6465956732d0e845d9ddc5e8e30b6bf3c84acac41b3e0aac2c0d5c01cc3b693c483d65109881204d63073636075c0c27a4d  CVE-2015-8863.patch"