85 lines
3.3 KiB
Bash
85 lines
3.3 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=0.6.4
|
|
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=75b9ba73f7c9afca4c8d00023ba71456fac0f4af
|
|
_babashka_curl_commit=2187f908c033da45978512979c53bb53321120ce
|
|
_babashka_nrepl_commit=eadb3330f0a65e781755d8b328727698f1d41fb0
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=4fdf33c0243ff646dfa91c4454844a33e0f025b0
|
|
_pods_commit=f360afa6135b8bd2d384d9ba4582c0de6fdac804
|
|
_deps_clj_commit=e3e80c5676e8f4c6e3f674f879afc061f222c0a3
|
|
_fs_commit=d3dfbd6832ba819340f4d494cca3d55b38870cdf
|
|
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="329d263fa6ac1d8712742aff95c92ece477130c7ab7055124a338e9ae1ebb779
|
|
8f07f49c4a6ffb67b5679eafbe5662937dd109ce0559c481c006123a8fef9c44
|
|
d4efe2c84512c3914d80087a43f9dc8377b4318ab63579959c4488038d6b766b
|
|
916d9cc8c0a3b895a72068b95c6ac985a65d30465a9d556af8acea20aaaacc42
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
dcb999043dfc807a1ebfae99027b4434e726f647aa52fbd70ed58202d907d39a
|
|
4070395956fc3cb0c22bac6fb4de1ad27130d24916e1915d8a3fe9eb591f6143
|
|
cb0f8b0a35df214949a9d6a8cee5bfd35c9dfd6d5f7a0c22fd6bd27a54dbdb3b
|
|
3d03aefe44839aa61c9a3db28751d9d9bdf941843d7441a6ff5601c17c4aaec8"
|
|
|
|
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
|
|
}
|