SUMMARY="Puzzle game with baking and rotations"
DESCRIPTION="Help PiPi the little fairy collect ingredients to prepare sweets
and make everyone happy."
HOMEPAGE="https://github.com/pulkomandy/kaiten-patissier"
COPYRIGHT="2008 Alpha Secret Base"
LICENSE="Yawaraka"
SOURCE_URI="https://github.com/pulkomandy/kaiten-patissier/archive/$portVersion.tar.gz"
CHECKSUM_SHA256="ba464e370a5854cb24ef9724b90e919580f60015a3fd270bce4b460542b3a631"
SOURCE_DIR="kaiten-patissier-$portVersion"
REVISION="1"

ARCHITECTURES="!all ?x86"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	kaiten_patissier$secondaryArchSuffix = $portVersion
	app:kaiten_patissier$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libsdl$secondaryArchSuffix
	lib:libsdl_mixer$secondaryArchSuffix
	lib:libsdl_gfx$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:libsdl$secondaryArchSuffix
	devel:libsdl_mixer$secondaryArchSuffix
	devel:libsdl_gfx$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	cd src
	make $jobArgs -f Makefile.linux
}

INSTALL()
{
	mkdir -p $appsDir/Kaiten\ Patissier

	cp src/RotateGear $appsDir/Kaiten\ Patissier/Kaiten\ Patissier
	cp -r data image sound replay save $appsDir/Kaiten\ Patissier
	addAppDeskbarSymlink $appsDir/Kaiten\ Patissier/Kaiten\ Patissier
}
