SUMMARY="An SDL clone of Lode Runner"
DESCRIPTION="
Grab all the diamonds, but don't get caught! Escape or trap ennemies by \
digging holes in the ground, climb ladders and ropes, and, or course, run fast!
"
HOMEPAGE="https://sourceforge.net/projects/sdlscavenger/files/"
COPYRIGHT="1999-2010 Dave Ashley"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://sourceforge.net/projects/sdlscavenger/files/sdlscav-145.4_2015_01_05.tgz"
CHECKSUM_SHA256="28337a4e43756048a6d53994fcdcba6af4c9a68568d734ea774189713c4d67fe"
SOURCE_DIR="sdlscav-145"
PATCHES="sdlscavenger-145.4.patchset"

ARCHITECTURES="all ?x86"

PROVIDES="
	sdlscavenger = $portVersion
	app:SDLScavenger = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	"

BUILD()
{
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/sdlscavenger
	cp sdlscav $appsDir/sdlscavenger
	cp -r data $appsDir/sdlscavenger/data
	addAppDeskbarSymlink $appsDir/sdlscavenger/sdlscav SDLScavenger
}
