Skip to contentSkip to conversation

package/zchunk: new package

PATCH In review James Hilliard 2 participants 2 messages Dec 9, 2021 – Dec 27, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/zchunk: new package

---
 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
package/Config.in +1 -0
index 57208309c4..3fad1c6d3c 100644
@@ -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
package/zchunk/Config.in new file +8 -0
new file mode 100644
index 0000000000..d610e15997
@@ -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
package/zchunk/zchunk.hash new file +3 -0
new file mode 100644
index 0000000000..d6b425dc70
@@ -0,0 +1,3 @@
+# Locally computed
+sha256  33934adecddc50c64615dd8cdfe52a79df674a5bb1d5e83a9c09e1d1e6e9b92c  zchunk-1.1.16.tar.gz
+sha256  3c6a4fd5a93cacec6bf694d0537246bc15a95a274f5c5301749754e56d27b797  LICENSE
package/zchunk/zchunk.mk new file +28 -0
new file mode 100644
index 0000000000..d8538542f1
@@ -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))
Signature · 6 lines
2.25.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 10 lines · On Thu, 9 Dec 2021 02:31:29 -0700 James Hilliard <[email protected]>…
---
 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

Signature · 7 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot