summaryrefslogtreecommitdiff
path: root/system/abuild/use-pigz.patch
blob: a917c8f817748429ae09264445d9bb0c6851f4bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- abuild-3.2.0_rc1+adelie/abuild.in.old	2018-05-20 03:17:19.884154704 +0000
+++ abuild-3.2.0_rc1+adelie/abuild.in	2018-08-31 17:42:34.900000000 +0000
@@ -1466,6 +1466,7 @@
 		local datadir="$pkgbasedir"/$name
 		local subpkgname=$name
 		local subpkgarch=$(pkginfo_val arch $file)
+		local _mygzip=$(command -v pigz gzip | head -1)
 
 		trace_apk_deps "$name" "$dir" "$subpkgarch" || return 1
 		msg "Package size: ${size}"
@@ -1478,7 +1479,7 @@
 			touch .dummy
 			set -- .dummy
 		fi
-		tar --format pax --xattrs -f - -c "$@" | abuild-tar --hash | gzip -9 >"$dir"/data.tar.gz
+		tar --format pax --xattrs -f - -c "$@" | abuild-tar --hash | $_mygzip -9 >"$dir"/data.tar.gz
 
 		msg "Create checksum..."
 		# append the hash for data.tar.gz