blob: 1da722ff3aa2169956f0e43f154e23fb5b3d36a9 (
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
|
local package = {}
local lfs = require("lfs")
package.name = "samurai"
package.version = "1.3"
package.description = "ninja compatible build tool written in C"
package.arch = { "x86_64" }
package.license = { "MIT", "Apache", "ISC" }
package.deps = {
build = {
"make",
"cc",
},
}
package.sources = {
{
url = "https://github.com/michaelforney/samurai/releases/download/1.3/samurai-1.3.tar.gz",
sha256 = "1bc020a9e133432df51911ac71cc34322f828934d9a2282ba2916d88c15976af",
name = "source.tar.gz",
},
}
package.build = function()
pow.extract("source.tar.gz", "source")
lfs.chdir("source")
os.execute("make")
end
return package
|