From 0a531488a31c93e54d65e7424a69d5510aa1eb09 Mon Sep 17 00:00:00 2001 From: robogg133 Date: Sun, 26 Oct 2025 18:06:08 -0300 Subject: [PATCH] Packet.lua example test --- Packet.lua | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 Packet.lua diff --git a/Packet.lua b/Packet.lua new file mode 100644 index 0000000..e4684dd --- /dev/null +++ b/Packet.lua @@ -0,0 +1,35 @@ +return { + package = { + name = "packets", + id = "packets@git", + version = "git", + author = "robogg133", + description = "fast, opensource, easy to use package manager.", + type = "remote", + + build_dependencies = {["go"] = "1.25.1"}, + + git_url = "https://github.com/roboogg133/packets.git", + git_branch = "main" + + }, + + + prepare = function(container) + git.clone("https://github.com/roboogg133/packets.git", container.dir("/data")) + os.remove(container.dir("/data/.git")) + + end, + + build = function() + os.execute("go build ./data/cmd/packets") + end, + + install = function(container) + os.copy(container.dir("./packets"), BIN_DIR) + end, + + remove = function () + os.remove(path_join(BIN_DIR, "packets")) + end +} \ No newline at end of file