summaryrefslogtreecommitdiffstats
path: root/pigz/Pkgfile
blob: a3885d66bcb4ccd294868e5faaf7802715d16221 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
description="Parallel implementation of gzip."
url=http://www.zlib.net/pigz/
packager="Lukc <lukc AT upyum DOT com>"
maintainer="Lukc <lukc AT upyum DOT com>"
depends=()

name=pigz
version=2.1.6
release=1
source=(http://www.zlib.net/$name/$name-$version.tar.gz)

build() {
	cd $name-$version
	sed -i -e 's|	cc|	$(CC)|' Makefile
	make \
		${CTARGET:+CC=$CTARGET-gcc} \
		CFLAGS="$CFLAGS"
	mkdir -p $PKG$bindir $PKG$mandir/man1
	install -m0755 pigz $PKG$bindir/pigz
	install -m0644 pigz.1 $PKG$mandir/man1
	ln -sf gz $PKG$bindir/pigz
}