2021-07-06 09:11:04 +00:00
|
|
|
# Template file for 'babashka'
|
|
|
|
pkgname=babashka
|
2022-01-03 14:03:20 +00:00
|
|
|
version=0.7.3
|
2021-07-06 09:11:04 +00:00
|
|
|
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/"
|
2021-12-10 14:04:53 +00:00
|
|
|
changelog="https://github.com/babashka/babashka/blob/master/CHANGELOG.md"
|
2022-01-03 14:03:20 +00:00
|
|
|
_sci_commit=aaf5821f8c084d6301c96da88f05c570bffcc84d
|
2021-11-30 14:53:03 +00:00
|
|
|
_babashka_curl_commit=3d3d117ea0f8a143a06e3cace92e4e8b6a5782df
|
2021-12-10 14:04:53 +00:00
|
|
|
_babashka_nrepl_commit=e8e2273a8de6e8c45371e8ee8d5fa49e5d7dea02
|
2021-07-06 09:11:04 +00:00
|
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
2022-01-03 14:03:20 +00:00
|
|
|
_process_commit=927935a9684804692a745f038ec75c56a867c6fb
|
|
|
|
_pods_commit=538fc6f4147badf3a457b3eb8f9f95dd3bc947b1
|
2021-12-10 14:04:53 +00:00
|
|
|
_deps_clj_commit=6f51f783a91b0cfab2663b55607b45e9e342bcb6
|
2021-11-30 14:53:03 +00:00
|
|
|
_fs_commit=6019ec9cb09632fdf84e4bc5879fd47ed57a35eb
|
|
|
|
_babashka_core_commit=52a6037bd4b632bffffb04394fb4efd0cdab6b1e
|
2021-07-06 09:11:04 +00:00
|
|
|
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
|
2021-11-30 14:53:03 +00:00
|
|
|
https://github.com/babashka/fs/archive/${_fs_commit}.tar.gz
|
|
|
|
https://github.com/babashka/babashka.core/archive/${_babashka_core_commit}.tar.gz"
|
2022-01-03 14:03:20 +00:00
|
|
|
checksum="f284dc5df0f3af061f87a2d87d51de31cce5de0b7575446ada3f51e9803b8067
|
|
|
|
1c92f87f8ff10010d5988fc579ee976ec9a696362007e100700eccff647263ed
|
2021-11-30 14:53:03 +00:00
|
|
|
45abdaa5e4effd3bcfea777d02844d4634f1f80a592843eca9ec7d3544b7e16d
|
2021-12-10 14:04:53 +00:00
|
|
|
bc6a65c9bad2ced362636fca54ee5105e12706bd7c4412edd64c0bb18af15b3e
|
2021-07-06 09:11:04 +00:00
|
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
2022-01-03 14:03:20 +00:00
|
|
|
684fd7bd05b718084da209096bd8b6693d4ff2183b3365264786ff7893ef3c29
|
|
|
|
7fea6762ecbb31d454e0b5c194d12e1e6d4ec301972aa33daf617b571e097678
|
2021-12-10 14:04:53 +00:00
|
|
|
9a68d4ac03b400ff959c0bd07082a5f3011817e57c21cde26c35013729d1a545
|
2021-11-30 14:53:03 +00:00
|
|
|
9bb9cb06a1a2a3cd2e9334e9e1082a510474760ed650c98b9650ceca41f4fa42
|
|
|
|
bad285812bcc7de7e0dd905c5df99045d7f92d6e2e191fc2768c06adbaaeb709"
|
2021-07-06 09:11:04 +00:00
|
|
|
|
2021-07-17 13:40:20 +00:00
|
|
|
nocross="https://build.voidlinux.org/builders/aarch64_builder/builds/33769/steps/shell_3/logs/stdio"
|
|
|
|
|
2021-07-06 09:11:04 +00:00
|
|
|
post_extract() {
|
|
|
|
rmdir -v ${wrksrc}/sci
|
|
|
|
mv ${wrksrc}/../sci-${_sci_commit} ${wrksrc}/sci
|
2021-11-30 14:53:03 +00:00
|
|
|
rmdir -v ${wrksrc}/babashka.core
|
|
|
|
mv ${wrksrc}/../babashka.core-${_babashka_core_commit} ${wrksrc}/babashka.core
|
2021-07-06 09:11:04 +00:00
|
|
|
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_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
|
|
|
|
}
|