SUMMARY="Create and extract files from DOS .ARC files"
DESCRIPTION="This archiver let's you create and extract files in the old DOS \
.ARC format."
HOMEPAGE="https://github.com/ani6al/arc/"
COPYRIGHT="1985-2009 Thom Henderson"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="bde44648d0c451852612da2256f5a7e48b97d0d625ba88b903d7f223959528cc"
PATCHES="arc-$portVersion.patchset"

ARCHITECTURES="all ?x86_gcc2"

PROVIDES="
	arc = $portVersion
	cmd:arc = $portVersion
	cmd:marc = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	cmd:gcc
	cmd:make
	"
BUILD_PREREQUIRES="
	haiku_devel
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $binDir
	cp -af arc marc $binDir
	mkdir -p $manDir/man1
	cp -af arc.1 marc.1 $manDir/man1
}
