SUMMARY="A two-panel filemanager"
DESCRIPTION="A classic Norton Commander look with modern multithreading \
inside."
HOMEPAGE="https://github.com/HaikuArchives/BeFar"
COPYRIGHT="1999-2001 Bazarov Max"
LICENSE="Public Domain"
REVISION="6"
srcGitRev="d57b8a126e45ddff0e683d4b8e0f2284cc81998c"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="54c11af8b1ec066b170ed1bf823c37800965153e4054903feaba2150aa420385"
SOURCE_DIR="BeFAR-$srcGitRev/source"

ARCHITECTURES="all"

PROVIDES="
	befar = $portVersion
	app:BeFAR = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

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

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