aboutsummaryrefslogtreecommitdiff
path: root/dev-lang/lua5.5
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/lua5.5')
-rw-r--r--dev-lang/lua5.5/build.lua38
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-lang/lua5.5/build.lua b/dev-lang/lua5.5/build.lua
new file mode 100644
index 0000000..92ce830
--- /dev/null
+++ b/dev-lang/lua5.5/build.lua
@@ -0,0 +1,38 @@
+local package = {}
+
+local lfs = require("lfs")
+
+package.name = "lua5.5"
+package.version = "5.5.1"
+package.description = "powerful, efficient, lightweight, embeddable scripting language"
+package.arch = { "x86_64" }
+package.license = { "MIT" }
+
+package.deps = {
+ build = {
+ { provides = "cc" },
+ { provides = "make" },
+ },
+}
+
+package.sources = {
+ {
+ path = "https://www.lua.org/ftp/lua-5.5.1.tar.gz",
+ hash = "b3f9ba31a8c33ef564233bb633168246d3e04f44b28f2d16130b14b47fd65a1f3b44bed0e2b7bf773d9526abc2c941db4213b01e95de8af5f523658ec4315bff",
+ out = "source.tar.gz",
+ },
+}
+
+package.build = function()
+ pow.extract("source.tar.gz", "source")
+
+ lfs.chdir("source/lua-5.5.1")
+
+ local make_command = string.format("make %s", pow.config.makeopts)
+
+ os.execute(make_command)
+end
+
+package.install = function() end
+
+return package