installation system soft implemented
This commit is contained in:
		@@ -44,10 +44,17 @@ return {
 | 
			
		||||
    },
 | 
			
		||||
        
 | 
			
		||||
    build = function() 
 | 
			
		||||
        
 | 
			
		||||
    end,
 | 
			
		||||
    
 | 
			
		||||
    install = function() -- required 
 | 
			
		||||
    print("oi amores")
 | 
			
		||||
    install = function() 
 | 
			
		||||
      
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
        local suc, errmsg = os.copy(pathjoin(SOURCESDIR,"bat-v0.26.0-".. CURRENT_ARCH_NORMALIZED .."-unknown-linux-gnu", "bat"), pathjoin(PACKETDIR, BIN_DIR, "bat"))
 | 
			
		||||
        if not suc then
 | 
			
		||||
            error(errmsg)
 | 
			
		||||
        end
 | 
			
		||||
    end,
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
@@ -24,11 +24,15 @@ return {
 | 
			
		||||
    },
 | 
			
		||||
        
 | 
			
		||||
    build = function()
 | 
			
		||||
 | 
			
		||||
     --   os.setenv("GOPATH", pathjoin(SOURCESDIR, "gopath"))
 | 
			
		||||
        os.chdir(pathjoin(SOURCESDIR, "utctimerightnow"))
 | 
			
		||||
        os.execute('go build -trimpath -ldflags="-s -w" -o utctimerightnow main.go')
 | 
			
		||||
        os.chmod(utctimerightnow, 0777)
 | 
			
		||||
    end,
 | 
			
		||||
    
 | 
			
		||||
    install  = function() -- required 
 | 
			
		||||
        print("goku")
 | 
			
		||||
        os.copy(pathjoin(SOURCESDIR, "utctimerightnow", "utctimerightnow"), pathjoin(PACKETDIR, BIN_DIR, "utctimerightnow"))
 | 
			
		||||
        os.copy(pathjoin(SOURCESDIR, "utctimerightnow", "LICENSE"), pathjoin(PACKETDIR, "/usr/share/licenses/utctimerightnow/LICENSE"))
 | 
			
		||||
    end,
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user