diff options
Diffstat (limited to 'bldit.lua')
| -rw-r--r-- | bldit.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -51,7 +51,11 @@ bldit.dependencies = { bldit.opts = {} if user == nil then - bldit.opts.prefix = os.getenv("HOME").."/.local" + if os.getenv("PREFIX") == nil then + bldit.opts.prefix = os.getenv("HOME").."/.local" + else + bldit.opts.prefix = os.getenv("PREFIX") + end else bldit.opts.prefix = user.dirs.prefix end @@ -83,6 +87,8 @@ local function build_cmd() end local install_cmd = "echo \"\tINSTALL\t\""..bldit.opts.prefix.."\n" + .."mkdir -p "..bldit.opts.prefix.."/bin\n" + .."mkdir -p "..bldit.opts.prefix.."/share/man/man1\n" .."install -d " ..bldit.opts.prefix.."/bin\n" .."install -m 755 pkgit " |
