void-packages/srcpkgs/babashka/template

79 lines
3.0 KiB
Bash

# Template file for 'babashka'
pkgname=babashka
version=0.9.162
revision=1
create_wrksrc=yes
hostmakedepends="mandrel leiningen git"
makedepends="zlib-devel"
checkdepends="clojure curl"
short_desc="Native, fast starting Clojure interpreter for scripting"
maintainer="Leah Neukirchen <leah@vuxu.org>"
license="EPL-1.0"
homepage="https://babashka.org/"
changelog="https://github.com/babashka/babashka/blob/master/CHANGELOG.md"
_sci_commit=c34609904c9323caf33a9ffacda13da85072f4d1
_babashka_curl_commit=8a27e6060a739c7580cc89ba2bfddf48881e7178
_babashka_nrepl_commit=c8c8a766e026d5f87e0968a179dad70e13aa13ee
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
_process_commit=87d627a774dbf06505ae5eaa968e8ed7a7505bf1
_pods_commit=93081b75e66fb4c4d161f89e714c6b9e8d55c8d5
_deps_clj_commit=0d9754fb1f2cfc49abc6d9d27e95c414b824016d
_fs_commit=32a65e81ddbc212608bf30501834a0ba367a9a82
_babashka_core_commit=52a6037bd4b632bffffb04394fb4efd0cdab6b1e
distfiles="https://github.com/babashka/babashka/archive/refs/tags/v${version}.tar.gz
https://github.com/borkdude/sci/archive/${_sci_commit}.tar.gz
https://github.com/babashka/babashka.curl/archive/${_babashka_curl_commit}.tar.gz
https://github.com/babashka/babashka.nrepl/archive/${_babashka_nrepl_commit}.tar.gz
https://github.com/babashka/depstar/archive/${_depstar_commit}.tar.gz
https://github.com/babashka/process/archive/${_process_commit}.tar.gz
https://github.com/babashka/pods/archive/${_pods_commit}.tar.gz
https://github.com/borkdude/deps.clj/archive/${_deps_clj_commit}.tar.gz
https://github.com/babashka/fs/archive/${_fs_commit}.tar.gz
https://github.com/babashka/babashka.core/archive/${_babashka_core_commit}.tar.gz"
checksum="bf7cde8fdca9a13dc34f4cb7cf446be43d2c48a5fe8ec1aff21f8502c1b57118
618e1b84f3bd075937c2755f587df114eaa687179cf0e417ca30840981a21045
d8e57bc67f237a5cfea90a6c38f9e303c1591250624087e348600af72e8910fa
e4db40ecf1c388122b8d33aeeaa9d5423289d843e9b566db92532fe40e388d3a
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
149000edd85c4bbddceab1edecd7ecf5fb89d5e7a4671e2c7d5478d187908e1f
4ed022dac3500a91c537027fc7eb72cdd6bc808d2b9473157fd63eb05c789d5c
d040bcb0408eec3f2797c968c54067bf0d1b38ab8dc42b71a98d8121d2dc17dd
857ef91401705d95d4d6b489aa7369ad17dfd64fbbf9a85d142d8f323c73066e
bad285812bcc7de7e0dd905c5df99045d7f92d6e2e191fc2768c06adbaaeb709"
nocross="https://build.voidlinux.org/builders/aarch64_builder/builds/33769/steps/shell_3/logs/stdio"
post_extract() {
mv babashka-$version/* babashka-$version/.??* .
rmdir babashka-$version
for dir in sci babashka.core babashka.curl babashka.nrepl \
process pods deps.clj fs
do
rmdir $dir
mv "$dir"-* $dir
done
}
do_build() {
export GRAALVM_HOME=/usr/lib/jvm/mandrel11
if [ "$XBPS_TARGET_LIBC" = musl ]; then
export BABASHKA_MUSL=true
export BABASHKA_STATIC=true # mandrel workaround
fi
lein deps
script/uberjar
script/compile
}
do_check() {
export BABASHKA_TEST_ENV=native
script/test
script/run_lib_tests
}
do_install() {
vbin bb
vlicense LICENSE
}