SUMMARY="A jar(java archive) program written in C"
DESCRIPTION="
FastJar is an attempt at creating a feature-for-feature copy of Sun's JDK's \
'jar' command.  Sun's jar (or Blackdown's for that matter) is written entirely \
in Java which makes it dog slow.  Since FastJar is written in C, it can create \
the same .jar file as Sun's tool in a fraction of the time."
HOMEPAGE="https://savannah.nongnu.org/projects/fastjar"
COPYRIGHT="1999-2001 Bryan Burns, Cory Jon Hollingsworth, Matthias Klose (documentation)
	2007-2009 Dalibor Topic"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="http://download.savannah.gnu.org/releases/fastjar/fastjar-0.98.tar.gz"
CHECKSUM_SHA256="f156abc5de8658f22ee8f08d7a72c88f9409ebd8c7933e9466b0842afeb2f145"

ARCHITECTURES="all ?x86_gcc2"

PROVIDES="
	fastjar = $portVersion
	cmd:fastjar = $portVersion
	cmd:grepjar = $portVersion
	"
REQUIRES="
	haiku
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libz
	"
BUILD_PREREQUIRES="
	cmd:aclocal
	cmd:autoconf
	cmd:automake
	cmd:autoreconf
	cmd:gcc
	cmd:libtoolize
	cmd:make
	"

BUILD()
{
	autoreconf -vfi
	runConfigure ./configure
	make
}

INSTALL()
{
	make install
	rm -rf $libDir
}
