SUMMARY="Free and portable clone of the ARJ archiver"
DESCRIPTION="A portable version of the ARJ archiver, available for \
a growing number of DOS-like and UNIX-like platforms on a variety o\
f architectures."
HOMEPAGE="http://arj.sourceforge.net/"
COPYRIGHT="1998-2019 ARJ Software"
LICENSE="GNU GPL v2"
REVISION="2"
SOURCE_URI="https://sourceforge.net/projects/arj/files/arj/2.78_3.10%20build%2022/arj-$portVersion.tar.gz"
CHECKSUM_SHA256="589e4c9bccc8669e7b6d8d6fcd64e01f6a2c21fe10aad56a83304ecc3b96a7db"
PATCHES="arj-$portVersion.patchset"

ARCHITECTURES="all"

PROVIDES="
	$portName = $portVersion
	cmd:arj = $portVersion
	cmd:arj_register = $portVersion
	cmd:arjdisp = $portVersion
	cmd:rearj = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:ld
	cmd:make
	cmd:autoconf
	cmd:libtoolize
	"

BUILD()
{
	cd gnu

	libtoolize --force --copy --install
	autoconf -f

	runConfigure ./configure

	cd ..
	make
}

INSTALL()
{
	make install
}
