SUMMARY="A spider solitaire clone for Haiku"
DESCRIPTION="Spider solitaire is a popular version of solitaire, \
where the goal is to stack all the cards of a suit, from king to ace.
When you have stacked as many cards as you can, you can use a \
stock to place a new card on top of every pile."
HOMEPAGE="https://github.com/HaikuArchives/BeSpider/"
COPYRIGHT="2013-17 Przemysław Buczkowski"
LICENSE="MIT"
REVISION="1"
srcGitRev="1b26eac8cf8b3f4fe1c41148d9f443d3188a8193"
SOURCE_URI="https://github.com/HaikuArchives/BeSpider/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="556c3ce7c4ccd93efb2218ee74e2ae033736b6125839a7e95491d88f1876dbc0"
SOURCE_DIR="BeSpider-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	bespider = $portVersion
	app:BeSpider = $portVersion
	"
REQUIRES="
	haiku
	"

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

BUILD()
{
	make
	make bindcatalogs
}

INSTALL()
{
	make install INSTALL_DIR=$appsDir
	addAppDeskbarSymlink $appsDir/BeSpider
}
