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:
Alessio Sergi 2015-10-23 19:43:43 +02:00
parent f7af316307
commit 55768ad59d
1 changed files with 6 additions and 1 deletions

View File

@ -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"
;;