SUMMARY="A small todo list manager"
DESCRIPTION="Plan your projects in a list of priorities."
HOMEPAGE="https://github.com/computerfr33k/To-Do-List-Manager"
COPYRIGHT="2015 computerfr33k"
LICENSE="GNU LGPL v3"
REVISION="1"
SOURCE_URI="https://github.com/computerfr33k/To-Do-List-Manager/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="9c29222d418a0d7316f0c93539d138a5fb75ba161fcf440127e7790b371ebe33"
SOURCE_FILENAME="ToDoListManager-$portVersion.tar.gz"
SOURCE_DIR="To-Do-List-Manager-$portVersion"

ARCHITECTURES="?all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	todolistmanager$secondaryArchSuffix = $portVersion
	app:ToDoListManager
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libGL$secondaryArchSuffix
	lib:libQt5Core$secondaryArchSuffix
	lib:libQt5Gui$secondaryArchSuffix
	lib:libQt5Network$secondaryArchSuffix
	lib:libQt5Sql$secondaryArchSuffix
	lib:libQt5Widgets$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libQt5Core$secondaryArchSuffix
	devel:libQt5Gui$secondaryArchSuffix
	devel:libQt5Network$secondaryArchSuffix
	devel:libQt5Sql$secondaryArchSuffix
	devel:libQt5Widgets$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:doxygen
	cmd:g++$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	cmd:pkg_config$secondaryArchSuffix
	cmd:qmake$secondaryArchSuffix >= 5
	"

BUILD()
{
	qmake .
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir
	cp "To-Do-List-Manager" $appsDir
	addAppDeskbarSymlink $appsDir/"To-Do-List-Manager"
}
