From 0cbb128818726e4d41964ea8df8c42ee37697ef7 Mon Sep 17 00:00:00 2001 From: Alex Butler Date: Thu, 31 May 2018 14:31:18 +0100 Subject: Add lz4 compression support to makepkg Adds opt-in lz4 compression of *pkg.tar files with makepkg. This is nice to have as an option for very fast compression and is already installed with libarchive. Signed-off-by: Alex Butler Signed-off-by: Allan McRae --- scripts/libmakepkg/util/compress.sh.in | 1 + 1 file changed, 1 insertion(+) (limited to 'scripts') diff --git a/scripts/libmakepkg/util/compress.sh.in b/scripts/libmakepkg/util/compress.sh.in index 3a332817..4d8cd46a 100644 --- a/scripts/libmakepkg/util/compress.sh.in +++ b/scripts/libmakepkg/util/compress.sh.in @@ -40,6 +40,7 @@ compress_as() { *tar.lrz) ${COMPRESSLRZ[@]:-lrzip -q} ;; *tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;; *tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;; + *tar.lz4) ${COMPRESSLZ4[@]:-lz4 -q} ;; *tar) cat ;; *) warning "$(gettext "'%s' is not a valid archive extension.")" \ "$ext"; cat ;; -- cgit v1.2.3-54-g00ecf