35 lines
		
	
	
		
			845 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
			
		
		
	
	
			35 lines
		
	
	
		
			845 B
		
	
	
	
		
			Lua
		
	
	
	
	
	
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
 | 
						|
} |