More packages

This commit is contained in:
2025-09-22 20:04:53 +01:00
parent 8c843a5f94
commit 6909061a17
5 changed files with 68 additions and 5 deletions

View File

@@ -111,12 +111,23 @@ download() {
extract() {
if [ "$URL_PROTO" != "git" ]; then
cd "${SRCDIR}"
printf "Extracting ${SRC} ... "
(
cd "${SRCDIR}"
gzip -d < "${DISTFILES}/${SRC}" | tar xf -
)
case $SRC in
*.gz)
gzip -d < "${DISTFILES}/${SRC}" | tar xf -
;;
*.xz)
xz -d < "${DISTFILES}/${SRC}" | tar xf -
;;
*)
echo "Error: no method to extract ${SRC}"
return 10
;;
esac
echo "done"
cd "${HERE}"
fi
}