SUMMARY="An organizer to keep track on your appointments, notes and stuff"
DESCRIPTION="
An organizer that helps you keep track on your appointments, notes and stuff.
"
HOMEPAGE="https://github.com/HaikuArchives/Organizer"
COPYRIGHT="2013 Marius Stene"
LICENSE="Public Domain"
REVISION="3"
srcGitRev="32196761f461afba90f240f328f0ffdc790f2af7"
SOURCE_URI="https://github.com/HaikuArchives/Organizer/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="e624273178cdcdf92348f78c985f1154f9d340b89e9255b02b80bff99cb654b0"
SOURCE_DIR="Organizer-$srcGitRev"

ARCHITECTURES="?all x86_gcc2 x86"

USER_SETTINGS_FILES="
	settings/fSub directory"

PROVIDES="
	organizer = $portVersion
	app:Organizer = $portVersion
	lib:libfSub
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	haiku_devel
	makefile_engine
	cmd:gcc
	cmd:make
	devel:libGL
	"

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

INSTALL()
{
	mkdir -p $appsDir
	cp Organizer $appsDir

	cd Source/lib
	mkdir -p $libDir
	cp libfSub.so $libDir

	addAppDeskbarSymlink $appsDir/Organizer
}
