# Contributor: Orion <systmkor@gmail.com>
# Maintainer: Celeste <cielesti@protonmail.com>
maintainer="Celeste <cielesti@protonmail.com>"
pkgname=jo
pkgver=1.9
pkgrel=1
pkgdesc="JSON output from a shell"
url="https://github.com/jpmens/jo"
arch="all"
license="GPL-2.0-or-later"
subpackages="
	$pkgname-doc
	$pkgname-bash-completion
	$pkgname-zsh-completion
	"
source="https://github.com/jpmens/jo/releases/download/$pkgver/jo-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		bashcompdir=/usr/share/bash-completion/completions
	make
}

check() {
	make check
}

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

sha512sums="
222ca7d85593a2038ed527c08c16fbdcabd97b83ba026148ce9307d2523a2c2f466eb38fff03e2dbf0e45f8b93d9e0737bdb719e2be567ce9cc09d362e8c7911  jo-1.9.tar.gz
"
