void-packages/srcpkgs/jet/template

36 lines
881 B
Bash

# Template file for 'jet'
pkgname=jet
version=0.7.27
revision=1
hostmakedepends="mandrel leiningen"
makedepends="zlib-devel"
short_desc="CLI to transform between JSON, EDN and Transit"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="https://github.com/borkdude/jet"
changelog="https://raw.githubusercontent.com/borkdude/jet/master/CHANGELOG.md"
distfiles="https://github.com/borkdude/jet/archive/refs/tags/v${version}.tar.gz"
checksum=3e473b00acd80c2caf3eeb314b7d5db4c8553d301354d0647a68c8a5082ed8d2
nocross="mandrel"
do_build() {
export GRAALVM_HOME=/usr/lib/jvm/mandrel17
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export BABASHKA_MUSL=true
export BABASHKA_STATIC=true
fi
vsed -e "s/+native-image/+uberjar/" -i script/compile
script/compile
}
do_check() {
export JET_TEST_ENV=native
script/test
}
do_install() {
vbin jet
vlicense LICENSE
}