aboutsummaryrefslogtreecommitdiffstats
path: root/main/pigz/APKBUILD
blob: 7387d1100b1bbb89ad19e00fb0761c5e7896ac73 (plain)
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
36
37
38
39
40
41
42
43
44
45
46
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pigz
pkgver=2.3.4
pkgrel=1
pkgdesc="parallel implementation of gzip"
url="http://zlib.net/pigz/"
arch="all"
license="zlib"
depends=""
depends_dev=""
makedepends="zlib-dev"
install=""
subpackages="$pkgname-doc"
source="http://zlib.net/pigz/pigz-$pkgver.tar.gz"

_builddir="$srcdir"/pigz-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	export CXXFLAGS="$CXXFLAGS -std=gnu++98"
	make || return 1
}

package() {
	cd "$_builddir"
	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
}

md5sums="08e6b2e682bbf65ccf12c8966d633fc6  pigz-2.3.4.tar.gz"
sha256sums="6f031fa40bc15b1d80d502ff91f83ba14f4b079e886bfb83221374f7bf5c8f9a  pigz-2.3.4.tar.gz"
sha512sums="c0d5da6c5b2da50841aaf3958d5694edca0356d4bef211175e9f2f17e0c815e80b2e62bb39c7761c8f83fdaa84ca7373e130cdb0fa2c96f91c397556cbf7ba2a  pigz-2.3.4.tar.gz"