SUMMARY="A traditional two pane filemanager"
DESCRIPTION="Genesis Commander is a full featured file manager in the \
tradition of the Norton Commander for DOS or the GNU Midnight Commander."
HOMEPAGE="https://github.com/HaikuArchives/GenesisCommander"
COPYRIGHT="2002-2004 Zsolt Prievara
	2019-2020 Ondrej Čerman"
LICENSE="MIT"
REVISION="1"
srcGitRev="6410259673d7051137b5c93ac5525c93d5f41039"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="a00f62046f145351bd477bc1048a8051e13375f92e5e6d32ea2cd426c857b4f3"
SOURCE_DIR="GenesisCommander-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	genesis_commander = $portVersion
	app:GenesisCommander = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp src/objects/GenesisCommander $appsDir
	addAppDeskbarSymlink $appsDir/GenesisCommander "Genesis Commander"
}
