libmakepkg: Add lzip ext support
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 - document PKGEXT with `.tar.lz` Signed-off-by: Chloe Kudryavtsev <toast@toastin.space> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
5bd54fa0c6
commit
776fbe1cde
3 changed files with 4 additions and 1 deletions
|
@ -254,13 +254,14 @@ Options
|
||||||
**COMPRESSLRZ=**"(lrzip -q)"::
|
**COMPRESSLRZ=**"(lrzip -q)"::
|
||||||
**COMPRESSLZ4=**"(lz4 -q)"::
|
**COMPRESSLZ4=**"(lz4 -q)"::
|
||||||
**COMPRESSZ=**"(compress -c -f)"::
|
**COMPRESSZ=**"(compress -c -f)"::
|
||||||
|
**COMPRESSLZ=**"(lzip -c -f)"::
|
||||||
Sets the command and options used when compressing compiled or source
|
Sets the command and options used when compressing compiled or source
|
||||||
packages in the named format.
|
packages in the named format.
|
||||||
|
|
||||||
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
**PKGEXT=**".pkg.tar.gz", **SRCEXT=**".src.tar.gz"::
|
||||||
Sets the compression used when making compiled or source packages.
|
Sets the compression used when making compiled or source packages.
|
||||||
Valid suffixes are `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`, `.tar.zst`,
|
Valid suffixes are `.tar`, `.tar.gz`, `.tar.bz2`, `.tar.xz`, `.tar.zst`,
|
||||||
`.tar.lzo`, `.tar.lrz`, `.tar.lz4`, and `.tar.Z`.
|
`.tar.lzo`, `.tar.lrz`, `.tar.lz4`, `.tar.lz` and `.tar.Z`.
|
||||||
Do not touch these unless you know what you are doing.
|
Do not touch these unless you know what you are doing.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -135,6 +135,7 @@ COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
COMPRESSLZ4=(lz4 -q)
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
|
|
|
@ -42,6 +42,7 @@ compress_as() {
|
||||||
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
|
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
|
||||||
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
||||||
*tar.lz4) ${COMPRESSLZ4[@]:-lz4 -q} ;;
|
*tar.lz4) ${COMPRESSLZ4[@]:-lz4 -q} ;;
|
||||||
|
*tar.lz) ${COMPRESSLZ[@]:-lzip -c -f} ;;
|
||||||
*tar) cat ;;
|
*tar) cat ;;
|
||||||
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
*) warning "$(gettext "'%s' is not a valid archive extension.")" \
|
||||||
"$ext"; cat ;;
|
"$ext"; cat ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue