From 52947d76eb643a9cc5ab09626c245813d44a909b Mon Sep 17 00:00:00 2001 From: yangjz Date: Mon, 31 Dec 2018 22:28:59 +0800 Subject: [PATCH] Update --- packages/c/cjson/xmake.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/packages/c/cjson/xmake.lua b/packages/c/cjson/xmake.lua index 5355878fb..7612d7015 100644 --- a/packages/c/cjson/xmake.lua +++ b/packages/c/cjson/xmake.lua @@ -1,11 +1,10 @@ package("cjson") - set_homepage("https://github.com/DaveGamble/cJSON") - set_description("Ultralightweight JSON parser in ANSI C.") + set_homepage("https://github.com/DaveGamble/cJSON") + set_description("Ultralightweight JSON parser in ANSI C.") - - set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip") - add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65") - on_install("macosx", "linux", function(package) + set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip") + add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65") + on_install("macosx", "linux", function(package) os.vrun("make") - os.vrun("sudo make install") - end) + os.vrun("make PREFIX=\"%s\" install", package:installdir()) + end)