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";;
|
||||
*.zip) cursufx="zip";;
|
||||
*.rpm) cursufx="rpm";;
|
||||
*.patch) cursufx="pch";;
|
||||
*.patch) cursufx="txt";;
|
||||
*.diff) cursufx="txt";;
|
||||
*.txt) cursufx="txt";;
|
||||
*) msg_error "$pkgver: unknown distfile suffix for $curfile.\n";;
|
||||
esac
|
||||
|
||||
|
@ -103,6 +105,9 @@ hook() {
|
|||
msg_error "$pkgver: cannot find rpmextract for extraction.\n"
|
||||
fi
|
||||
;;
|
||||
txt)
|
||||
cp -f $srcdir/$curfile $extractdir
|
||||
;;
|
||||
*)
|
||||
msg_error "$pkgver: cannot guess $curfile extract suffix. ($cursufx)\n"
|
||||
;;
|
||||
|
|
Loading…
Reference in New Issue