blob: cd6e46d58cf3f4b49c2dce61e98261ce1aeb81fc (
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
37
38
|
local package = {}
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 = {
"dev-lang/clang",
"sys-build/gmake",
},
}
package.sources = {
{
path = "https://github.com/michaelforney/samurai/releases/download/1.3/samurai-1.3.tar.gz",
hash = "82d1c27fce5c21769e241ae15e5143e064847c65d6681fdd5d3f2df0ec9d36e8d71645e5cf44370ca5d2a56d6037a4452389d04583f227aaaeae48c2bdcfff54",
out = "source.tar.gz",
},
}
package.build = function()
pow.extract("source.tar.gz", "source")
pow.chdir("source/samurai-1.3")
local make_command = string.format("make %s", pow.config.makeopts)
os.execute(make_command)
end
package.install = function()
pow.install("samu", "/usr/bin/samu")
end
return package
|