SUMMARY="A tile puzzle game for Haiku"
DESCRIPTION="HexVexed is a maddening addictive and easy to play puzzle game. \
Arrange hexagonal tiles into a grid so that the numbers and colors match \
where they touch. This game is a variation based on DarkWyrm's BeVexed, but instead \
of squares, the tiles are hexagon shaped. It's 1.5x the fun!"
HOMEPAGE="https://bitbucket.org/scottmc/hexvexed"
COPYRIGHT="2009-2017 Scott McCreary"
LICENSE="MIT"
REVISION="5"
SOURCE_URI="https://github.com/HaikuArchives/HexVexed/archive/1.0.0-Beta4.tar.gz"
CHECKSUM_SHA256="8bf7a1b5acdba7e8998677a1015cfa1f6447e0be109c0c5d3f24df5b35959e26"
SOURCE_FILENAME="hexvexed-1.0.0-beta4.tar.gz"
SOURCE_DIR="HexVexed-1.0.0-Beta4"

ARCHITECTURES="all"

PROVIDES="
	hexvexed = $portVersion
	app:HexVexed = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make $jobArgs OBJ_DIR=objects
	make $jobArgs OBJ_DIR=objects bindcatalogs
}

INSTALL()
{
	install -d -m 755 $appsDir $dataDir/hexvexed/backgrounds
	cp backgrounds/*.png $dataDir/hexvexed/backgrounds
	install -t $appsDir objects/HexVexed
	addAppDeskbarSymlink $appsDir/HexVexed
}
