SUMMARY="Manage all your finances with this easy-to-use app!"
DESCRIPTION="
Finance is an app made to provide all features expected from personal finance \
software while using the style of Haiku. It can be used to balance multiple \
accounts and you can import Quicken or Money data, reconcile statements, view \
spending categorization and net worth trends, all with customizable categories \
and payees.
"
HOMEPAGE="https://github.com/HaikuArchives/Finance"
COPYRIGHT="
	2001 Bunru Software
	2009 Pier Luigi Fiorini
	"
LICENSE="GNU GPL v2"
REVISION="4"
srcGitRev="60debd1ff12e3abdb856b14fca4b71d30bfa8555"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="c7c854f4a3153e7d4bf10a9ab5ada24cd8dd8a2fe7766c9083dee8b3f706dbd2"
SOURCE_DIR="Finance-$srcGitRev"

ARCHITECTURES="all"

USER_SETTINGS_FILES="
	settings/BeFinancial_data
	"

PROVIDES="
	finance = $portVersion
	app:Finance = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:awk
	cmd:gcc
	cmd:jam
	cmd:xres
	"

BUILD()
{
	runConfigure ./configure
	jam -q $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp generated/distro-haiku-*-release/Finance $appsDir
	addAppDeskbarSymlink $appsDir/Finance
}
