SUMMARY="The gzip compression utilities"
DESCRIPTION="gzip (GNU zip) is a compression utility designed to be a \
replacement for compress. Its main advantages over compress are much \
better compression and freedom from patented algorithms. It has been \
adopted by the GNU project and is now relatively popular on the Internet."
HOMEPAGE="https://www.gnu.org/software/gzip/"
COPYRIGHT="1992-1993 Jean-loup Gailly
	1999-2016 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="http://ftpmirror.gnu.org/gzip/gzip-$portVersion.tar.xz"
CHECKSUM_SHA256="9b9a95d68fdcb936849a4d6fada8bf8686cddf58b9b26c9c4289ed0c92a77907"
PATCHES="gzip-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	gzip = $portVersion
	cmd:gunzip = $portVersion
	cmd:gzexe = $portVersion
	cmd:gzip = $portVersion
	cmd:uncompress = $portVersion
	cmd:zcat = $portVersion
	cmd:zcmp = $portVersion
	cmd:zdiff = $portVersion
	cmd:zegrep = $portVersion
	cmd:zfgrep = $portVersion
	cmd:zforce = $portVersion
	cmd:zgrep = $portVersion
	cmd:zless = $portVersion
	cmd:zmore = $portVersion
	cmd:znew = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:make
	cmd:sed
	"

TEST_REQUIRES="
	cmd:diff
	cmd:grep
	cmd:less
	cmd:more
	"

BUILD()
{
	AUTOCONF=: AUTOMAKE=: CFLAGS="-Wno-error" \
		runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make check
}
