SUMMARY="A screensaver showing a binary clock"
DESCRIPTION="Based on BinaryClock by David Enderson. DigiClock uses filled \
rectangles and random colors."
HOMEPAGE="http://www.fatelk.com/"
COPYRIGHT="2012 Jim Saxton, Fat Elk Software"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://github.com/bbjimmy/DigiClock/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="dc9c35ace8964976c5a47f94eb3b581288cc412477e45ca923194b196dcf59d8"
SOURCE_DIR="DigiClock-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	digiclock = $portVersion
	app:digiclock = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd source
	make $jobArgs BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $addOnsDir/Screen\ Savers
	cd source/objects*
	cp DigiClock $addOnsDir/Screen\ Savers/DigiClock
	mkdir -p $dataDir/FatElk
	cd ..
	unzip -o fatelk
	cp "FAT ELK" $dataDir/FatElk/
	cp "Fat Elk" $dataDir/FatElk/
}
