Convert/update pigz to working recipe

--HG--
rename : app-arch/pigz/pigz-2.1.6.recipe => app-arch/pigz/pigz-2.3.1.recipe
This commit is contained in:
Chris Roberts
2013-11-24 20:54:03 -07:00
parent 94a40407a0
commit efbde530ea
2 changed files with 65 additions and 31 deletions

View File

@@ -1,31 +0,0 @@
DESCRIPTION="pigz"
HOMEPAGE="http://www.zlib.net/pigz"
SRC_URI="http://www.zlib.net/pigz/pigz-2.1.6.tar.gz"
CHECKSUM_MD5="cbe9030c4be3d0ef2438ee5f8b169ca4"
REVISION="1"
STATUS_HAIKU="stable"
DEPEND=""
BUILD()
{
cd pigz-2.1.6
sed -i 's/-lpthread/ /g' Makefile
sed -i 's/ln -f pigz unpigz/cp pigz unpigz/' Makefile
make
}
INSTALL()
{
cd pigz-2.1.6
mkdir -p ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`
cp pigz ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/pigz
cp unpigz ${DESTDIR}`finddir B_COMMON_BIN_DIRECTORY`/unpigz
}
TEST()
{
cd pigz-2.1.6
make test
}
LICENSE="Zlib"
COPYRIGHT="2008 Mark Adler"

View File

@@ -0,0 +1,65 @@
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"
SRC_URI="http://www.zlib.net/pigz/pigz-2.3.1.tar.gz"
CHECKSUM_MD5="e803f8bc0770c7a5e96dccb1d2dd2aab"
REVISION="1"
ARCHITECTURES="x86 ?x86_gcc2 ?x86_64"
PROVIDES="
pigz = $portVersion
cmd:pigz = $portVersion
cmd:unpigz = $portVersion
"
REQUIRES="
haiku >= $haikuVersion
lib:libz
"
BUILD_REQUIRES="
haiku_devel >= $haikuVersion
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
}