diff --git a/kiss b/kiss index 057b40d..c0f37ab 100755 --- a/kiss +++ b/kiss @@ -1647,9 +1647,9 @@ main() { # Create the required temporary directories and set the variables # which point to them. mkdir -p "${cac_dir:=${XDG_CACHE_HOME:-$HOME/.cache}/kiss}" \ - "${mak_dir:=$cac_dir/build-$pid}" \ - "${pkg_dir:=$cac_dir/pkg-$pid}" \ - "${tar_dir:=$cac_dir/extract-$pid}" \ + "${mak_dir:=${KISS_TMPDIR:-$cac_dir}/build-$pid}" \ + "${pkg_dir:=${KISS_TMPDIR:-$cac_dir}/pkg-$pid}" \ + "${tar_dir:=${KISS_TMPDIR:-$cac_dir}/extract-$pid}" \ "${src_dir:=$cac_dir/sources}" \ "${log_dir:=$cac_dir/logs}" \ "${bin_dir:=$cac_dir/bin}" diff --git a/kiss.1 b/kiss.1 index 99eb170..b607078 100644 --- a/kiss.1 +++ b/kiss.1 @@ -85,6 +85,11 @@ export KISS_FORCE=0 # export KISS_HOOK=/path/to/script +# Temporary directory (for builds). +# Allows one to build packages in ram or another location. +# +export KISS_TMPDIR="" + # Root directory. # # Where installed packages will go. You won't ever need