Parcourir la source

add lua-format (#417)

ruki il y a 4 ans
Parent
commit
163215ad3d
1 fichiers modifiés avec 16 ajouts et 0 suppressions
  1. 16 0
      packages/l/lua-format/xmake.lua

+ 16 - 0
packages/l/lua-format/xmake.lua

@@ -0,0 +1,16 @@
+package("lua-format")
+    set_kind("binary")
+    set_homepage("https://github.com/Koihik/LuaFormatter")
+    set_description("Code formatter for Lua")
+    add_urls("https://github.com/Koihik/LuaFormatter.git")
+    add_versions("1.3.5", "638ec8a7c114a0082ce60481afe8f46072e427e5")
+    add_deps("cmake")
+
+    on_install("@linux", "@macosx", "@windows", "@bsd", "@msys", function (package)
+        local configs = {"-DBUILD_TESTS=OFF", "-DCOVERAGE=OFF"}
+        import("package.tools.cmake").install(package, configs)
+    end)
+
+    on_test(function (package)
+        os.run("lua-format --help")
+    end)