SUMMARY="DigiClock Screensaver"
DESCRIPTION="Based on BinaryClock by David Enderson. DigiClock uses filled rectangles and\
 random colors."
HOMEPAGE="http://www.fatelk.com"
SOURCE_URI="https://github.com/bbjimmy/DigiClock/archive/1.0.tar.gz"
CHECKSUM_SHA512="24ab1ed06a4b13d63fbca87708a9e98b53b5737d12fee22663549132e6434b61e789326231e0168447f46f609eb4a296497f98418db41874cc712756f118daa8"
SOURCE_DIR="DigiClock-1.0"

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

REVISION="2"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

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

REQUIRES="
	haiku"

BUILD_REQUIRES="
	haiku_devel"

BUILD_PREREQUIRES="
	cmd:gcc
	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/
}
