SUMMARY="A cute mascot on the active window"
DESCRIPTION="Moe is a program that displays a cute mascot on the active window.
You can have your own 'window sitter' by drag and dropping an image (best \
a transparancy preserving PNG) onto the Moe binary. Do read the \
accompanying documentation to learn about all options and how to set up \
animated mascots."
HOMEPAGE="https://github.com/HaikuArchives/moe"
COPYRIGHT="2001 Okada Jun"
LICENSE="GNU GPL v2"
REVISION="6"
srcGitRev="b9c6388fcaae999912b8e95d228ce0b948983867"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="d942e65f4ecf08bf011d2928457f8cb0c8221b4af64c996bd042d8f36c94fc31"
SOURCE_DIR="Moe-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	moe = $portVersion
	app:Moe = $portVersion
	cmd:moe = $portVersion
	"
REQUIRES="
	haiku
	lib:libz
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libz
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:ld
	cmd:make
	"

BUILD()
{
	cd sample
	./add_attributes.sh

	cd ../source
	make OBJ_DIR=objects $jobArgs
	make OBJ_DIR=objects bindcatalogs
}

INSTALL()
{
	mkdir -p $appsDir/Moe $binDir

	cp -a source/objects/Moe $appsDir/Moe
	cp -a sample/moe.png documentation $appsDir/Moe

	ln -sfn $appsDir/Moe/Moe $binDir/moe
}
