mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-22 00:57:01 +02:00
83 lines
3.2 KiB
Bash
83 lines
3.2 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=1.3.188
|
|
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=ad79a6c476affd1f8208efbfdba57992a68c8056
|
|
_babashka_curl_commit=e936acd40544eb637b6041c7e89454b21eb7ee34
|
|
_babashka_nrepl_commit=edd3d613bfb9bf3adabfd0bda5c3f5c6ee85ec20
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=abe7ea36ebf1d666834f73d35530df946a7c31bd
|
|
_pods_commit=6ad6045b94bc871c5107bfc75d39643b6c1bc8ba
|
|
_deps_clj_commit=3e5dcdfe7b32e0d358a6f48cd46120596e83f02f
|
|
_fs_commit=374c36a3f7316e7a445f47220719283947a97e14
|
|
_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="60f9de51c70d1886b3eb54b2a53dac4446a954f1996a3c8eab63f5bcfcd3c19a
|
|
6380ce82c9c2be8062a0eb6f8e8315fea0fa8fb5d6c9a9ce0afc84d2a152bc82
|
|
6e60865ae2d4522c3de55b3b1daed51b42bb9bb6095b1d2fbd3620facece3257
|
|
e447b9953c0f58a4d9bd43f728ac1bfd044b58b9686507f47a7f3420eae657f5
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
0eaa2933043fb763f0f90e1d36718dd9aa6b72841784470ba3df602c28a28e60
|
|
c858a68cb17cd173a8a39c3a76d72f7e134bc6dec0bdc111552842974762c335
|
|
56ce2e92efcaafdc593868ae1fc80d8593c1c622f406f85eb9ecdae96f6e9cb0
|
|
c89ed0b56df20371930c84e9690367fe1eb5a254b003803004455e375b31af7b
|
|
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
|
|
|
|
# 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
|
|
}
|