Commit 90962395 authored by Natanael Copa's avatar Natanael Copa

abuild: use pigz to compress control.tar.gz and manpages

parent bbe4a4fd
......@@ -1500,7 +1500,7 @@ create_apks() {
# control.tar.gz
cd "$dir"
tar -f - -c $(cat "$dir"/.metafiles) | abuild-tar --cut \
| gzip -9 > control.tar.gz
| $gzip -9 > control.tar.gz
abuild-sign -q control.tar.gz || exit 1
msg "Create $apk"
......@@ -1587,6 +1587,7 @@ check() {
# predefined splitfunc doc
default_doc() {
local gzip=$(command -v pigz || echo gzip)
depends="$depends_doc"
pkgdesc="$pkgdesc (documentation)"
install_if="docs $pkgname=$pkgver-r$pkgrel"
......@@ -1629,7 +1630,7 @@ default_doc() {
fi
done
[ $islink -eq 0 ] && gzip -9 "$name"
[ $islink -eq 0 ] && $gzip -9 "$name"
done
rm -f "$subpkgdir/usr/share/info/dir"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment