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"
COPYRIGHT="
	2013 Tri-Edge AI
	2015 Josef Gajdusek
	"
LICENSE="MIT"
REVISION="5"
srcGitRev="702046e61588c953e759f7792930c5acc258359a"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="f532980a4f507375a982c2efcc09118e5a8cfedb9fd0775563ed236c2a70304f"
SOURCE_DIR="Minesweeper-$srcGitRev"

ARCHITECTURES="all"

USER_SETTINGS_FILES="settings/Minesweeper_settings"

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

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

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

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