aboutsummaryrefslogtreecommitdiff
path: root/sys-build
diff options
context:
space:
mode:
authorforever2k38 <forever2k38@noreply.codeberg.org>2026-09-16 16:02:05 +0200
committerforever2k38 <forever2k38@noreply.codeberg.org>2026-09-16 16:02:05 +0200
commit250d4568537895ec283a72e811ab057de8929d2d (patch)
treefac4e6ad5198ce20941aab90dab092e977b2edcd /sys-build
parent8887530824769943bf8900a81e210ca58a7f4c86 (diff)
fixes
Diffstat (limited to 'sys-build')
-rw-r--r--sys-build/automake/build.lua38
-rw-r--r--sys-build/gmake/build.lua43
-rw-r--r--sys-build/samurai/build.lua2
3 files changed, 81 insertions, 2 deletions
diff --git a/sys-build/automake/build.lua b/sys-build/automake/build.lua
new file mode 100644
index 0000000..dc8c087
--- /dev/null
+++ b/sys-build/automake/build.lua
@@ -0,0 +1,38 @@
+local package = {}
+
+local lfs = require("lfs")
+
+package.name = "automake"
+package.version = "1.18.1"
+package.description = "gnu makefile generator"
+package.arch = { "x86_64" }
+package.license = { "GPLv2" }
+
+package.deps = {
+ build = {
+ { provides = "cc" },
+ { provides = "make" },
+ },
+}
+
+package.sources = {
+ {
+ path = "https://ftp.nluug.nl/pub/gnu/automake/automake-1.18.1.tar.gz",
+ hash = "c13141920b1427e2d0ceb1122159430544221d6cad4b7748559ab8377a5fb4e4807baf1679446bd83b45ead2e82ac4d970f468aa7cb6e22f012e4943dded1989",
+ out = "source.tar.gz",
+ },
+}
+
+package.build = function()
+ print(lfs.currentdir())
+
+ pow.extract("source.tar.gz", "source")
+
+ lfs.chdir("source/automake-1.18.1")
+
+ os.execute("./configure")
+
+ os.execute("make")
+end
+
+return package
diff --git a/sys-build/gmake/build.lua b/sys-build/gmake/build.lua
index 792022d..7a759d1 100644
--- a/sys-build/gmake/build.lua
+++ b/sys-build/gmake/build.lua
@@ -11,7 +11,7 @@ package.license = { "GPLv3" }
package.deps = {
build = {
{ provides = "cc" },
- { provides = "make" },
+ "sys-build/autoconf",
},
}
@@ -23,6 +23,45 @@ package.sources = {
},
}
+-- shitty hack to remove version pinning and allow building on new autoconf versions
+
+local function process_file(path)
+ local f = io.open(path, "r")
+ if not f then
+ return
+ end
+
+ local content = f:read("*a")
+ f:close()
+
+ if content:find("1[.-]16") then
+ content = content:gsub("1([.-])16", "1%118")
+
+ f = assert(io.open(path, "w"))
+ f:write(content)
+ f:close()
+
+ print("Updated: " .. path)
+ end
+end
+
+local function walk(dir)
+ for entry in lfs.dir(dir) do
+ if entry ~= "." and entry ~= ".." then
+ local path = dir .. "/" .. entry
+ local attr = lfs.attributes(path)
+
+ if attr and attr.mode == "directory" then
+ if entry ~= ".git" then
+ walk(path)
+ end
+ elseif attr and attr.mode == "file" then
+ process_file(path)
+ end
+ end
+ end
+end
+
package.build = function()
print(lfs.currentdir())
@@ -30,6 +69,8 @@ package.build = function()
lfs.chdir("source/make-4.4.1")
+ walk(".")
+
os.execute("./configure")
os.execute("make")
diff --git a/sys-build/samurai/build.lua b/sys-build/samurai/build.lua
index 732ad89..b34b101 100644
--- a/sys-build/samurai/build.lua
+++ b/sys-build/samurai/build.lua
@@ -18,7 +18,7 @@ package.deps = {
package.sources = {
{
path = "https://github.com/michaelforney/samurai/releases/download/1.3/samurai-1.3.tar.gz",
- hash = "1bc020a9e133432df51911ac71cc34322f828934d9a2282ba2916d88c15976af",
+ hash = "82d1c27fce5c21769e241ae15e5143e064847c65d6681fdd5d3f2df0ec9d36e8d71645e5cf44370ca5d2a56d6037a4452389d04583f227aaaeae48c2bdcfff54",
out = "source.tar.gz",
},
}