summaryrefslogtreecommitdiff
path: root/repo/jq/jq.xibuild
blob: 2c1b75c800c9094622296e1bc216d0d0c6b4ed4d (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
#!/bin/sh

NAME="jq"
DESC="A lightweight and flexible command-line JSON processor"

MAKEDEPS="automake autoconf libtool oniguruma"

PKG_VER=1.6
SOURCE="https://github.com/stedolan/jq/archive/jq-$PKG_VER.tar.gz"

prepare() {
	autoreconf -fi
}

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

check() {
	make check
}

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