package/zchunk: new package

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
James Hilliard 2021-12-09 02:31:29 -07:00 committed by Thomas Petazzoni
parent 17ebb6ffae
commit c618da772d
5 changed files with 41 additions and 0 deletions

View File

@ -1289,6 +1289,7 @@ F: package/python-tinycss2/
F: package/python-weasyprint/
F: package/python-yarl/
F: package/python-zopfli/
F: package/zchunk/
N: James Knight <james.knight@collins.com>
F: package/atkmm/

View File

@ -1382,6 +1382,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

8
package/zchunk/Config.in Normal file
View File

@ -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

View File

@ -0,0 +1,3 @@
# Locally computed
sha256 33934adecddc50c64615dd8cdfe52a79df674a5bb1d5e83a9c09e1d1e6e9b92c zchunk-1.1.16.tar.gz
sha256 3c6a4fd5a93cacec6bf694d0537246bc15a95a274f5c5301749754e56d27b797 LICENSE

28
package/zchunk/zchunk.mk Normal file
View File

@ -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))