void-packages/srcpkgs/pigz/template
maxice8 82362b86b8 pigz: update to 2.4.
Closes: #10231 [via git-merge-pr]
2017-12-29 17:48:46 +01:00

22 lines
560 B
Bash

# Template file for 'pigz'
pkgname=pigz
version=2.4
revision=1
makedepends="zlib-devel"
short_desc="A parallel implementation of gzip"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://zlib.net/pigz/"
license="zlib"
distfiles="http://zlib.net/pigz/pigz-${version}.tar.gz"
checksum=a4f816222a7b4269bd232680590b579ccc72591f1bb5adafcd7208ca77e14f73
post_extract() {
sed -i '/CC.*-o/{s/$(LDFLAGS)//; s/$/ $(LDFLAGS)/}' Makefile
}
do_build() {
make CC=$CC CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -lz" ${makejobs}
}
do_install() {
vbin pigz
vman pigz.1
}