SUMMARY="Deskbar is watching you!"
DESCRIPTION="DeskbarEyes is a Desktop applet that puts a pair of eyes in your deskbar that follow your cursor."
HOMEPAGE="https://github.com/HaikuArchives/DeskbarEyes"
COPYRIGHT="2005 Peter Stegemann, Richard & Mark Erben"
LICENSE="deskbareyes"
REVISION="2"
SOURCE_URI="https://github.com/HaikuArchives/DeskbarEyes/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="1aa2fe658602a3b9e3935c2b0b64eae733e54f76fc907c2530a8797efa428141"
SOURCE_FILENAME="DeskbarEyes-$portVersion.tar.gz"
SOURCE_DIR="DeskbarEyes-$portVersion"

ARCHITECTURES="all"

PROVIDES="
	deskbareyes = $portVersion
	app:DeskbarEyes = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:g++
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/DeskbarEyes/Images
	cp Images/* $appsDir/DeskbarEyes/Images
	cp DeskbarEyes $appsDir/DeskbarEyes
	mimeset -f $appsDir/DeskbarEyes/DeskbarEyes

	# Add a symlink to the Desktop applets directory in Deskbar
	desktopAppletsDir="$dataDir/deskbar/menu/Desktop applets"
	mkdir -p "$desktopAppletsDir"
	ln -s $appsDir/DeskbarEyes/DeskbarEyes "$desktopAppletsDir"
}
