SUMMARY="A native calendar application"
DESCRIPTION="Features:
* Create, modify and delete events.
* Generate notifications for events.
* Day Calendar view.
* Event categorization.
* Set 'All day' long events.
* Fetching events from Google Calendar using Google Calendar API.
* SQLite backend for storing events.
* Setting preferences like 'First day of week', 'Display week number in \
Calendar'.
* App localization: DateTime strings are localised and updates with locale \
preferences change but GUI string still needs to be localized."
HOMEPAGE="https://github.com/HaikuArchives/Calendar"
COPYRIGHT="2017 Akshay Agarwal
	2017-2021 HaikuArchives Team"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="$HOMEPAGE/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="c3d42cbd4554dda4e65cd5d8bb234ccfa2659cf5405046049d8528d3f86165ee"
SOURCE_DIR="Calendar-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	calendar = $portVersion
	app:Calendar = $portVersion
	"
REQUIRES="
	haiku
	lib:libsqlite3
	"

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

BUILD()
{
	make OBJ_DIR=objects $jobArgs
	make OBJ_DIR=objects bindcatalogs
}

INSTALL()
{
	mkdir -p "$appsDir"

	cp objects/Calendar $appsDir

	addAppDeskbarSymlink "$appsDir"/Calendar
}
