* [Buildroot] [PATCH 1/1] package/zchunk: new package
@ 2021-12-09 9:31 James Hilliard
2021-12-27 21:41 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: James Hilliard @ 2021-12-09 9:31 UTC (permalink / raw)
To: buildroot; +Cc: Eric Le Bihan, James Hilliard
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
package/Config.in | 1 +
package/zchunk/Config.in | 8 ++++++++
package/zchunk/zchunk.hash | 3 +++
package/zchunk/zchunk.mk | 28 ++++++++++++++++++++++++++++
4 files changed, 40 insertions(+)
create mode 100644 package/zchunk/Config.in
create mode 100644 package/zchunk/zchunk.hash
create mode 100644 package/zchunk/zchunk.mk
diff --git a/package/Config.in b/package/Config.in
index 57208309c4..3fad1c6d3c 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1377,6 +1377,7 @@ menu "Compression and decompression"
source "package/minizip/Config.in"
source "package/snappy/Config.in"
source "package/szip/Config.in"
+ source "package/zchunk/Config.in"
source "package/zlib/Config.in"
source "package/zziplib/Config.in"
endmenu
diff --git a/package/zchunk/Config.in b/package/zchunk/Config.in
new file mode 100644
index 0000000000..d610e15997
--- /dev/null
+++ b/package/zchunk/Config.in
@@ -0,0 +1,8 @@
+config BR2_PACKAGE_ZCHUNK
+ bool "zchunk"
+ select BR2_PACKAGE_LIBCURL
+ help
+ A file format designed for highly efficient deltas while
+ maintaining good compression.
+
+ https://github.com/zchunk/zchunk
diff --git a/package/zchunk/zchunk.hash b/package/zchunk/zchunk.hash
new file mode 100644
index 0000000000..d6b425dc70
--- /dev/null
+++ b/package/zchunk/zchunk.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 33934adecddc50c64615dd8cdfe52a79df674a5bb1d5e83a9c09e1d1e6e9b92c zchunk-1.1.16.tar.gz
+sha256 3c6a4fd5a93cacec6bf694d0537246bc15a95a274f5c5301749754e56d27b797 LICENSE
diff --git a/package/zchunk/zchunk.mk b/package/zchunk/zchunk.mk
new file mode 100644
index 0000000000..d8538542f1
--- /dev/null
+++ b/package/zchunk/zchunk.mk
@@ -0,0 +1,28 @@
+################################################################################
+#
+# zchunk
+#
+################################################################################
+
+ZCHUNK_VERSION = 1.1.16
+ZCHUNK_SITE = $(call github,zchunk,zchunk,$(ZCHUNK_VERSION))
+ZCHUNK_LICENSE = BSD-2-Clause
+ZCHUNK_LICENSE_FILES = LICENSE
+ZCHUNK_INSTALL_STAGING = YES
+ZCHUNK_DEPENDENCIES = libcurl
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+ZCHUNK_DEPENDENCIES += openssl
+ZCHUNK_CONF_OPTS += -Dwith-openssl=enabled
+else
+ZCHUNK_CONF_OPTS += -Dwith-openssl=disabled
+endif
+
+ifeq ($(BR2_PACKAGE_ZSTD),y)
+ZCHUNK_DEPENDENCIES += zstd
+ZCHUNK_CONF_OPTS += -Dwith-zstd=enabled
+else
+ZCHUNK_CONF_OPTS += -Dwith-zstd=disabled
+endif
+
+$(eval $(meson-package))
--
2.25.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/zchunk: new package
2021-12-09 9:31 [Buildroot] [PATCH 1/1] package/zchunk: new package James Hilliard
@ 2021-12-27 21:41 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2021-12-27 21:41 UTC (permalink / raw)
To: James Hilliard; +Cc: Eric Le Bihan, buildroot
On Thu, 9 Dec 2021 02:31:29 -0700
James Hilliard <james.hilliard1@gmail.com> wrote:
> Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
> ---
> package/Config.in | 1 +
> package/zchunk/Config.in | 8 ++++++++
> package/zchunk/zchunk.hash | 3 +++
> package/zchunk/zchunk.mk | 28 ++++++++++++++++++++++++++++
> 4 files changed, 40 insertions(+)
> create mode 100644 package/zchunk/Config.in
> create mode 100644 package/zchunk/zchunk.hash
> create mode 100644 package/zchunk/zchunk.mk
You had forgotten the DEVELOPERS entry, so I've added that and applied.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-12-27 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-09 9:31 [Buildroot] [PATCH 1/1] package/zchunk: new package James Hilliard
2021-12-27 21:41 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox