blob: 2a4fadfa29c9f53684dde696c5a62e8355e74880 (
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
51
52
|
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
pkgname=jq
pkgver=1.6_rc2
_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="oniguruma-dev automake autoconf libtool"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="https://github.com/stedolan/jq/archive/${_pkgver}.tar.gz"
builddir="$srcdir/$pkgname-$_pkgver"
# secfixes:
# 1.6_rc1-r0:
# - CVE-2016-4074
prepare() {
default_prepare
cd "$builddir"
autoreconf -fi
}
build() {
cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-docs
make
}
check() {
cd "$builddir"
make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" prefix=/usr install
}
sha512sums="bbdb934a27d42e8c8efe33c1ed59f3729f9ea35bfb24f19463382a5bc31061730b48afe7d6d209c1b3c6335042a8bd11af50e417c728544a3a4644e22a88ad05 1.6rc2.tar.gz"
|