blob: e864889d51af542500fd4b1434b084b054953d91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
return {
targets = {
default = {
build = function()
return os.execute("cmake -B build && cmake --build build")
end,
install = function()
return os.execute(privilege_escalator.." cmake --build . --target install")
end,
uninstall = function()
return os.execute(privilege_escalator.." xargs rm < install_manifest.txt")
end,
},
quiet = {
build = function()
return os.execute("cmake -B build &>/tmp/pkgit_build.log && cmake --build build &>/tmp/pkgit_build.log")
end,
install = function()
return os.execute(privilege_escalator.." cmake --build . --target install &>/tmp/pkgit_build.log")
end,
uninstall = function()
return os.execute(privilege_escalator.." xargs rm < install_manifest.txt &>/tmp/pkgit_build.log")
end,
},
},
}
|