SUMMARY="TextSaver screensaver"
DESCRIPTION="Displays your text at random locations in random colors."
HOMEPAGE="https://github.com/bbjimmy/TextSaver"
SOURCE_URI="https://github.com/bbjimmy/TextSaver/archive/1.0.tar.gz"
CHECKSUM_SHA256="00ecaba878786fce07620946124bdb42ec52e9d1c597cc2a876355229a786747"
SOURCE_DIR="TextSaver-1.0"

LICENSE="MIT"
COPYRIGHT="2002 Marcus Overhagen
 2004-2013 Jim Saxton, FAT ELK SOFTWARE
"

REVISION="1"

ARCHITECTURES="x86_gcc2 x86 ?x86_64"

PROVIDES="
	testsaver = $portVersion
	app:textsaver = $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
	cp TextSaver $addOnsDir/Screen\ Savers/TextSaver
	mkdir -p $dataDir/FatElk
	cd ..
	unzip -o fatelk
	cp "FAT ELK" $dataDir/FatElk/
	cp "Fat Elk" $dataDir/FatElk/
		
}
