Skip to contentSkip to conversation

Add package 'zip'

PATCH New Martin Hicks 2 participants 2 messages Aug 8, 2013 – Aug 10, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Add package 'zip'

A compressor/archiver for creating and modifying zipfiles.

---
 package/Config.in     |    1 +
 package/zip/Config.in |    6 ++++++
 package/zip/zip.mk    |   22 ++++++++++++++++++++++
 3 files changed, 29 insertions(+), 0 deletions(-)
 create mode 100644 package/zip/Config.in
 create mode 100644 package/zip/zip.mk
package/Config.in +1 -0
index 7069d77..45eeb56 100644
@@ -14,6 +14,7 @@ source "package/infozip/Config.in"
 source "package/lzop/Config.in"
 source "package/lzma/Config.in"
 source "package/xz/Config.in"
+source "package/zip/Config.in"
 endmenu
 
 menu "Debugging, profiling and benchmark"
package/zip/Config.in new file +6 -0
new file mode 100644
index 0000000..c43e37e
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_ZIP
+	bool "zip"
+	help
+	  A compressor/archiver for creating and modifying zipfiles.
+
+	  http://info-zip.org/
package/zip/zip.mk new file +22 -0
new file mode 100644
index 0000000..d3a7288
@@ -0,0 +1,22 @@
+#############################################################
+#
+# zip
+#
+#############################################################
+ZIP_VERSION=30
+ZIP_SOURCE=zip$(ZIP_VERSION).tgz
+ZIP_SITE:=ftp://ftp.info-zip.org/pub/infozip/src
+
+define ZIP_BUILD_CMDS
+	$(MAKE) -C $(@D) -f unix/Makefile generic CC="$(TARGET_CC)" CFLAGS="$(TARGET_CFLAGS)"
+endef
+
+define ZIP_INSTALL_TARGET_CMDS
+	$(INSTALL) -D -m 755 $(@D)/zip $(TARGET_DIR)/usr/bin/zip
+endef
+
+define ZIP_UNINSTALL_TARGET_CMDS
+	$(MAKE) -C $(@D) -f unix/Makefile uninstall prefix=$(TARGET_DIR)/usr
+endef
+
+$(eval $(generic-package))
Signature · 1 line
1.7.2.5
#1 lore raw

PATCH 1/1 Add package 'zip'

Dear Martin Hicks,

Quoted 3 lines · Martin Hicks

A compressor/archiver for creating and modifying zipfiles.

Thanks, but we already have an 'infozip' package that packages the exact same thing. Is there anything I'm missing?

Thanks,

Thomas

Signature · 4 lines
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com