SUMMARY="A filemanager for Haiku"
DESCRIPTION="Classic Norton Commander look with modern multithreading inside."
HOMEPAGE="https://github.com/HaikuArchives/BeFar"
SOURCE_URI="git://github.com/HaikuArchives/BeFar#2897e9658c"
COPYRIGHT="1999-2001 Bazarov Max"
LICENSE="Public Domain"
REVISION="3"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	befar = $portVersion
	app:BeFAR = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel
	cmd:gcc$secondaryArchSuffix
	cmd:make
	makefile_engine
	"
SOURCE_DIR="$portVersionedName/source"

BUILD()
{
	make $jobArgs OBJ_DIR=objects
	make $jobArgs OBJ_DIR=objects bindcatalogs
}

INSTALL()
{
	mkdir -p $appsDir
	cp objects/BeFAR $appsDir
	addAppDeskbarSymlink $appsDir/BeFAR
}
