Go to file
Dylan Araps 8fc5b5c85e
kiss: Added pre-extract hook.
This is handy for manipulating the package manager internals prior
to source extraction. I currently use this to conditionally run the
source extraction, build and tarball creation in memory (tmpfs).

    pre-extract)
        case $PKG in
            # Reset the directories to their default values.
            firefox*|rust|llvm|clang)
                mak_dir=${KISS_TMPDIR:-$cac_dir}/build-${pid:=$$}
                pkg_dir=${KISS_TMPDIR:-$cac_dir}/pkg-$pid
            ;;

            # Package is not in the above list, do everything in
            # memory. Really nice speedups.
            *)
                log "$PKG" "Activating tmpfs"

                mak_dir=/tmp/build-$pid
                pkg_dir=/tmp/pkg-$pid
            ;;
        esac

        mkdir -p "$mak_dir" "$pkg_dir/$PKG/var/db/kiss/installed"
    ;;
2020-06-06 07:33:50 +03:00
.github/workflows ci: Run on pull requests 2020-01-08 22:21:10 +02:00
contrib contrib: Fix portability issues 2020-05-15 09:58:16 +03:00
kiss kiss: Added pre-extract hook. 2020-06-06 07:33:50 +03:00
kiss.1 kiss: Added pre-extract hook. 2020-06-06 07:33:50 +03:00
LICENSE.md docs: update 2019-10-05 11:02:05 +03:00
README.md docs: update 2020-05-17 12:38:56 +03:00

kiss

Tiny and straightforward package manager for KISS written in POSIX sh.

Documentation: https://k1ss.org/package-manager