aboutsummaryrefslogtreecommitdiffstats
path: root/testing/jo/APKBUILD
blob: 5f12a203718e74cb0df9f9b642f27326d7e05696 (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.1
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/v$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="170b86f7eff6cf2a06bf60e98982cc1d4cae11802e6149bf5fca9d4d8910abd1e960619209f3330c140abbac69d76386eafdae627ed4fc5aa1f36c9ee57ffc5a  jo-1.1.tar.gz"