summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShiji Yang2025-02-21 11:52:01 +0000
committerRobert Marko2025-02-24 11:44:02 +0000
commit06c6481e7fedeaea316823f93d3a918200fb8ed4 (patch)
tree086b628637de9e5f52d67e1760572736ced81dce
parentc43c816afcee151939fc4d30eb9638eaa1442b23 (diff)
downloadopenwrt-06c6481e7fedeaea316823f93d3a918200fb8ed4.tar.gz
tools: zlib: switch to git source
Switch to the git repository source so that we can use zstd compression algorithm to create smaller package tarball. This patch also corrected the license file name[1]. [1] https://github.com/madler/zlib/commit/352cb28d12baf02863ff5d4d96be0587ced419a1 Suggested-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: https://github.com/openwrt/openwrt/pull/17880 Signed-off-by: Robert Marko <robimarko@gmail.com>
-rw-r--r--tools/zlib/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/zlib/Makefile b/tools/zlib/Makefile
index b1307ef2af..09c0aa6f71 100644
--- a/tools/zlib/Makefile
+++ b/tools/zlib/Makefile
@@ -11,12 +11,13 @@ PKG_NAME:=zlib
PKG_VERSION:=1.3.1
PKG_RELEASE:=1
-PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=https://github.com/madler/zlib/releases/download/v$(PKG_VERSION)
-PKG_HASH:=9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
+PKG_SOURCE_PROTO:=git
+PKG_SOURCE_URL:=https://github.com/madler/zlib
+PKG_SOURCE_VERSION:=51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
+PKG_MIRROR_HASH:=6558577038f4839057fad93afb295bf32e84dc9bd2c33512d40a5eab6d4889ef
PKG_LICENSE:=Zlib
-PKG_LICENSE_FILES:=README
+PKG_LICENSE_FILES:=LICENSE
PKG_CPE_ID:=cpe:/a:zlib:zlib
HOST_BUILD_PARALLEL:=1