SUMMARY="A cute mascot on the active window"
DESCRIPTION="\
Moe is a program that displays a cute mascot on the active window. \
How about mind cooler for your desktop?"
HOMEPAGE="https://github.com/HaikuArchives/moe"
LICENSE="GNU GPL v2"
COPYRIGHT="2001 Okada Jun"
SOURCE_URI="https://github.com/HaikuArchives/Moe/archive/68e18f359d114fbce2b0f4247a43c951becc87bc.tar.gz"
CHECKSUM_SHA256="62aaefdd298e41d865d73ed092251469a0cc63b9ed5c2e1531d0a409513d5f46"
SOURCE_DIR="Moe-68e18f359d114fbce2b0f4247a43c951becc87bc"
REVISION="2"
ARCHITECTURES="x86_gcc2 x86 x86_64"

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
}

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

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

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