SUMMARY="A game about merging bombs of different colors"
DESCRIPTION="Dynamate is a game where you try to remove all colored dots \
from the screen. There are specific rules as to how you can manipulate \
each dot, and what each different colored dot does.

Dynamate is a single-player game with many different levels."
HOMEPAGE="https://github.com/HaikuArchives/Dynamate"
COPYRIGHT="2014 Adrien Destugues
	1995 Jonas Norberg, Signe Norberg and Bjorn Kalzen"
LICENSE="MIT"
REVISION="2"
SOURCE_URI="https://github.com/HaikuArchives/Dynamate/archive/eb56bbc37ba85494ac91229be59cf992414b4449.tar.gz"
CHECKSUM_SHA256="f6bb390ad824ae58e4727b68204e88a02a610289aaccbed9867c41b254a3e794"
SOURCE_DIR="Dynamate-eb56bbc37ba85494ac91229be59cf992414b4449"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	DynaMate = $portVersion
	app:DynaMate = $portVersion
	app:LevelWorld = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/DynaMate
	cp -r DynaMate/DynaMate $appsDir/DynaMate
	cp -r DynaMate/sfx $appsDir/DynaMate
	cp -r DynaMate/docs $appsDir/DynaMate
	cp -r DynaMate/levels-Jonas $appsDir/DynaMate
	cp -r DynaMate/levels-Signe $appsDir/DynaMate
	cp -r DynaMate/levels-Tutorial $appsDir/DynaMate
	cp -r LevelWorld/LevelWorld $appsDir/DynaMate

	addAppDeskbarSymlink $appsDir/DynaMate/DynaMate
	addAppDeskbarSymlink $appsDir/DynaMate/LevelWorld
}
