From f0398a32688ef44c9adb38959f1f3d84372fc099 Mon Sep 17 00:00:00 2001 From: Darcy Shen Date: Tue, 4 Jul 2023 22:52:00 +0800 Subject: [PATCH] zlib: add_urls from deb-src (#2273) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 沈浪熊猫儿 --- packages/z/zlib/xmake.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/z/zlib/xmake.lua b/packages/z/zlib/xmake.lua index 0ebc3dc5c..0aee68980 100644 --- a/packages/z/zlib/xmake.lua +++ b/packages/z/zlib/xmake.lua @@ -3,8 +3,11 @@ package("zlib") set_homepage("http://www.zlib.net") set_description("A Massively Spiffy Yet Delicately Unobtrusive Compression Library") - add_urls("https://github.com/madler/zlib/archive/$(version).tar.gz", - "https://github.com/madler/zlib.git") + add_urls("https://github.com/madler/zlib/archive/$(version).tar.gz") + add_urls("https://mirrors.ustc.edu.cn/debian/pool/main/z/zlib/zlib_$(version).dfsg.orig.tar.gz", { + version = function (version) return version:sub(2) end + }) + add_urls("https://github.com/madler/zlib.git") add_versions("v1.2.10", "42cd7b2bdaf1c4570e0877e61f2fdc0bce8019492431d054d3d86925e5058dc5") add_versions("v1.2.11", "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff") add_versions("v1.2.12", "d8688496ea40fb61787500e863cc63c9afcbc524468cedeb478068924eb54932")