summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-01-14 03:22:51 +0000
committerjlam <jlam@pkgsrc.org>2006-01-14 03:22:51 +0000
commitfbd08b0fe7614878af1770c16f43d79e0fb3bbe3 (patch)
tree270d294e076a5a75f89b61bdbb6552dbdfef9877 /games
parentf2c5a3050019f5f631a47f3503c708b39e33e19e (diff)
downloadpkgsrc-fbd08b0fe7614878af1770c16f43d79e0fb3bbe3.tar.gz
sed(1) always appends a newline to every output line, which can cause
misdetection of the gzipped tarball that is appended to the *.run script when sed strips off the first 266 lines. Use tail instead to avoid the problem.
Diffstat (limited to 'games')
-rw-r--r--games/quake3arena/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/games/quake3arena/Makefile b/games/quake3arena/Makefile
index 02444941f0a..49b32ef1edc 100644
--- a/games/quake3arena/Makefile
+++ b/games/quake3arena/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.24 2005/12/12 14:43:25 joerg Exp $
+# $NetBSD: Makefile,v 1.25 2006/01/14 03:22:51 jlam Exp $
DISTNAME= linuxq3apoint-1.32b.x86
PKGREVISION= 1
@@ -27,9 +27,12 @@ NO_BIN_ON_FTP= no
NO_CONFIGURE= yes
CHECK_SHLIBS= NO
-USE_TOOLS+= gtar
+USE_TOOLS+= gtar gunzip tail
-EXTRACT_CMD= ${SED} '1,265d' ${DOWNLOADED_DISTFILE} | ${GTAR} xzf -
+# The distfile is a self-extracting shell script. "266" is a magic
+# number that's taken from the distfile itself.
+#
+EXTRACT_CMD= tail +266 ${DOWNLOADED_DISTFILE} | gunzip | gtar -xf -
.if !make(fetch)
ONLY_FOR_PLATFORM=*-*-i386