installation system soft implemented

This commit is contained in:
2025-11-01 16:39:01 -03:00
parent 4c88ec3bc2
commit 52ecacc4fe
11 changed files with 450 additions and 57 deletions

View File

@@ -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,
}

View File

@@ -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,
}