SUMMARY="A fun strategy board game"
DESCRIPTION="BeBattle, a 1 or 2 players board strategy game in which you \
attempt to completely destroy your opponent's units."
HOMEPAGE="https://github.com/HaikuArchives/BeBattle/"
COPYRIGHT="1999-2000 Jonathan Villemure"
LICENSE="MIT"
REVISION="3"
srcGitRev="2dc7fba2265971a963ec0d6c72cc5d5e896a41ba"
SOURCE_URI="https://github.com/HaikuArchives/BeBattle/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="0d0da4c9f415ba37c14dba551a8e5ff8abc7ea5c8c7064722aad977bcab42728"
SOURCE_DIR="BeBattle-$srcGitRev"

ARCHITECTURES="all ?x86"

PROVIDES="
	bebattle = $portVersion
	app:BeBattle = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

BUILD()
{
	cd src
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir/BeBattle
	cd src
	cp objects/BeBattle $appsDir/BeBattle
	cp -r bmp $appsDir/BeBattle
	addAppDeskbarSymlink $appsDir/BeBattle/BeBattle
}
