Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Hicks <mort@bork.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] Add package 'zip'
Date: Thu,  8 Aug 2013 13:38:54 -0400	[thread overview]
Message-ID: <1375983534-5555-1-git-send-email-mort@bork.org> (raw)

A compressor/archiver for creating and modifying zipfiles.

Signed-off-by: Martin Hicks <mort@bork.org>
---
 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

diff --git a/package/Config.in b/package/Config.in
index 7069d77..45eeb56 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/zip/Config.in b/package/zip/Config.in
new file mode 100644
index 0000000..c43e37e
--- /dev/null
+++ b/package/zip/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_ZIP
+	bool "zip"
+	help
+	  A compressor/archiver for creating and modifying zipfiles.
+
+	  http://info-zip.org/
diff --git a/package/zip/zip.mk b/package/zip/zip.mk
new file mode 100644
index 0000000..d3a7288
--- /dev/null
+++ b/package/zip/zip.mk
@@ -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))
-- 
1.7.2.5

             reply	other threads:[~2013-08-08 17:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-08 17:38 Martin Hicks [this message]
2013-08-10 21:55 ` [Buildroot] [PATCH] Add package 'zip' Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1375983534-5555-1-git-send-email-mort@bork.org \
    --to=mort@bork.org \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox