diff options
| author | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-09-07 13:49:18 +0200 |
|---|---|---|
| committer | forever2k38 <forever2k38@noreply.codeberg.org> | 2026-09-07 13:49:18 +0200 |
| commit | 8887530824769943bf8900a81e210ca58a7f4c86 (patch) | |
| tree | bfc1e744a0c8043c90000830e65b0ff6e8c01e26 /sys-build/samurai | |
initial commit
Diffstat (limited to 'sys-build/samurai')
| -rw-r--r-- | sys-build/samurai/build.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/sys-build/samurai/build.lua b/sys-build/samurai/build.lua new file mode 100644 index 0000000..732ad89 --- /dev/null +++ b/sys-build/samurai/build.lua @@ -0,0 +1,36 @@ +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 = { + { provides = "cc" }, + { provides = "make" }, + }, +} + +package.sources = { + { + path = "https://github.com/michaelforney/samurai/releases/download/1.3/samurai-1.3.tar.gz", + hash = "1bc020a9e133432df51911ac71cc34322f828934d9a2282ba2916d88c15976af", + out = "source.tar.gz", + }, +} + +package.build = function() + print(lfs.currentdir()) + + pow.extract("source.tar.gz", "source") + + lfs.chdir("source/samurai-1.3") + + os.execute("make") +end + +return package |
