SUMMARY="A screensaver with ducks"
DESCRIPTION="DuckSaver is a screen saver which transforms your screen into a \
duck pool."
HOMEPAGE="http://maybe.de/software/ducksaver"
COPYRIGHT="2002-2008, Werner Freytag, 2009-2014 Haiku, Inc."
LICENSE="MIT"
REVISION="3"
srcGitRev="4859bfaf74d3d42883e03c85ef02a2ef03569a19"
SOURCE_URI="https://github.com/jscipione/DuckSaver/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="b8a3b710a7ae731c72728a32b9cfa964ad2001c93379feb8c5086043345e1ed5"
SOURCE_FILENAME="DuckSaver-$srcGitRev.tar.gz"
SOURCE_DIR="DuckSaver-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	ducksaver = $portVersion
	addon:DuckSaver = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make
}

INSTALL()
{
	mkdir -p $addOnsDir/Screen\ Savers
	make install INSTALL_DIR=temp
	mv temp/DuckSaver $addOnsDir/Screen\ Savers
}
