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"
COPYRIGHT="2000 Jeremy J. Gibbons"
LICENSE="MIT"
REVISION="3"
srcGitRev="496cd544f6bfe29988b08a2edb5d1a84fd62cac4"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="0384e02a0adde89e490d0a0697bd690c5693e4545bd983f8d0f4404ab129092a"
SOURCE_DIR="BeCheckers-$srcGitRev"

ARCHITECTURES="all ?x86"

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
}
