36 lines
881 B
Bash
36 lines
881 B
Bash
# Template file for 'jet'
|
|
pkgname=jet
|
|
version=0.4.24
|
|
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=8528de55205c8dd073dabd469afd08d6c518d4d85dbf1115df18ce1e2cc75da1
|
|
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
|
|
}
|