SUMMARY="A game like Tic-Tac-Toe"
DESCRIPTION="This game is similar to Tic-Tac-Toe.
However, instead of using Xs and Os, you use different egg forms. \
What's more, you can actually change a square with something else. \
The first one to get three-in-a-row with the same egg form wins."
HOMEPAGE="https://github.com/HaikuArchives/EggChess/"
COPYRIGHT="1999-2000 Anders Lindström"
LICENSE="GNU GPL v2"
REVISION="3"
SOURCE_URI="https://codeload.github.com/HaikuArchives/EggChess/zip/feature"
CHECKSUM_SHA256="d195ded635827b4987f2af2142f7fbc97efdde8f22c4cdc80eaac7b5c36497d4"
SOURCE_DIR="EggChess-feature"

ARCHITECTURES="x86 x86_gcc2"

PROVIDES="
	eggchess = $portVersion
	app:eggchess= $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_mixer_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL_1.2
	devel:libSDL_mixer_1.2
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cd src
	mkdir -p objects
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/EggChess
	cd $sourceDir
	cp eggchess.x86 $appsDir/EggChess
	cp -r gfx docs $appsDir/EggChess
	addAppDeskbarSymlink $appsDir/EggChess/eggchess.x86 EggChess
}
