Files
haikuports/app-arch/pigz/pigz-2.3.1.recipe
2015-08-04 12:08:31 -04:00

65 lines
1.2 KiB
Bash

SUMMARY="A parallel implementation of gzip for multi-processor machines"
DESCRIPTION="
pigz, which stands for Parallel Implementation of GZip, is a fully functional \
replacement for gzip that exploits multiple processors and multiple cores to \
the hilt when compressing data.
pigz was written by Mark Adler, and uses the zlib and pthread libraries.
This version of pigz is written to be portable across Unix-style operating \
systems that provide the zlib and pthread libraries.
"
LICENSE="Zlib"
COPYRIGHT="2008-2013 Mark Adler"
HOMEPAGE="http://www.zlib.net/pigz"
SOURCE_URI="http://www.zlib.net/pigz/pigz-2.3.1.tar.gz"
CHECKSUM_SHA256="629b0ce5422a3978f31742bf8275d0be2f84987140d18f390f1e3b4e46e0af54"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2 ?x86_64"
PROVIDES="
pigz = $portVersion
cmd:pigz = $portVersion
cmd:unpigz = $portVersion
"
REQUIRES="
haiku
lib:libz
"
BUILD_REQUIRES="
haiku_devel
devel:libz
"
BUILD_PREREQUIRES="
cmd:make
cmd:gcc
"
PATCH()
{
sed -i 's/-lm//g' Makefile
sed -i 's/-lpthread//g' Makefile
sed -i 's/ln -f/ln -sf/g' Makefile
}
BUILD()
{
make
}
INSTALL()
{
mkdir -p $binDir
cp -af pigz unpigz $binDir
mkdir -p $manDir/man1
cp -af pigz.1 $manDir/man1
}
TEST()
{
make test
}