|
@@ -7,14 +7,11 @@ package("lua")
|
|
|
"https://github.com/lua/lua.git")
|
|
|
|
|
|
add_versions("5.3.5", "0c2eed3f960446e1a3e4b9a1ca2f3ff893b6ce41942cf54d5dd59ab4b3b058ac")
|
|
|
+ add_versions("5.2.4", "b9e2e4aad6789b3b63a056d442f7b39f0ecfca3ae0f1fc0ae4e9614401b69f4b")
|
|
|
+ add_versions("5.1.5", "2640fc56a795f29d28ef15e13c34a47e223960b0240e8cb0a82d9b0738695333")
|
|
|
|
|
|
- on_install("macosx", "linux", function (package)
|
|
|
- io.gsub("./Makefile", "INSTALL_TOP= /usr/local", "INSTALL_TOP=" .. package:installdir())
|
|
|
- if is_plat("macosx") then
|
|
|
- os.vrun("make macosx")
|
|
|
- else
|
|
|
- os.vrun("make linux")
|
|
|
- end
|
|
|
- os.vrun("make install")
|
|
|
+ on_install(function (package)
|
|
|
+ os.cd("src")
|
|
|
+ import("package.tools.xmake").install(package)
|
|
|
end)
|
|
|
|