# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=hare-json
pkgver=0_git20240419
_commit=b6aeae96199607a1f3b4d437d5c99f821bd6a6b6
pkgrel=0
pkgdesc="JSON support for Hare"
url="https://sr.ht/~sircmpwn/hare-json"
arch="noarch !armhf !ppc64le !s390x !armv7 !x86 !loongarch64" # hare
license="MPL-2.0"
makedepends="hare"
source="
	$pkgname-$_commit.tar.gz::https://git.sr.ht/~sircmpwn/hare-json/archive/$_commit.tar.gz
"
builddir="$srcdir/$pkgname-$_commit"

build() {
	make -j1 PREFIX=/usr
}

check() {
	make check
}

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

sha512sums="
65f4d194b55390bd3de8f0227b06062fca2f3c375412b0c23ffb52f0bda34c9c3c6776c6644c77fe7881b2af84fe427d218ecb88eee34ebc13e0d5f5702fbf6d  hare-json-b6aeae96199607a1f3b4d437d5c99f821bd6a6b6.tar.gz
"
