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"
SOURCE_URI="git+https://github.com/HaikuArchives/BeVexed#01613e90e6ce3c2b47a592efe8e248db3445f536"
REVISION="2"

LICENSE="MIT"
COPYRIGHT="2006 DarkWyrm"

ARCHITECTURES="x86_gcc2 ?x86 ?x86_64"

PROVIDES="
	BeVexed = $portVersion
	app:BeVexed = $portVersion
	"
REQUIRES="
	haiku
	"
BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:gcc
	cmd:make
	"

USER_SETTINGS_FILES="
	settings/BeVexed
	"

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
}
