[pacman-dev] [PATCH] libmakepkg: Add lzip ext support
Chloe Kudryavtsev
toast at toastin.space
Sun Jan 27 00:46:36 UTC 2019
lzip is a lossless data compressor designed to replace gzip and bzip2 as
the standard general-purpose compressed format.
- add .lz (lzip) support to libmakepkg/util/compress.sh:compress_as
- add COMPRESSLZ to makepkg.conf.in
- document COMPRESSLZ
Signed-off-by: Chloe Kudryavtsev <toast at toastin.space>
---
doc/makepkg.conf.5.asciidoc | 1 +
etc/makepkg.conf.in | 1 +
scripts/libmakepkg/util/compress.sh.in | 1 +
3 files changed, 3 insertions(+)
diff --git a/doc/makepkg.conf.5.asciidoc b/doc/makepkg.conf.5.asciidoc
index 7d7796b7..cbda9c53 100644
--- a/doc/makepkg.conf.5.asciidoc
+++ b/doc/makepkg.conf.5.asciidoc
@@ -254,6 +254,7 @@ Options
**COMPRESSLRZ=**"(lrzip -q)"::
**COMPRESSLZ4=**"(lz4 -q)"::
**COMPRESSZ=**"(compress -c -f)"::
+**COMPRESSLZ=**"(lzip -c -f)"::
Sets the command and options used when compressing compiled or source
packages in the named format.
diff --git a/etc/makepkg.conf.in b/etc/makepkg.conf.in
index a4321541..4d5cf4ea 100644
--- a/etc/makepkg.conf.in
+++ b/etc/makepkg.conf.in
@@ -135,6 +135,7 @@ COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
COMPRESSLZ4=(lz4 -q)
+COMPRESSLZ=(lzip -c -f)
#########################################################################
# EXTENSION DEFAULTS
diff --git a/scripts/libmakepkg/util/compress.sh.in b/scripts/libmakepkg/util/compress.sh.in
index 3a43e8b5..3d4d88fd 100644
--- a/scripts/libmakepkg/util/compress.sh.in
+++ b/scripts/libmakepkg/util/compress.sh.in
@@ -42,6 +42,7 @@ compress_as() {
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
*tar.lz4) ${COMPRESSLZ4[@]:-lz4 -q} ;;
+ *tar.lz) ${COMPRESSLZ[@]:-lzip -c -f} ;;
*tar) cat ;;
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
"$ext"; cat ;;
--
2.20.1
More information about the pacman-dev
mailing list