From e5283468c51a119708e3b8bb390b59c01eaec91f Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 21 Apr 2017 17:37:28 +0800 Subject: [PATCH] rename set_url and set_mirror to set_urls --- packages/tboox/tbox/xmake.lua | 22 ++++++++++++---------- packages/zlib/xmake.lua | 10 +++++----- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/packages/tboox/tbox/xmake.lua b/packages/tboox/tbox/xmake.lua index ff68d78b7..f0f790060 100644 --- a/packages/tboox/tbox/xmake.lua +++ b/packages/tboox/tbox/xmake.lua @@ -1,14 +1,16 @@ package "tboox.tbox" - set_homepage "http://www.tboox.org" - set_description "A glib-like multi-platform c library" - set_url "https://github.com/tboox/tbox/archive/v$(version).tar.gz" - set_versions ("1.5.0", "1.5.1", "1.5.2", "1.5.3", "1.6.0", "1.6.1") - set_sha256s ("232b7b1776b708ebbdbd47767caa6ae10154c68a146d92391a366aada0d77559", - "00166848e2602234e0481692b5db0804c007b7e5673cf5a17bd1fc889b4917d7", - "e4356f32ff64887706da3d8592433edb7cd5f8ab37d0304c685c967a36169606", - "b9ead60d52045290e40a3fb6d4a01c9e66104a5e875b56f110806d7b0ed53ea3", - "4a2c97bf57214abc95058bd12fe91f12d987814233caba17cc2390f893c802cf", - "2f4424194444ec3dd98bff20bb4a3eb9d9fdd485f1833dde75482beb2c3088f8") + set_homepage "http://www.tboox.org" + set_description "A glib-like multi-platform c library" + set_urls ("https://github.com/tboox/tbox/archive/v$(version).tar.gz", + "git@github.com:tboox/tbox.git", + "git@git.oschina.net:tboox/tbox.git") + set_versions ("1.5.0", "1.5.1", "1.5.2", "1.5.3", "1.6.0", "1.6.1") + set_sha256s ("232b7b1776b708ebbdbd47767caa6ae10154c68a146d92391a366aada0d77559", + "00166848e2602234e0481692b5db0804c007b7e5673cf5a17bd1fc889b4917d7", + "e4356f32ff64887706da3d8592433edb7cd5f8ab37d0304c685c967a36169606", + "b9ead60d52045290e40a3fb6d4a01c9e66104a5e875b56f110806d7b0ed53ea3", + "4a2c97bf57214abc95058bd12fe91f12d987814233caba17cc2390f893c802cf", + "2f4424194444ec3dd98bff20bb4a3eb9d9fdd485f1833dde75482beb2c3088f8") diff --git a/packages/zlib/xmake.lua b/packages/zlib/xmake.lua index fa7c734e0..52d5ec39e 100644 --- a/packages/zlib/xmake.lua +++ b/packages/zlib/xmake.lua @@ -2,11 +2,11 @@ package "zlib" set_homepage "http://www.zlib.net" set_description "A Massively Spiffy Yet Delicately Unobtrusive Compression Library" - set_url "http://zlib.net/zlib-$(version).tar.gz" - set_mirror "https://downloads.sourceforge.net/project/libpng/zlib/$(version)/zlib-$(version).tar.gz" - set_versions ("1.2.10", "1.2.11") - set_sha256s ("8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017", - "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1") + set_urls ("http://zlib.net/zlib-$(version).tar.gz", + "https://downloads.sourceforge.net/project/libpng/zlib/$(version)/zlib-$(version).tar.gz") + set_versions ("1.2.10", "1.2.11") + set_sha256s ("8d7e9f698ce48787b6e1c67e6bff79e487303e66077e25cb9784ac8835978017", + "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1") -- TODO on_build(function (package)