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