From 3c25285d5c4b6c0f41cdce52aff9f65fdb9739dc Mon Sep 17 00:00:00 2001 From: parazyd Date: Wed, 12 Apr 2017 16:59:13 +0200 Subject: [PATCH] support pixz for compressing images faster --- zlibs/imaging | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/zlibs/imaging b/zlibs/imaging index 03e7af9..2b8e6a3 100644 --- a/zlibs/imaging +++ b/zlibs/imaging @@ -114,10 +114,12 @@ image_pack_dist() { zerr } - notice "compressing image with xz" + _xz=xz + [[ $(command -v pixz) ]] && _xz=pixz + notice "compressing image with $_xz" silly pushd $workdir - xz -zv ${image_name}.img + $_xz -zv ${image_name}.img notice "generating sha256 for ${image_name}.img.xz" sha256sum ${image_name}.img.xz > ${image_name}.img.xz.sha