SUMMARY="The GNU Bourne Again Shell"
DESCRIPTION="
Bash is an sh-compatible command language interpreter that \
executes commands read from the standard input or from a file. Bash also \
incorporates useful features from the Korn and C shells (ksh and csh).
"
HOMEPAGE="http://tiswww.case.edu/php/chet/bash/bashtop.html"
SRC_URI="ftp://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"
CHECKSUM_SHA256="afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4"
REVISION="1"
LICENSE="GNU GPL v3"
COPYRIGHT="1989, Brian Fox; 2010, Chet Ramey"

ARCHITECTURES="?x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	bash = $portVersion
	cmd:bash = $portVersion
	cmd:bashbug = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	lib:libreadline
	lib:libncursesw
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libreadline
	devel:libncursesw
	cmd:gcc
	cmd:bison
	cmd:make
	cmd:awk
	"


#PATCHES="
#	"

BUILD()
{
	runConfigure ./configure --without-bash-malloc --with-installed-readline
	make $jobArgs
}

INSTALL()
{
	make install
}
