SUMMARY="An imprecise clock"
DESCRIPTION="WordClock is an imprecise clock that displays the time in words \
instead of digits. You can change the used font and embed the clock as a \
Replicant on the Desktop."
HOMEPAGE="https://github.com/Janus2/WordClock"
COPYRIGHT="2017 Janus"
LICENSE="MIT"
REVISION="1"
srcGitRev="cbb5da9a498ec99a71a68f039042601207eafdd1"
SOURCE_URI="https://github.com/Janus2/WordClock/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="fe29a3f17467927f88052d9c260b894d8424cf175b633aa2ad22deea2b25abba"
SOURCE_FILENAME="WordClock-$srcGitRev.tar.gz"
SOURCE_DIR="WordClock-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	wordclock = $portVersion
	app:WordClock = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs
	make bindcatalogs
}

INSTALL()
{
	mkdir -p $appsDir
	make install TARGET_DIR=$appsDir

	addAppDeskbarSymlink $appsDir/WordClock
}
