mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
xbps-src: handle .7z distfiles via 7z.
This commit is contained in:
parent
793b1887e3
commit
c23daff127
1 changed files with 11 additions and 0 deletions
|
@ -54,6 +54,7 @@ hook() {
|
||||||
*.patch) cursufx="txt";;
|
*.patch) cursufx="txt";;
|
||||||
*.diff) cursufx="txt";;
|
*.diff) cursufx="txt";;
|
||||||
*.txt) cursufx="txt";;
|
*.txt) cursufx="txt";;
|
||||||
|
*.7z) cursufx="7z";;
|
||||||
*) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";;
|
*) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -108,6 +109,16 @@ hook() {
|
||||||
txt)
|
txt)
|
||||||
cp -f $srcdir/$curfile $extractdir
|
cp -f $srcdir/$curfile $extractdir
|
||||||
;;
|
;;
|
||||||
|
7z)
|
||||||
|
if command -v 7z &>/dev/null; then
|
||||||
|
7z x $srcdir/$curfile -o$extractdir
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
msg_error "$pkgver: extracting $curfile into $XBPS_BUILDDIR.\n"
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
msg_error "$pkgver: cannot find 7z bin for extraction.\n"
|
||||||
|
fi
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
msg_error "$pkgver: cannot guess $curfile extract suffix. ($cursufx)\n"
|
msg_error "$pkgver: cannot guess $curfile extract suffix. ($cursufx)\n"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue