87 lines
3.6 KiB
Bash
87 lines
3.6 KiB
Bash
# Template file for 'babashka'
|
|
pkgname=babashka
|
|
version=0.8.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/"
|
|
changelog="https://github.com/babashka/babashka/blob/master/CHANGELOG.md"
|
|
_sci_commit=972f8d55f59102607908f1f1ab30e598bddaa67e
|
|
_babashka_curl_commit=8a27e6060a739c7580cc89ba2bfddf48881e7178
|
|
_babashka_nrepl_commit=156ef6bfa59ba4a14ba6c69d1681fd7c2988a36d
|
|
_depstar_commit=c419b8c82041855d55593c5b561fc7cea8234712
|
|
_process_commit=59bff35cb6f4609f772dd932207ddd031c88559c
|
|
_pods_commit=c2d6ba847c53b1f6b7986b166a8a4d7dda97db83
|
|
_deps_clj_commit=bac835661adbcd06b07ce2c408bb3e4911a48c28
|
|
_fs_commit=98b48d4671cd75dd4dd70d72c2cc03b21e2e8132
|
|
_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="905cc1cd03204e40c4328bffe70193eea1158c314d7ce377646cc17538092bd4
|
|
c97919f3f03903ff250b4fc40bd1d66c348bdb068cdf8dd183ca1afcb6a2a8fd
|
|
d8e57bc67f237a5cfea90a6c38f9e303c1591250624087e348600af72e8910fa
|
|
b2880431f2c9aeed1af280d25fa65e91eddb540c6bac3ef478b1a8d62c4bb87a
|
|
9d214a10a4f5e4f15b9c80354dae85689a40e941ec3417203354c0dc3ce9457b
|
|
0b28750b998bcc38b2f8a81933ea5a04d8fb9ffc63531b538a7a42d5986e5486
|
|
17fd2b3d497a0d4e83ba40fba00b215bbe54b9c23c3d75243db15e7c44b1ca11
|
|
35e9e4ef7d391f99defce2def8e122cb84bd8abbd0ee20910a81046222366f38
|
|
0c06f555b53c0b61af528a1c0a309e329e01327c0536518d2aaaf19b0f24f23d
|
|
bad285812bcc7de7e0dd905c5df99045d7f92d6e2e191fc2768c06adbaaeb709"
|
|
|
|
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.core
|
|
mv ${wrksrc}/../babashka.core-${_babashka_core_commit} ${wrksrc}/babashka.core
|
|
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
|
|
}
|