diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-11-08 11:47:58 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-10 16:08:51 +0000 |
commit | 909623950f17989ad145c6162ce62ee64701f0fc (patch) | |
tree | 367d227001bfd5891d84f2750477c50cc9071192 /abuild.in | |
parent | bbe4a4fdfdc4f5e9014d3316ae36862a30cce597 (diff) | |
download | abuild-909623950f17989ad145c6162ce62ee64701f0fc.tar.gz abuild-909623950f17989ad145c6162ce62ee64701f0fc.tar.bz2 abuild-909623950f17989ad145c6162ce62ee64701f0fc.tar.xz abuild-909623950f17989ad145c6162ce62ee64701f0fc.zip |
abuild: use pigz to compress control.tar.gz and manpages
Diffstat (limited to 'abuild.in')
-rw-r--r-- | abuild.in | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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" |