diff --git a/templates/unzip/unzip-fix-unzipsfx.diff b/templates/unzip/build.diff similarity index 100% rename from templates/unzip/unzip-fix-unzipsfx.diff rename to templates/unzip/build.diff diff --git a/templates/unzip/install.diff b/templates/unzip/install.diff new file mode 100644 index 00000000000..8d9419d684f --- /dev/null +++ b/templates/unzip/install.diff @@ -0,0 +1,15 @@ +--- unix/Makefile.orig 2009-03-21 01:54:48.460031655 +0100 ++++ unix/Makefile 2009-03-21 01:55:23.230935902 +0100 +@@ -102,9 +102,9 @@ INSTALL_PROGRAM = $(INSTALL) + INSTALL_D = mkdir -p + # on some systems, manext=l and MANDIR=/usr/man/man$(manext) may be appropriate + manext = 1 +-prefix = /usr/local +-BINDIR = $(prefix)/bin# where to install executables +-MANDIR = $(prefix)/man/man$(manext)# where to install man pages ++DESTDIR = /usr/local ++BINDIR = $(DESTDIR)/usr/bin# where to install executables ++MANDIR = $(DESTDIR)/usr/share/man/man$(manext)# where to install man pages + INSTALLEDBIN = $(BINDIR)/funzip$E $(BINDIR)/unzip$E $(BINDIR)/unzipsfx$E \ + $(BINDIR)/zipgrep$E $(BINDIR)/zipinfo$E + INSTALLEDMAN = $(MANDIR)/funzip.$(manext) $(MANDIR)/unzip.$(manext) \ diff --git a/templates/unzip/template b/templates/unzip/template index 2751bdca615..96595f948de 100644 --- a/templates/unzip/template +++ b/templates/unzip/template @@ -1,12 +1,9 @@ # Template file for 'unzip' pkgname=unzip version=5.52 -wrksrc=$pkgname-$version -patch_files=$pkgname-fix-unzipsfx.diff distfiles="ftp://ftp.info-zip.org/pub/infozip/src/unzip552.tgz" build_style=gnu_makefile -make_build_args="-f unix/Makefile" -make_build_target="generic_zlib unzipsfx" +make_build_target="-f unix/Makefile generic_zlib unzipsfx" short_desc="List, test and extract compressed files in a ZIP archive" maintainer="Juan RP " checksum=145d95e2ef1ef9add2e3c97d1340907e33ab8749eb1235372e7f0b7af600a8e9 @@ -34,4 +31,5 @@ long_desc=" be extracted, unzipsfx seeks itself under the name by which it was invoked and tests or extracts the contents of the appended archive." -run_depends="glibc-2.8" +Add_dependency full glibc +Add_dependency full zlib