summaryrefslogtreecommitdiff
path: root/system/pigz/APKBUILD
blob: a595a062e2f77ab0d21fce27ab3c3a3dfb4d4343 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Contributor: Ariadne Conill <ariadne@dereferenced.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=pigz
pkgver=2.8
pkgrel=1
pkgdesc="Parallel implementation of gzip"
url="https://zlib.net/pigz/"
arch="all"
license="zlib"
depends=""
makedepends="zlib-dev cmd:which"
subpackages="$pkgname-doc"
source="https://zlib.net/pigz/pigz-$pkgver.tar.gz
	allow-flags.patch
	"

build() {
	LDFLAGS="-static" make pigz
}

check() {
	make test
}

package() {
	mkdir -p "$pkgdir"/usr/bin
	mkdir -p "$pkgdir"/usr/share/man/man1
	for i in pigz unpigz; do
		install -m755 $i "$pkgdir"/usr/bin
	done
	install -m644 pigz.1 "$pkgdir"/usr/share/man/man1
}

sha512sums="ae3d9d593e1645d65f9ab77aa828600c9af4bb30d0a073da7ae3dd805e65b87efaf6a0efb980f2d0168e475ae506eba194547d6479956dabb9d88293a9078a7f  pigz-2.8.tar.gz
5b899e78aa1e169b05f1e80e7e72f2ab11556da5e4de9ea85aadac00d24cfdaf34bc6b0535a103411003414365e1d4e0e584dce712fdad1c3ecd82da07d2263d  allow-flags.patch"