SUMMARY="A file manager for Haiku."
DESCRIPTION="
BAfx is a file manager for Haiku.
"
HOMEPAGE="https://github.com/marbocub/BAfx"
SRC_URI="git+https://github.com/marbocub/BAfx#4b14a8ba4c"
COPYRIGHT="2012 @marbocub"
LICENSE="MIT"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 ?x86_64"

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

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	cmd:mkdepend
	"

PATCHES="bafx-0.0.1.patchset"

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

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