From a251312615070594345550ce7a1123fcd7a64f80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Mon, 24 Oct 2022 12:25:17 +0700 Subject: [PATCH] babashka: use create_wrksrc --- srcpkgs/babashka/template | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/srcpkgs/babashka/template b/srcpkgs/babashka/template index 10defef41cc..dbe0dd35836 100644 --- a/srcpkgs/babashka/template +++ b/srcpkgs/babashka/template @@ -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() {