aboutsummaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorforever2k38 <forever2k38@noreply.codeberg.org>2026-08-31 10:19:12 +0200
committerforever2k38 <forever2k38@noreply.codeberg.org>2026-08-31 10:19:12 +0200
commit8f5dc1930debe95e106595da33951bd870672d85 (patch)
treebdf128ac0e079de2e2be7180c85037c15d4c7572 /testing
parentb09a640e1dd7b30ff05093e14190da99bb3cac32 (diff)
feat: find package by name
Diffstat (limited to 'testing')
-rw-r--r--testing/README.md1
-rw-r--r--testing/samurai/1.3.lua38
2 files changed, 39 insertions, 0 deletions
diff --git a/testing/README.md b/testing/README.md
new file mode 100644
index 0000000..f3c6a3f
--- /dev/null
+++ b/testing/README.md
@@ -0,0 +1 @@
+This is a dummy repository used for testing.
diff --git a/testing/samurai/1.3.lua b/testing/samurai/1.3.lua
new file mode 100644
index 0000000..eda38a5
--- /dev/null
+++ b/testing/samurai/1.3.lua
@@ -0,0 +1,38 @@
+local package = {}
+
+local pow = require("pow")
+
+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 = {
+ {
+ url = "https://github.com/michaelforney/samurai/releases/download/1.3/samurai-1.3.tar.gz",
+ sha256 = "1bc020a9e133432df51911ac71cc34322f828934d9a2282ba2916d88c15976af",
+ name = "source.tar.gz",
+ },
+}
+
+package.build = function()
+ pow.extract("source.tar.gz", "source")
+
+ pow.cd("source")
+
+ local cc = pow.exts.einfach.CC
+
+ pow.setenv("CC", cc)
+
+ pow.exec("make")
+end
+
+return package