SUMMARY="DigiClock Screensaver"
DESCRIPTION="Based on BinaryClock by David Enderson. DigiClock uses filled rectangles and random colors."

HOMEPAGE="https://github.com/bbjimmy/DigiClock"
SRC_URI="git+https://github.com/bbjimmy/DigiClock.git#7c49eb1ec29b1eb1046f9d7911646e2d5f5e6def"

LICENSE="GNU GPL v2"
COPYRIGHT="2012 Jim Saxton, Fat Elk Software"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
app:digiclock = $portVersion"

REVISION="1"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion"

BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	makefile_engine"

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/
}
