aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jo/APKBUILD
blob: a14af584bb53f2909c233366468627c8beb56e46 (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
# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Orion <systmkor@gmail.com>
pkgname=jo
pkgver=1.2
pkgrel=0
pkgdesc="JSON output from a shell"
url="https://github.com/jpmens/jo/"
arch="all"
license="GPL-2.0"
subpackages="$pkgname-doc"
source="https://github.com/jpmens/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.gz"

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

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

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

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

sha512sums="72dd61bf5b9882c1cd5f6b62b2c9f6b0141546168915a389876712c82388f3105a5b91ffd3775b15c3a8bfb0d7f577ccb29a2fb4d3d7b85416d87d07047312c3  jo-1.2.tar.gz"