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 Przemysław Buczkowski,
	2013 Luke (noryb009)"
LICENSE="MIT"
REVISION="2"
srcGitRev="4fd4f1c4241865f6e6ebd30eaf8c1dd1eaa1ca77"
SOURCE_URI="https://github.com/HaikuArchives/BeSpider/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="8898712b2e75cb90970a26db899fb27fcf3d89d88edb9fc22bc7c54471a0583a"
SOURCE_DIR="BeSpider-$srcGitRev"

ARCHITECTURES="!all x86_gcc2 x86"

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
}
