diff options
Diffstat (limited to '.config/pkgit/builds/cmake.lua')
| -rw-r--r-- | .config/pkgit/builds/cmake.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/pkgit/builds/cmake.lua b/.config/pkgit/builds/cmake.lua new file mode 100644 index 0000000..e864889 --- /dev/null +++ b/.config/pkgit/builds/cmake.lua @@ -0,0 +1,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, + }, + }, +}
\ No newline at end of file |
