aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoelacanthus <[email protected]>2021-10-24 17:44:53 +0800
committerCoelacanthus <[email protected]>2021-10-24 17:49:12 +0800
commit9330288186a6c17ffee9b90d628c7d2ae25ec5a1 (patch)
tree39acd8169697a2844906da30f7c37a6710f033bf
parentf0ab07957c7ace17af08ffabbbb64eb607f53f28 (diff)
refactor(makepkg): enable zstd parallel compression and using max compression
The decompression time of zstd increases slowly with the compression ratio, so it is beneficial for users to enable the highest compression ratio. (as Fedora does) Signed-off-by: Coelacanthus <[email protected]>
-rw-r--r--makepkg.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/makepkg.conf b/makepkg.conf
index a059782..5f886c5 100644
--- a/makepkg.conf
+++ b/makepkg.conf
@@ -136,7 +136,7 @@ DBGSRCDIR="/usr/src/debug"
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
-COMPRESSZST=(zstd -c -z -q -)
+COMPRESSZST=(zstd -c -z -q --ultra -22 --threads=0 -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)
@@ -148,7 +148,7 @@ COMPRESSLZ=(lzip -c -f)
#########################################################################
#
PKGEXT='.pkg.tar.zst'
-SRCEXT='.src.tar.gz'
+SRCEXT='.src.tar.zst'
#########################################################################
# OTHER