void-packages/srcpkgs/pigz/template

23 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
}