SUMMARY="Keeps track of the time you spend on your various projects"
DESCRIPTION="TimeTracker lets you create tasks for your various projects and \
shows them in a list. Via double-click on an entry you start/stop the timer \
on that task, thus helping you keep track of how much time you spend doing \
what."
HOMEPAGE="https://github.com/HaikuArchives/TimeTracker"
COPYRIGHT="200? Michael Wulff Nielsen
	2016 Humdinger
	2020 The HaikuArchives Team"
LICENSE="GNU GPL v1"
REVISION="4"
srcGitRev="4f890015364ec5d7d58a61dde918973c17e9da30"
SOURCE_URI="https://github.com/HaikuArchives/TimeTracker/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="8f46984bbfba7b67ec7ababd1d53cd6f1a07197d0917ba87118b57fa42653f32"
SOURCE_DIR="TimeTracker-$srcGitRev"

ARCHITECTURES="all ?x86"

USER_SETTINGS_FILES="settings/TimeTracker
	settings/TimeTrackerTasks"

PROVIDES="
	timetracker = $portVersion
	app:TimeTracker = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

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

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