SUMMARY="A pipe connecting game"
DESCRIPTION="Pipepanic is a pipe connecting game using libSDL. Connect as many \
different shaped pipes together as possible within the time given.
"
HOMEPAGE="http://www.users.waitrose.com/~thunor/pipepanic/"
SOURCE_URI="http://www.users.waitrose.com/~thunor/pipepanic/dload/pipepanic-0.1.3-source.tar.gz"
CHECKSUM_SHA256="4b02249c92228b03f4cc3c1d999cacf3fe52c16df53c6bf76fc6c1e2caa74318"
SOURCE_DIR="pipepanic-0.1.3-source"
LICENSE="GNU GPL v2"
COPYRIGHT="2005-2013 Thunor"
REVISION="3"
ARCHITECTURES="x86_gcc2 x86"

PROVIDES="
	pipepanic = $portVersion
	app:pipepanic = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libsdl$secondaryArchSuffix
	"
BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libsdl$secondaryArchSuffix
	cmd:xres
	"
BUILD_PREREQUIRES="
	cmd:gcc$secondaryArchSuffix
	cmd:make
	"
USER_SETTINGS_FILES="
	settings/pipepanic
	"
PATCHES="
	pipepanic-0.1.3.patch
	"

BUILD()
{
	make
	rc -o pipepanic.rsrc pipepanic.rdef
	xres -o pipepanic pipepanic.rsrc
}

INSTALL()
{
	mkdir -p $appsDir/Pipepanic
	cp pipepanic $appsDir/Pipepanic/Pipepanic
	cp ascii15.bmp ascii30.bmp digits24.bmp digits48.bmp tiles24.bmp tiles48.bmp $appsDir/Pipepanic/
	addAppDeskbarSymlink $appsDir/Pipepanic/Pipepanic
}
