summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlex Butler <alexheretic@gmail.com>2018-05-31 15:31:18 +0200
committerAllan McRae <allan@archlinux.org>2018-08-10 04:37:19 +0200
commit0cbb128818726e4d41964ea8df8c42ee37697ef7 (patch)
tree521991b426d01b654089ec32e9367e6f6b20d50d /scripts
parentfd16da2ed68aa7f89ad37701bcf7674b7bb14b2d (diff)
downloadpacman-0cbb128818726e4d41964ea8df8c42ee37697ef7.tar.gz
pacman-0cbb128818726e4d41964ea8df8c42ee37697ef7.tar.xz
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<alexheretic@gmail.com> Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/libmakepkg/util/compress.sh.in1
1 files changed, 1 insertions, 0 deletions
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 ;;