SUMMARY="A file manager for Haiku"
DESCRIPTION="BAfx is a file manager for BeOS/Haiku. It uses a single window \
with two panes for source and destination folder. \
The file manager is still in early stages of development. \
A built-in text and image viewer are planned for future releases."
HOMEPAGE="https://github.com/marbocub/BAfx"
SOURCE_URI="git+https://github.com/marbocub/BAfx#ebd3db8a22"
COPYRIGHT="2012 @marbocub"
LICENSE="MIT"
REVISION="1"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	bafx = $portVersion
	app:BAfx = $portVersion
	"

BUILD_REQUIRES="
	haiku_devel
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make OBJ_DIR=objects \
		BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

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