Skip to content

Commit c43c816

Browse files
DragonBlueprobimarko
authored andcommitted
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] and the CPE ID[2]. [1] madler/zlib@352cb28 [2] https://nvd.nist.gov/products/cpe/detail/95C64A3E-A897-4D55-B74A-D2285440D164 Suggested-by: Christian Marangi <ansuelsmth@gmail.com> Signed-off-by: Shiji Yang <yangshiji66@qq.com> Link: openwrt/openwrt#17880 Signed-off-by: Robert Marko <robimarko@gmail.com>
1 parent 87f3365 commit c43c816

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

package/libs/zlib/Makefile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ PKG_NAME:=zlib
1111
PKG_VERSION:=1.3.1
1212
PKG_RELEASE:=1
1313

14-
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
15-
PKG_SOURCE_URL:=https://github.com/madler/zlib/releases/download/v$(PKG_VERSION)
16-
PKG_HASH:=38ef96b8dfe510d42707d9c781877914792541133e1870841463bfa73f883e32
14+
PKG_SOURCE_PROTO:=git
15+
PKG_SOURCE_URL:=https://github.com/madler/zlib
16+
PKG_SOURCE_VERSION:=51b7f2abdade71cd9bb0e7a373ef2610ec6f9daf
17+
PKG_MIRROR_HASH:=6558577038f4839057fad93afb295bf32e84dc9bd2c33512d40a5eab6d4889ef
1718

1819
PKG_LICENSE:=Zlib
19-
PKG_LICENSE_FILES:=README
20-
PKG_CPE_ID:=cpe:/a:gnu:zlib
20+
PKG_LICENSE_FILES:=LICENSE
21+
PKG_CPE_ID:=cpe:/a:zlib:zlib
2122

2223
PKG_CONFIG_DEPENDS:= CONFIG_ZLIB_OPTIMIZE_SPEED
2324

0 commit comments

Comments
 (0)