From 55768ad59de2b52ef7760f55556a71ea486173c1 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Fri, 23 Oct 2015 19:43:43 +0200 Subject: [PATCH] xbps-src: distfiles: allow uncompressed distfiles Do not extract them, just copy to $extractdir. The allowed suffixes are: .patch, .diff, .txt. --- common/hooks/do-extract/00-distfiles.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/hooks/do-extract/00-distfiles.sh b/common/hooks/do-extract/00-distfiles.sh index 7ae8efab662..f3699aa628c 100644 --- a/common/hooks/do-extract/00-distfiles.sh +++ b/common/hooks/do-extract/00-distfiles.sh @@ -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" ;;