85 lines
3.3 KiB
Bash
85 lines
3.3 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=0.6.2
|
|
revision=1
|
|
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/"
|
|
_sci_commit=9cd4b8b2eb9db2c1e9000813c58672e08b3957d9
|
|
_babashka_curl_commit=bc021581ad89d70d456175179847abad047aa13c
|
|
_babashka_nrepl_commit=eadb3330f0a65e781755d8b328727698f1d41fb0
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=4fdf33c0243ff646dfa91c4454844a33e0f025b0
|
|
_pods_commit=de4c3610c9ef3879370d01b7202a9f3a9d056f6e
|
|
_deps_clj_commit=4b53187be2b44ee799cc83c22b83519a1cf34692
|
|
_fs_commit=1f0b8ff14ffce8024a4c2340d74d7998555f2123
|
|
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"
|
|
checksum="a03bff53c1953dd2be34cb141213ffefbb3e73b2a300b1f55e7bc7680cf52515
|
|
86988afc9f57ebf3c6465a0fb700bba43da03368bf093248f4c87171d9f70ad3
|
|
83ec20e495efde12dd4cd24e786612f873fa7d627b9dd18e6b241e8d3e83f8dc
|
|
916d9cc8c0a3b895a72068b95c6ac985a65d30465a9d556af8acea20aaaacc42
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
dcb999043dfc807a1ebfae99027b4434e726f647aa52fbd70ed58202d907d39a
|
|
9fdd931dc27ff8831dcd456ee5382eda5698cb4d34bf4a72ded0c8c7ac6f74bc
|
|
0ce3635be4510570d3a9593d8c2b021da2090f4e3279b8401638b4703c25bed1
|
|
5d5f3159a5c8455f2142fc78c80b1e6d32f942c2eb447767488fe71520194de2"
|
|
|
|
nocross="https://build.voidlinux.org/builders/aarch64_builder/builds/33769/steps/shell_3/logs/stdio"
|
|
|
|
post_extract() {
|
|
rmdir -v ${wrksrc}/sci
|
|
mv ${wrksrc}/../sci-${_sci_commit} ${wrksrc}/sci
|
|
rmdir -v ${wrksrc}/babashka.curl
|
|
mv ${wrksrc}/../babashka.curl-${_babashka_curl_commit} ${wrksrc}/babashka.curl
|
|
rmdir -v ${wrksrc}/babashka.nrepl
|
|
mv ${wrksrc}/../babashka.nrepl-${_babashka_nrepl_commit} ${wrksrc}/babashka.nrepl
|
|
rmdir -v ${wrksrc}/depstar
|
|
mv ${wrksrc}/../depstar-${_depstar_commit} ${wrksrc}/depstar
|
|
rmdir -v ${wrksrc}/process
|
|
mv ${wrksrc}/../process-${_process_commit} ${wrksrc}/process
|
|
rmdir -v ${wrksrc}/pods
|
|
mv ${wrksrc}/../pods-${_pods_commit} ${wrksrc}/pods
|
|
rmdir -v ${wrksrc}/deps.clj
|
|
mv ${wrksrc}/../deps.clj-${_deps_clj_commit} ${wrksrc}/deps.clj
|
|
rmdir -v ${wrksrc}/fs
|
|
mv ${wrksrc}/../fs-${_fs_commit} ${wrksrc}/fs
|
|
}
|
|
|
|
do_patch() {
|
|
vsed -i -e '/install native-image/d' script/compile
|
|
}
|
|
|
|
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
|
|
}
|