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://savannah.gnu.org/projects/which"
COPYRIGHT="Free Software Foundation"
LICENSE="GNU GPL v2"
REVISION="6"
SOURCE_URI="http://ftp.gnu.org/gnu/which/which-$portVersion.tar.gz"
CHECKSUM_SHA256="f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad"
PATCHES="which-$portVersion.patch"

ARCHITECTURES="all"

PROVIDES="
	which = $portVersion
	cmd:which = $portVersion
	"
REQUIRES="
	haiku
	"

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

defineDebugInfoPackage which \
	$binDir/which

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

INSTALL()
{
	make install
}
