SUMMARY="Prints out location of specified executables that are in your path"
DESCRIPTION="
GNU which is an utility that is used to find which executable (or alias or \
shell function) is executed when entered on the shell prompt.
"
HOMEPAGE="http://carlo17.home.xs4all.nl/which/"
COPYRIGHT="Free Software Foundation"
LICENSE="GNU GPL v2"
SOURCE_URI="http://ftp.gnu.org/gnu/which/which-$portVersion.tar.gz"
CHECKSUM_SHA256="f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 x86_64 arm"

PATCHES="which-$portVersion.patch"

PROVIDES="
	which = $portVersion
	cmd:which = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:gcc
	cmd:make
	cmd:sed
	cmd:grep
	cmd:awk
	"

BUILD()
{
	runConfigure ./configure --disable-dependency-tracking
	make $jobArgs
}

INSTALL()
{
	make install
}
