SUMMARY="A small calendar application with reminders."
DESCRIPTION="
A small calendar application with reminders. You can use this app to organize \
your time. The application supports the addition to each day tasks with the \
appropriate hours and browse all of them. Your job will be saved to a file \
when the application is closed.
"
HOMEPAGE="https://github.com/HaikuArchives/A-Book"
SRC_URI="git+https://github.com/HaikuArchives/A-Book.git#fe6c66c631"
REVISION="2"

COPYRIGHT="2002 Maurice Michalski"

LICENSE="MIT"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	a_book = $portVersion
	app:a_book = $portVersion
	"

REQUIRES="
	haiku >= $haikuVersion
	"

BUILD_REQUIRES="
	haiku_devel >= $haikuVersion
	"

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

PATCHES="a_book-1.1.patchset"

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

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