SUMMARY="A Windows Minesweeper clone"
DESCRIPTION="Minesweeper is a clone of the original Windows minesweeper game. \
It supports different board sizes and best time saving."
HOMEPAGE="https://github.com/HaikuArchives/Minesweeper"
SOURCE_URI="git+https://github.com/HaikuArchives/Minesweeper#702046e61588c953e759f7792930c5acc258359a"
REVISION="3"
LICENSE="MIT"
COPYRIGHT="
	2013 Tri-Edge AI
	2015 Josef Gajdusek
	"

ARCHITECTURES="x86_gcc2 x86 x86_64"

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

USER_SETTINGS_FILES="settings/Minesweeper_settings"

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

INSTALL()
{
	mkdir -p $appsDir
	cp -a src/objects/Minesweeper $appsDir
	addAppDeskbarSymlink $appsDir/Minesweeper
}
