makepkg: add support for the zst format
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
cd7b2d6e07
commit
bae74c8e9e
3 changed files with 4 additions and 1 deletions
|
@ -249,6 +249,7 @@ Options
|
||||||
**COMPRESSGZ=**"(gzip -c -f -n)"::
|
**COMPRESSGZ=**"(gzip -c -f -n)"::
|
||||||
**COMPRESSBZ2=**"(bzip2 -c -f)"::
|
**COMPRESSBZ2=**"(bzip2 -c -f)"::
|
||||||
**COMPRESSXZ=**"(xz -c -z -)"::
|
**COMPRESSXZ=**"(xz -c -z -)"::
|
||||||
|
**COMPRESSZST=**"(zstd -c -z -)"::
|
||||||
**COMPRESSLZO**"(lzop -q)"::
|
**COMPRESSLZO**"(lzop -q)"::
|
||||||
**COMPRESSLRZ=**"(lrzip -q)"::
|
**COMPRESSLRZ=**"(lrzip -q)"::
|
||||||
**COMPRESSLZ4=**"(lz4 -q)"::
|
**COMPRESSLZ4=**"(lz4 -q)"::
|
||||||
|
@ -258,7 +259,7 @@ Options
|
||||||
|
|
||||||
**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`,
|
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`, 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.
|
||||||
|
|
||||||
|
|
|
@ -130,6 +130,7 @@ DBGSRCDIR="/usr/src/debug"
|
||||||
COMPRESSGZ=(gzip -c -f -n)
|
COMPRESSGZ=(gzip -c -f -n)
|
||||||
COMPRESSBZ2=(bzip2 -c -f)
|
COMPRESSBZ2=(bzip2 -c -f)
|
||||||
COMPRESSXZ=(xz -c -z -)
|
COMPRESSXZ=(xz -c -z -)
|
||||||
|
COMPRESSZST=(zstd -c -z -q -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
|
|
|
@ -37,6 +37,7 @@ compress_as() {
|
||||||
*tar.gz) ${COMPRESSGZ[@]:-gzip -c -f -n} ;;
|
*tar.gz) ${COMPRESSGZ[@]:-gzip -c -f -n} ;;
|
||||||
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
*tar.bz2) ${COMPRESSBZ2[@]:-bzip2 -c -f} ;;
|
||||||
*tar.xz) ${COMPRESSXZ[@]:-xz -c -z -} ;;
|
*tar.xz) ${COMPRESSXZ[@]:-xz -c -z -} ;;
|
||||||
|
*tar.zst) ${COMPRESSZST[@]:-zstd -c -z -q -} ;;
|
||||||
*tar.lrz) ${COMPRESSLRZ[@]:-lrzip -q} ;;
|
*tar.lrz) ${COMPRESSLRZ[@]:-lrzip -q} ;;
|
||||||
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
|
*tar.lzo) ${COMPRESSLZO[@]:-lzop -q} ;;
|
||||||
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
*tar.Z) ${COMPRESSZ[@]:-compress -c -f} ;;
|
||||||
|
|
Loading…
Add table
Reference in a new issue