diff options
Diffstat (limited to '.config/pkgit/builds/make.lua')
| -rw-r--r-- | .config/pkgit/builds/make.lua | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/.config/pkgit/builds/make.lua b/.config/pkgit/builds/make.lua new file mode 100644 index 0000000..03358ca --- /dev/null +++ b/.config/pkgit/builds/make.lua @@ -0,0 +1,26 @@ +return { + targets = { + default = { + build = function() + return os.execute("make -j$(nproc)") + end, + install = function() + return os.execute(privilege_escalator.." make install PREFIX="..prefix) + end, + uninstall = function() + return os.execute(privilege_escalator.." make uninstall PREFIX="..prefix) + end, + }, + quiet = { + build = function() + return os.execute("make &>/tmp/pkgit_build.log") + end, + install = function() + return os.execute(privilege_escalator.." make install PREFIX="..prefix.." &>/tmp/pkgit_build.log") + end, + uninstall = function() + return os.execute(privilege_escalator.." make uninstall PREFIX="..prefix.." &>/tmp/pkgit_build.log") + end, + }, + }, +}
\ No newline at end of file |
