SUMMARY="Extraction utility for zip archives"
DESCRIPTION="UnZip is an extraction utility for archives compressed in \
.zip format (zipfiles). UnZip can list or extract files from an archive \
or test its integrity."
HOMEPAGE="http://www.info-zip.org/UnZip.html"
COPYRIGHT="1995-2014 Greg Roelofs"
LICENSE="Info-ZIP"
REVISION="2"
SOURCE_URI="http://downloads.sourceforge.net/project/infozip/UnZip%206.x%20%28latest%29/UnZip%206.0/unzip60.tar.gz"
CHECKSUM_SHA256="036d96991646d0449ed0aa952e4fbe21b476ce994abc276e49d30e686708bd37"
SOURCE_DIR="unzip60"
PATCHES="unzip-$portVersion.patchset"

ARCHITECTURES="x86_gcc2 x86 x86_64"

PROVIDES="
	unzip = $portVersion
	cmd:funzip
	cmd:unzip
	cmd:unzipsfx
	cmd:zipgrep
	cmd:zipinfo
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make -f unix/Makefile haiku MANDIR=$manDir 
}

INSTALL()
{
	make -f unix/Makefile install PREFIX=$prefix MANDIR=$manDir
}

TEST()
{
	make test
}
