SUMMARY="A finance manager"
DESCRIPTION="
Capital Be is a finance manager for Haiku. Easily track where your money is \
going. View reports, reconcile accounts and more! Like other programs \
published by the same author, Capital Be focuses on keeping easy jobs easy and \
making tough ones easier.
"
HOMEPAGE="http://github.com/HaikuArchives/CapitalBe"
SRC_URI="git://github.com/HaikuArchives/CapitalBe.git#eb8d7f92bbaa1594dddeb07c64f90442de106a3e"
REVISION="1"
LICENSE="MIT"
COPYRIGHT="2009 DarkWyrm"
ARCHITECTURES="?x86 x86_gcc2 ?ppc"
PROVIDES="
	capitalbe = $portVersion
	app:capitalbe = $portVersion
	"
REQUIRES="
	haiku >= $haikuVersion
	"
BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	devel:libsqlite3
	"
BUILD_PREREQUIRES="
	cmd:gcc
	"
	
BUILD()
{
	g++ -lbe -ltracker -ltranslation -lsqlite3 src/*.cpp -o capitalbe
	rc -o capitalbe.rsrc src/capitalbe.rdef
	xres -o capitalbe capitalbe.rsrc
	mimeset -f capitalbe
}

INSTALL()
{
	mkdir -p $appsDir/capitalbe
	mkdir -p $appsDir/capitalbe/helpfiles
	cp -r src/helpfiles/* $appsDir/capitalbe/helpfiles/
	mv capitalbe $appsDir/capitalbe/capitalbe
	addAppDeskbarSymlink $appsDir/capitalbe/capitalbe "Capital Be"
}
