From 82ac5c841b8181e99d00c76dbc8dd29c619bb926 Mon Sep 17 00:00:00 2001 From: forever2k38 Date: Mon, 7 Sep 2026 13:20:41 +0200 Subject: categorize packages --- src/repo.c | 2 +- testing/samurai/1.3.lua | 36 ------------------------------------ testing/sys-build/samurai/1.3.lua | 36 ++++++++++++++++++++++++++++++++++++ 3 files changed, 37 insertions(+), 37 deletions(-) delete mode 100644 testing/samurai/1.3.lua create mode 100644 testing/sys-build/samurai/1.3.lua diff --git a/src/repo.c b/src/repo.c index 71a3172..3dfa985 100644 --- a/src/repo.c +++ b/src/repo.c @@ -50,7 +50,7 @@ int pow_repo_get_package(pow_repo **repos, size_t repo_count, pow_package *pkg, printf("found package %s in repo %s\n", query, repos[i]->path); - pow_package_open(pkg, "./testing/samurai/1.3.lua"); + pow_package_open(pkg, "./testing/sys-build/samurai/1.3.lua"); closedir(dp); } diff --git a/testing/samurai/1.3.lua b/testing/samurai/1.3.lua deleted file mode 100644 index c84e4a1..0000000 --- a/testing/samurai/1.3.lua +++ /dev/null @@ -1,36 +0,0 @@ -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 = { - { - 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 diff --git a/testing/sys-build/samurai/1.3.lua b/testing/sys-build/samurai/1.3.lua new file mode 100644 index 0000000..732ad89 --- /dev/null +++ b/testing/sys-build/samurai/1.3.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 -- cgit v1.3