aboutsummaryrefslogtreecommitdiffstats
path: root/main/pigz/APKBUILD
blob: b00efb5c5ba2227e6b84cff46daa1d14b026c44b (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
47
48
49
50
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pigz
pkgver=2.3.3
pkgrel=0
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
	reorder-flags.patch"

_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="01d7a16cce77929cc1a78aa1bdfb68cb  pigz-2.3.3.tar.gz
d3137c812ae4c93aafb5e371b218908d  reorder-flags.patch"
sha256sums="4e8b67b432ce7907575a549f3e1cac4709781ba0f6b48afea9f59369846b509c  pigz-2.3.3.tar.gz
752355ef26e08338df2494d74b3a223e2e5f564058dae23e3b9276116d2edc7e  reorder-flags.patch"
sha512sums="6fa5ee1c03b4a8dc4b191acaa337b6f30132503ff413300214e1e6b27dd70590b53334be3fa880916f6ea4498beb8cf7c411a5954fdf188475882c44618c663c  pigz-2.3.3.tar.gz
ebe110d5bcaa2b8de98a9d77497a95ababa7f07ff0b4306f9b6af1a46ffa67014c4436d8f9b4cb9cb8bb1a7bfda2847ff31017d28e84330afd63a2df80899d5c  reorder-flags.patch"