SUMMARY="An SDL clone of Lode Runner"
HOMEPAGE="http://sourceforge.net/projects/sdlscavenger/files/"
LICENSE="GNU GPL v2"
COPYRIGHT="1999-2010 Dave Ashley"
SRC_URI="http://www.mirrorservice.org/sites/downloads.sourceforge.net/s/sd/sdlscavenger/sdlscav-145.1_2010_11_5.tgz"
CHECKSUM_SHA256="c63666c0783d05b24895065781608994c43e4b359605be6806845b46f093d016"
REVISION="1"
ARCHITECTURES="x86_gcc2"

PROVIDES="
	sdlscavenger = $portVersion
	app:sdlscavenger = $portVersion
	"

REQUIRES="
	haiku$secondaryArchSuffix >= $haikuVersion
	lib:libsdl$secondaryArchSuffix
	"
BUILD_REQUIRES="
	devel:libsdl$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	haiku${secondaryArchSuffix}_devel >= $haikuVersion
	haiku_devel >= $haikuVersion
	cmd:gcc$secondaryArchSuffix
	cmd:ld$secondaryArchSuffix
	cmd:make
	"

SOURCE_DIR="sdlscav-145"
PATCHES="sdlscavenger-145.1.patchset"
BUILD()
{
	make $jobArgs
}

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

# ----- DESCRIPTION -----------------------------------------------------------

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!
"
