From 3eee81ee507abc096ffc19b9c75da29113ad21a9 Mon Sep 17 00:00:00 2001 From: parazyd Date: Tue, 26 Feb 2019 01:04:49 +0100 Subject: [PATCH] Add support for pixz in zlibs/imaging. --- zlibs/imaging | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/zlibs/imaging b/zlibs/imaging index 22e871e..9869492 100644 --- a/zlibs/imaging +++ b/zlibs/imaging @@ -179,9 +179,16 @@ image_pack_dist() { pushd $workdir [[ -n "$nocompressimage" ]] || { - notice "compressing image with xz" + if which pixz > /dev/null ; then + xzcomp=$(which pixz) + else + xzcomp=$(which xz) + fi + + notice "compressing image with $xzcomp" silly - xz -zv "${image_name}.img" + + $xzcomp "${image_name}.img" } mkdir -p "$R/dist"