pull/7/head
yangjz 6 years ago
parent 53f2d5b397
commit 52947d76eb
  1. 15
      packages/c/cjson/xmake.lua

@ -1,11 +1,10 @@
package("cjson") package("cjson")
set_homepage("https://github.com/DaveGamble/cJSON") set_homepage("https://github.com/DaveGamble/cJSON")
set_description("Ultralightweight JSON parser in ANSI C.") set_description("Ultralightweight JSON parser in ANSI C.")
set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip")
set_urls("https://github.com/DaveGamble/cJSON/archive/v$(version).zip") add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65")
add_versions("1.7.10", "80a0584410656c8d8da2ba703744f44d7535fc4f0778d8bf4f980ce77c6a9f65") on_install("macosx", "linux", function(package)
on_install("macosx", "linux", function(package)
os.vrun("make") os.vrun("make")
os.vrun("sudo make install") os.vrun("make PREFIX=\"%s\" install", package:installdir())
end) end)

Loading…
Cancel
Save