diff options
Diffstat (limited to 'dev-lang')
| -rw-r--r-- | dev-lang/luajit/build.lua | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/dev-lang/luajit/build.lua b/dev-lang/luajit/build.lua new file mode 100644 index 0000000..10e78b1 --- /dev/null +++ b/dev-lang/luajit/build.lua @@ -0,0 +1,38 @@ +local package = {} + +local lfs = require("lfs") + +package.name = "luajit" +package.version = "c6ffc14" +package.description = "jit implementation of the lua scripting language" +package.arch = { "x86_64" } +package.license = { "MIT" } + +package.deps = { + build = { + { provides = "cc" }, + { provides = "make" }, + }, +} + +package.sources = { + { + path = "https://github.com/LuaJIT/LuaJIT/archive/c6ffc141a8762b41703f9287d63d93622a13dd8f.tar.gz", + hash = "1dd16b18f2310fd61ee6c3b8352c7a79d09b02da5ac13a8e00f6b67fdac9adcd40c7333428a2f6b3cf22b20797061bdfdba9fa211b9b10ee63a99546831e7da1", + out = "source.tar.gz", + }, +} + +package.build = function() + pow.extract("source.tar.gz", "source") + + lfs.chdir("source/LuaJIT-c6ffc141a8762b41703f9287d63d93622a13dd8f") + + local make_command = string.format("make %s", pow.config.makeopts) + + os.execute(make_command) +end + +package.install = function() end + +return package |
