SUMMARY="A simple checkers game for two players"
DESCRIPTION="
BeCheckers is a simple checkers game for two players. It follows almost all \
American Checker Federation (ACF) rules.
"
HOMEPAGE="https://github.com/HaikuArchives/BeCheckers"
SOURCE_URI="git://github.com/HaikuArchives/BeCheckers.git#d4fbfc69656ba5861184d37f7932b9a53ff28373"
LICENSE="MIT"
COPYRIGHT="2000 Jeremy J. Gibbons"
REVISION="2"
ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	BeCheckers = $portVersion
	app:BeCheckers = $portVersion
	"

REQUIRES="
	haiku
	"

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

BUILD()
{
	g++ -o BeCheckers -lbe \
		BeCheckers.cpp BeCheckersWindow.cpp \
		Checker.cpp CheckerBoard.cpp
}

INSTALL()
{
	mkdir -p $appsDir
	cp BeCheckers $appsDir
	addAppDeskbarSymlink $appsDir/BeCheckers
}
