SUMMARY="An advanced \"Hello world!\" program"
DESCRIPTION="The GNU Hello program produces a familiar, friendly greeting. \
Yes, this is another implementation of the classic program that prints \
\"Hello, world!\" when you run it. However, unlike the minimal version often \
seen, GNU Hello processes its argument list to modify its behavior, supports \
greetings in many languages, and so on. \
The primary purpose of GNU Hello is to demonstrate how to write other programs \
that do these things; \
it serves as a model for GNU coding standards and GNU maintainer practices."
HOMEPAGE="https://www.gnu.org/software/hello/"
COPYRIGHT="1992-2014 Free Software Foundation, Inc."
LICENSE="GNU GPL v3"
REVISION="1"
SOURCE_URI="https://ftpmirror.gnu.org/hello/hello-$portVersion.tar.gz
	https://ftp.gnu.org/gnu/hello/hello-$portVersion.tar.gz"
CHECKSUM_SHA256="31e066137a962676e89f69d1b65382de95a7ef7d914b8cb956f41ea72e0f516b"

ARCHITECTURES="all"

PROVIDES="
	hello = $portVersion
	cmd:hello = $portVersion
	"
REQUIRES="
	haiku
	lib:libintl
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libintl
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:help2man
	cmd:make
	"

TEST_REQUIRES="
	cmd:diff
	"

PATCH()
{
	sed -i -e "s/TZ=GMT date/TZ=UTC date/" tests/greeting-2
}

BUILD()
{
	runConfigure ./configure
	make
}

INSTALL()
{
	make install

	rm "$libDir"/charset.alias
}

TEST()
{
	make check
}
