79 lines
3.0 KiB
Bash
79 lines
3.0 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=1.0.165
|
|
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=d95cd13f7dc8694776069d99a060f01bcc3ef6a6
|
|
_babashka_curl_commit=99e6d3ba7a7252284b43f9de7d91d3433ecfa8f0
|
|
_babashka_nrepl_commit=c8c8a766e026d5f87e0968a179dad70e13aa13ee
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=f6a31466fdd76d5f74f701c0aa88af52e56f7fd4
|
|
_pods_commit=decf791000081ca9e6d2fbea9f20a0aa3fae902e
|
|
_deps_clj_commit=9581d79e6ca27fd9176b67ab8c31d71573e15641
|
|
_fs_commit=c43b784f52a250e4d21205f8e1ea6ec82bde038f
|
|
_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="92b6add066b7214ecf8241438b7fae120999cacfba9d7030147464363fd13bb8
|
|
7c0e80cee8df6084ae8b1d7af0a6b8bc60a50d867a4327c623545344980c1d38
|
|
bb0bccbdeb295b83f9b5b859a12634b28a6b1c68da7ab04d18f87dd8b7a69930
|
|
e4db40ecf1c388122b8d33aeeaa9d5423289d843e9b566db92532fe40e388d3a
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
07b5de03e801097fd6c6d3be7389993bd04662fa66591728f469f2b16d26b87e
|
|
be8f624642c865b0b8ac56dc60ff36a6f913bd4fa39eedc6ea704f7b11ce16a6
|
|
0f935bff0b5aab91cda2c7f6abadf8b9fc593a54c089d482abf1eee38aa75e5c
|
|
abfff02c93bc4172b534e3ad239cbb4a85e6276a1c7d846b45925100ee397b4f
|
|
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 \
|
|
depstar 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
|
|
}
|