xbps-src: distfiles: allow uncompressed distfiles
Do not extract them, just copy to $extractdir. The allowed suffixes are: .patch, .diff, .txt.
This commit is contained in:
parent
f7af316307
commit
55768ad59d
@ -51,7 +51,9 @@ hook() {
|
|||||||
*.tar) cursufx="tar";;
|
*.tar) cursufx="tar";;
|
||||||
*.zip) cursufx="zip";;
|
*.zip) cursufx="zip";;
|
||||||
*.rpm) cursufx="rpm";;
|
*.rpm) cursufx="rpm";;
|
||||||
*.patch) cursufx="pch";;
|
*.patch) cursufx="txt";;
|
||||||
|
*.diff) cursufx="txt";;
|
||||||
|
*.txt) cursufx="txt";;
|
||||||
*) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";;
|
*) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
@ -103,6 +105,9 @@ hook() {
|
|||||||
msg_error "$pkgver: cannot find rpmextract for extraction.\n"
|
msg_error "$pkgver: cannot find rpmextract for extraction.\n"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
txt)
|
||||||
|
cp -f $srcdir/$curfile $extractdir
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
msg_error "$pkgver: cannot guess $curfile extract suffix. ($cursufx)\n"
|
msg_error "$pkgver: cannot guess $curfile extract suffix. ($cursufx)\n"
|
||||||
;;
|
;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user