summaryrefslogtreecommitdiff
path: root/archivers/unzip
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2006-11-03 19:14:25 +0000
committerjoerg <joerg@pkgsrc.org>2006-11-03 19:14:25 +0000
commit5430595a63a9a5ea90cc5dc74531b2f2035ed44c (patch)
treec071b6ec79a1f0bdf8b40d141422cd3d942af75a /archivers/unzip
parentb8b41112bb8cb00d42283f1972ce87819f4eaf31 (diff)
downloadpkgsrc-5430595a63a9a5ea90cc5dc74531b2f2035ed44c.tar.gz
DESTDIR support.
Diffstat (limited to 'archivers/unzip')
-rw-r--r--archivers/unzip/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile
index 0d7a3c4155c..512a0f515b9 100644
--- a/archivers/unzip/Makefile
+++ b/archivers/unzip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.66 2006/11/03 07:53:55 rillig Exp $
+# $NetBSD: Makefile,v 1.67 2006/11/03 19:14:25 joerg Exp $
DISTNAME= unzip552
PKGNAME= unzip-5.52
@@ -11,6 +11,7 @@ HOMEPAGE= http://www.info-zip.org/pub/infozip/UnZip.html
COMMENT= List, test and extract compressed files in a ZIP archive
PKG_INSTALLATION_TYPES= overwrite pkgviews
+PKG_DESTDIR_SUPPORT= user-destdir
DIST_SUBDIR= ${PKGNAME_NOREV} # Remove on next update.
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
@@ -32,16 +33,16 @@ INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/doc
TEST_TARGET= check
do-install:
- cd ${WRKSRC} && ${INSTALL_PROGRAM} unzip funzip unzipsfx ${PREFIX}/bin
- ${LN} -sf unzip ${PREFIX}/bin/zipinfo
- cd ${WRKSRC}/unix && ${INSTALL_SCRIPT} zipgrep ${PREFIX}/bin
+ cd ${WRKSRC} && ${INSTALL_PROGRAM} unzip funzip unzipsfx ${DESTDIR}${PREFIX}/bin
+ ${LN} -sf unzip ${DESTDIR}${PREFIX}/bin/zipinfo
+ cd ${WRKSRC}/unix && ${INSTALL_SCRIPT} zipgrep ${DESTDIR}${PREFIX}/bin
cd ${WRKSRC}/man && ${INSTALL_MAN} funzip.1 unzip.1 unzipsfx.1 \
- zipgrep.1 zipinfo.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unzip
+ zipgrep.1 zipinfo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+ ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/doc/unzip
cd ${WRKSRC} && ${INSTALL_DATA} BUGS LICENSE README WHERE \
- ${PREFIX}/share/doc/unzip
+ ${DESTDIR}${PREFIX}/share/doc/unzip
cd ${WRKSRC} && ${INSTALL_DATA} COPYING.OLD \
- ${PREFIX}/share/doc/unzip/COPYING
+ ${DESTDIR}${PREFIX}/share/doc/unzip/COPYING
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"