87 lines
3.3 KiB
Bash
87 lines
3.3 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=1.3.176
|
|
revision=1
|
|
create_wrksrc=yes
|
|
hostmakedepends="mandrel leiningen git"
|
|
makedepends="zlib-devel"
|
|
checkdepends="clojure curl tar"
|
|
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/raw/master/CHANGELOG.md"
|
|
_sci_commit=ae1679ceee89acb00d05744355f501ffaa3cbddb
|
|
_babashka_curl_commit=e936acd40544eb637b6041c7e89454b21eb7ee34
|
|
_babashka_nrepl_commit=ad763a78f1bc327a493ff0b650aa5408ecbf4819
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=63bef86c76098366531ab973a79d04c51ae0856b
|
|
_pods_commit=75c2216649bf5caf3ae41e7b8fc202e45b090ea9
|
|
_deps_clj_commit=b2356ff4b28e3b115479d2d3d6e4135bf20f9150
|
|
_fs_commit=ceb8f7f48d4a1438a434ffc16238d5f1883bb4ac
|
|
_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="23e1cf27d137afca665f4aa112254f5489f56b7aee5f81ce1ff4981cf7822d48
|
|
844b3eea5d573952aa45dd0db5bc213981fa1208e27394d9bca1268165c4f3f6
|
|
6e60865ae2d4522c3de55b3b1daed51b42bb9bb6095b1d2fbd3620facece3257
|
|
c2a174c385d9728837c1432055669390de063a417fa7aacb36c9e826819f3e6a
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
6dc65d20df3996f51dab494a73bdc22b8befd0f0f1c223797c1307230669e9a9
|
|
fd7d60d3b336c5c11f13a59f9524ef0b00e3755f3033e597cfc4c23f2c618fda
|
|
efd247a5f1f9018900c239cdf3e39b24e114b1e483e987b1e629bf2984148e59
|
|
8693d3d4cad5a6a198dbbcec2edc93d977711b1428235ff92e3c031495af0366
|
|
bad285812bcc7de7e0dd905c5df99045d7f92d6e2e191fc2768c06adbaaeb709"
|
|
|
|
# https://github.com/openjdk/jdk17u-dev/pull/783
|
|
make_check=no # TODO: reenable after openjdk17>=17.0.6
|
|
|
|
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
|
|
|
|
# Mandrel doesn't have GraalVM-SDK in the default classpath,
|
|
# but some Babashka features require it.
|
|
vsed -i -e '/:resource-paths/s@]@ "/usr/lib/jvm/mandrel17/lib/jvmci/graal-sdk.jar"]@' project.clj
|
|
}
|
|
|
|
do_build() {
|
|
export GRAALVM_HOME=/usr/lib/jvm/mandrel17
|
|
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 GRAALVM_HOME=/usr/lib/jvm/mandrel17
|
|
export BABASHKA_TEST_ENV=native
|
|
script/test
|
|
script/run_lib_tests
|
|
}
|
|
|
|
do_install() {
|
|
vbin bb
|
|
vlicense LICENSE
|
|
}
|