SUMMARY="A maddeningly-addictive puzzle game"
DESCRIPTION="A maddeningly-addictive puzzle game. The concept is simple: put \
the tiles in the grid on the left such that the numbers match wherever two \
tiles touch."
HOMEPAGE="https://github.com/HaikuArchives/BeVexed"
COPYRIGHT="2006 DarkWyrm"
LICENSE="MIT"
REVISION="5"
srcGitRev="a84f17dfbad4a0f9771e7ec54f6cec57ffb6878f"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="fb419351f9ed102390cf921eeed7b91a9ecd0049d87c095c1c0886e8807be340"
SOURCE_DIR="BeVexed-$srcGitRev"

ARCHITECTURES="all ?x86"

USER_SETTINGS_FILES="
	settings/BeVexed
	"

PROVIDES="
	BeVexed = $portVersion
	app:BeVexed = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	cd source
	make OBJ_DIR=objects \
		 BUILDHOME=`finddir B_SYSTEM_DEVELOP_DIRECTORY`
}

INSTALL()
{
	mkdir -p $appsDir
	mkdir -p $dataDir/BeVexed

	cp -r backgrounds $dataDir/BeVexed

	cp -a source/objects/BeVexed $appsDir
	addAppDeskbarSymlink $appsDir/BeVexed
}
