# Template file for 'pigz'
pkgname=pigz
version=2.3.1
revision=1
makedepends="zlib-devel"
short_desc="A parallel implementation of gzip"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://zlib.net/pigz/"
license="zlib"
distfiles="http://zlib.net/pigz/pigz-${version}.tar.gz"
checksum=629b0ce5422a3978f31742bf8275d0be2f84987140d18f390f1e3b4e46e0af54

do_build() {
	sed -e 's|-lz|& -lm|' -i Makefile
	make CC=$CC CFLAGS="$CFLAGS" ${makejobs}
}

do_install() {
	vinstall pigz 755 usr/bin
	vinstall pigz.1 644 usr/share/man/man1
}
