babashka: use create_wrksrc

This commit is contained in:
Đoàn Trần Công Danh 2022-10-24 12:25:17 +07:00
parent 82374829ab
commit a251312615
1 changed files with 9 additions and 18 deletions

View File

@ -2,6 +2,7 @@
pkgname=babashka pkgname=babashka
version=0.9.162 version=0.9.162
revision=1 revision=1
create_wrksrc=yes
hostmakedepends="mandrel leiningen git" hostmakedepends="mandrel leiningen git"
makedepends="zlib-devel" makedepends="zlib-devel"
checkdepends="clojure curl" checkdepends="clojure curl"
@ -43,24 +44,14 @@ checksum="bf7cde8fdca9a13dc34f4cb7cf446be43d2c48a5fe8ec1aff21f8502c1b57118
nocross="https://build.voidlinux.org/builders/aarch64_builder/builds/33769/steps/shell_3/logs/stdio" nocross="https://build.voidlinux.org/builders/aarch64_builder/builds/33769/steps/shell_3/logs/stdio"
post_extract() { post_extract() {
rmdir -v ${wrksrc}/sci mv babashka-$version/* babashka-$version/.??* .
mv ${wrksrc}/../sci-${_sci_commit} ${wrksrc}/sci rmdir babashka-$version
rmdir -v ${wrksrc}/babashka.core for dir in sci babashka.core babashka.curl babashka.nrepl \
mv ${wrksrc}/../babashka.core-${_babashka_core_commit} ${wrksrc}/babashka.core process pods deps.clj fs
rmdir -v ${wrksrc}/babashka.curl do
mv ${wrksrc}/../babashka.curl-${_babashka_curl_commit} ${wrksrc}/babashka.curl rmdir $dir
rmdir -v ${wrksrc}/babashka.nrepl mv "$dir"-* $dir
mv ${wrksrc}/../babashka.nrepl-${_babashka_nrepl_commit} ${wrksrc}/babashka.nrepl done
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() { do_build() {