forked from mirrored-repos/manjaro-tools
use zst compression for pkgs
This commit is contained in:
parent
e3712e4a60
commit
ff5acbe2bb
4 changed files with 7 additions and 4 deletions
|
@ -11,4 +11,4 @@
|
||||||
|
|
||||||
version=@version@
|
version=@version@
|
||||||
|
|
||||||
find $PWD -maxdepth 1 -name '*.pkg.tar.xz' -exec signfile {} \;
|
find $PWD -maxdepth 1 -name '*.pkg.tar.xz' -o -name '*.pkg.tar.zst' -exec signfile {} \;
|
||||||
|
|
|
@ -131,9 +131,12 @@ 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 -T0 --ultra -20 -)
|
||||||
COMPRESSLRZ=(lrzip -q)
|
COMPRESSLRZ=(lrzip -q)
|
||||||
COMPRESSLZO=(lzop -q)
|
COMPRESSLZO=(lzop -q)
|
||||||
COMPRESSZ=(compress -c -f)
|
COMPRESSZ=(compress -c -f)
|
||||||
|
COMPRESSLZ4=(lz4 -q)
|
||||||
|
COMPRESSLZ=(lzip -c -f)
|
||||||
|
|
||||||
#########################################################################
|
#########################################################################
|
||||||
# EXTENSION DEFAULTS
|
# EXTENSION DEFAULTS
|
||||||
|
@ -142,5 +145,5 @@ COMPRESSZ=(compress -c -f)
|
||||||
# WARNING: Do NOT modify these variables unless you know what you are
|
# WARNING: Do NOT modify these variables unless you know what you are
|
||||||
# doing.
|
# doing.
|
||||||
#
|
#
|
||||||
PKGEXT='.pkg.tar.xz'
|
PKGEXT='.pkg.tar.zst'
|
||||||
SRCEXT='.src.tar.gz'
|
SRCEXT='.src.tar.gz'
|
||||||
|
|
|
@ -352,7 +352,7 @@ copy_from_cache(){
|
||||||
-B "${build_mirror}/${target_branch}" \
|
-B "${build_mirror}/${target_branch}" \
|
||||||
"$1" \
|
"$1" \
|
||||||
pacman -v -Sp $2 --noconfirm > "$list"
|
pacman -v -Sp $2 --noconfirm > "$list"
|
||||||
sed -ni '/.pkg.tar.xz/p' "$list"
|
sed -ni '/.pkg.tar.xz/p'; '/.pkg.tar.zst/p' "$list"
|
||||||
sed -i "s/.*\///" "$list"
|
sed -i "s/.*\///" "$list"
|
||||||
|
|
||||||
msg2 "Copying mhwd package cache ..."
|
msg2 "Copying mhwd package cache ..."
|
||||||
|
|
|
@ -156,7 +156,7 @@ archive_logs(){
|
||||||
|
|
||||||
post_build(){
|
post_build(){
|
||||||
source PKGBUILD
|
source PKGBUILD
|
||||||
local ext='pkg.tar.xz' tarch ver src
|
local ext='pkg.tar.zst' tarch ver src
|
||||||
for pkg in ${pkgname[@]}; do
|
for pkg in ${pkgname[@]}; do
|
||||||
case $arch in
|
case $arch in
|
||||||
any) tarch='any' ;;
|
any) tarch='any' ;;
|
||||||
|
|
Loading…
Reference in a new issue