SUMMARY="A volley-ball game"
DESCRIPTION="Slime volley is a Volley ball simulation. You control a slime \
(a semicircular blob) on which the ball bounces. Up to 6 players can play \
Slime Volley, locally or through the network. An AI is also available if you \
want to play alone.
"
LICENSE="GNU GPL v3"
ARCHITECTURES="x86_gcc2"
REVISION="1"
COPYRIGHT="2008-2014 VinDuv, McMic"
HOMEPAGE="http://slime.tuxfamily.org/"
SOURCE_URI="http://slime.tuxfamily.org/down.php?id=1&os=src"
SOURCE_FILENAME="slimevolley-$portVersion.tar.bz2"
CHECKSUM_SHA256="be8f461c6f1188ba709b1fbcbe64edffca4b8eb358bd2ed8825f8ebf30e660d3"
SOURCE_DIR="slimevolley"

PROVIDES="
	slime_voley = $portVersion
	cmd:slimevolley
	"
REQUIRES="
	haiku
	lib:libintl
	lib:libsdl
	lib:libsdl_image
	lib:libsdl_ttf
	"
BUILD_REQUIRES="
	devel:libintl
	devel:libsdl
	devel:libsdl_image
	devel:libsdl_net
	devel:libsdl_ttf
	"
BUILD_PREREQUIRES="
	haiku_devel
	cmd:cmake
	cmd:gcc
	cmd:make
	"

BUILD()
{
	cmake . -DCMAKE_INSTALL_PREFIX=$prefix -DI10N_DIR=$dataDir/locale -DDATA_DIR=$dataDir/games/slimevolley
	make $jobArgs
}

INSTALL()
{
	make install

	mkdir -p $dataDir
	mv $prefix/share/locale $dataDir
	rm -r $prefix/share

	mkdir $appsDir
	cp slimevolley $appsDir

	addAppDeskbarSymlink $binDir/slimevolley "Slime Volley"
}
