common/hooks/do-extract/00-distfiles.sh: support .tar.zst and .zst
.tar.zst: bsdtar is built with support for it, so this shouldn't cause issues .zst: zstd isn't in base-chroot, so it will need to be specified explicitly
This commit is contained in:
parent
0fa47e5979
commit
b452017c3c
|
@ -56,9 +56,12 @@ hook() {
|
||||||
*.tbz) cursufx="tbz";;
|
*.tbz) cursufx="tbz";;
|
||||||
*.tar.gz) cursufx="tgz";;
|
*.tar.gz) cursufx="tgz";;
|
||||||
*.tgz) cursufx="tgz";;
|
*.tgz) cursufx="tgz";;
|
||||||
|
*.tar.zst) cursufx="tzst";;
|
||||||
|
*.tzst) cursufx="tzst";;
|
||||||
*.gz) cursufx="gz";;
|
*.gz) cursufx="gz";;
|
||||||
*.xz) cursufx="xz";;
|
*.xz) cursufx="xz";;
|
||||||
*.bz2) cursufx="bz2";;
|
*.bz2) cursufx="bz2";;
|
||||||
|
*.zst) cursufx="zst";;
|
||||||
*.tar) cursufx="tar";;
|
*.tar) cursufx="tar";;
|
||||||
*.zip) cursufx="zip";;
|
*.zip) cursufx="zip";;
|
||||||
*.rpm) cursufx="rpm";;
|
*.rpm) cursufx="rpm";;
|
||||||
|
@ -74,13 +77,13 @@ hook() {
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${cursufx} in
|
case ${cursufx} in
|
||||||
tar|txz|tbz|tlz|tgz|crate)
|
tar|txz|tbz|tlz|tgz|tzst|crate)
|
||||||
$TAR_CMD -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C "$extractdir"
|
$TAR_CMD -x --no-same-permissions --no-same-owner -f $srcdir/$curfile -C "$extractdir"
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
gz|bz2|xz)
|
gz|bz2|xz|zst)
|
||||||
cp -f $srcdir/$curfile "$extractdir"
|
cp -f $srcdir/$curfile "$extractdir"
|
||||||
cd "$extractdir"
|
cd "$extractdir"
|
||||||
case ${cursufx} in
|
case ${cursufx} in
|
||||||
|
@ -90,9 +93,12 @@ hook() {
|
||||||
bz2)
|
bz2)
|
||||||
bunzip2 -f $curfile
|
bunzip2 -f $curfile
|
||||||
;;
|
;;
|
||||||
*)
|
xz)
|
||||||
unxz -f $curfile
|
unxz -f $curfile
|
||||||
;;
|
;;
|
||||||
|
zst)
|
||||||
|
unzstd $curfile
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
zip)
|
zip)
|
||||||
|
|
Loading…
Reference in New Issue