SUMMARY="A little arcade puzzle game"
DESCRIPTION="Monsterz is a little arcade puzzle game, similar to the famous \
Bejeweled or Zookeepe. The goal of the game is to create rows of similar \
monsters, either horizontally or vertically. The only allowed move is the swap \
of two adjacent monsters, on the condition that it creates a row of three or \
more. When alignments are cleared, pieces fall from the top of the screen to \
fill the board again. Chain reactions earn you even more points."
HOMEPAGE="http://sam.zoy.org/monsterz/"
COPYRIGHT="2007 Sam Hocevar, Brendan Rackley, MenTaLguY, Sun Microsystems\
Michael Speck, David White Mike Kershaw"
LICENSE="WTFPL v2
	GNU GPL v1
	GNU LGPL v2"
REVISION="1"
SOURCE_URI="http://sam.zoy.org/monsterz/monsterz-$portVersion.tar.gz"
CHECKSUM_SHA256="50828b8fa26d107bcc2bd134328f83c905b9f5e124846bdf239daf0eed34973d"
PATCHES="monsterz-$portVersion.patchset"

ARCHITECTURES="?all x86_gcc2"

GLOBAL_WRITABLE_FILES="settings/monsterz keep-old"

PROVIDES="
	monsterz = $portVersion
	cmd:monsterz = $portVersion
	"
REQUIRES="
	haiku
	pygame
	"

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

BUILD()
{
	make PREFIX=$prefix gamesdir=$binDir \
	datadir=$dataDir scoredir=$settingsDir $jobArgs
}

INSTALL()
{
	make PREFIX=$prefix gamesdir=$binDir \
	datadir=$dataDir scoredir=$settingsDir install
}
