aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LICENSE21
-rw-r--r--sys-build/gmake/build.lua38
-rw-r--r--sys-build/samurai/build.lua36
3 files changed, 95 insertions, 0 deletions
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3db5f15
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 forever2k38
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/sys-build/gmake/build.lua b/sys-build/gmake/build.lua
new file mode 100644
index 0000000..792022d
--- /dev/null
+++ b/sys-build/gmake/build.lua
@@ -0,0 +1,38 @@
+local package = {}
+
+local lfs = require("lfs")
+
+package.name = "gmake"
+package.version = "4.4.1"
+package.description = "the gnu implementation of make"
+package.arch = { "x86_64" }
+package.license = { "GPLv3" }
+
+package.deps = {
+ build = {
+ { provides = "cc" },
+ { provides = "make" },
+ },
+}
+
+package.sources = {
+ {
+ path = "https://ftp.nluug.nl/pub/gnu/make/make-4.4.1.tar.gz",
+ hash = "09a4ad8060259e36854b525ab610fd317a86f4926e44e3ab8adba75dccc8d4b445df9dd25ccfb4c25a54bc0e98238a9127e36401d74cbc3503a329eadcdf4995",
+ out = "source.tar.gz",
+ },
+}
+
+package.build = function()
+ print(lfs.currentdir())
+
+ pow.extract("source.tar.gz", "source")
+
+ lfs.chdir("source/make-4.4.1")
+
+ os.execute("./configure")
+
+ os.execute("make")
+end
+
+return package
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