aboutsummaryrefslogtreecommitdiff
path: root/dev-lang/luajit/build.lua
blob: 22d71dbc2aeb2ceab18a72653488f1f83be6aba3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
local package = {}

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")

	pow.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