86 lines
3.3 KiB
Bash
86 lines
3.3 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=0.5.1
|
|
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=46204fbce012f4495d691520ce545ad277a86747
|
|
_babashka_curl_commit=cf71c8ae24a4f8ec85663970f4b8a3f63a0c1a6b
|
|
_babashka_nrepl_commit=47c64227afe869ed9dfba739077c50b06650c0aa
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=4fdf33c0243ff646dfa91c4454844a33e0f025b0
|
|
_pods_commit=de4c3610c9ef3879370d01b7202a9f3a9d056f6e
|
|
_deps_clj_commit=af343527c1481845f9138ea8919a26e04e7cd447
|
|
_fs_commit=5339280ee1006de65b6461ed08cfdf2a7b7a4b10
|
|
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="accc5d70ae87534e33eca6bcbc1743f70c16511c28942981592e2aee328ba770
|
|
8e370e9a478cde133f8e1ead2e732706a0546549a207e54b725f574ecfe0fcf2
|
|
e318e4563a278488a0a2d91b2d7c56bd8a0e2be8b895d91435822a047e85c0c3
|
|
470866fb6c72aa03ead79179ab6113aa2d41b0950dd127b82c95d9a599dd0126
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
dcb999043dfc807a1ebfae99027b4434e726f647aa52fbd70ed58202d907d39a
|
|
9fdd931dc27ff8831dcd456ee5382eda5698cb4d34bf4a72ded0c8c7ac6f74bc
|
|
043176fdf641b9788a956779bcd4df91591d137bc04f87fec137def0e8dc037a
|
|
a9b4463e39c196dc2bb74a383639eeacdfe5634e445ba051bae458346965dee9"
|
|
|
|
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
|
|
}
|