SUMMARY="An autoconf replacement"
DESCRIPTION="ACR tries to replace autoconf functionality generating a \
full-compatible 'configure' script (runtime flags). But using shell-script \
instead of m4. This means that ACR is faster, smaller and easy to use."
HOMEPAGE="https://github.com/radare/acr"
COPYRIGHT="2005-2019 pancake"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/radare/acr/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="ac4c01cf189c8d7556f3424dfaaed0aab922b1deaac891bafbeef40a18c4226f"

ARCHITECTURES="all ?x86 ?arm"

PROVIDES="
	acr = $portVersion
	cmd:acr = $portVersion
	cmd:acr_cat = $portVersion
	cmd:acr_install = $portVersion
	cmd:acr_sh = $portVersion
	cmd:amr = $portVersion
	"
REQUIRES="
	haiku
	cmd:awk
	cmd:cut
	cmd:diff
	cmd:find
	cmd:getopt
	cmd:perl >= 5
	cmd:sed
	cmd:sh
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:find
	cmd:make
	cmd:sed
	"

TEST_REQUIRES="
	cmd:getopt
	"

BUILD()
{
	runConfigure ./configure
	make $jobArgs
}

INSTALL()
{
	make install
}

TEST()
{
	make test
}
