babashka: use create_wrksrc
This commit is contained in:
parent
82374829ab
commit
a251312615
|
@ -2,6 +2,7 @@
|
|||
pkgname=babashka
|
||||
version=0.9.162
|
||||
revision=1
|
||||
create_wrksrc=yes
|
||||
hostmakedepends="mandrel leiningen git"
|
||||
makedepends="zlib-devel"
|
||||
checkdepends="clojure curl"
|
||||
|
@ -43,24 +44,14 @@ checksum="bf7cde8fdca9a13dc34f4cb7cf446be43d2c48a5fe8ec1aff21f8502c1b57118
|
|||
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
|
||||
mv babashka-$version/* babashka-$version/.??* .
|
||||
rmdir babashka-$version
|
||||
for dir in sci babashka.core babashka.curl babashka.nrepl \
|
||||
process pods deps.clj fs
|
||||
do
|
||||
rmdir $dir
|
||||
mv "$dir"-* $dir
|
||||
done
|
||||
}
|
||||
|
||||
do_build() {
|
||||
|
|
Loading…
Reference in New Issue