SUMMARY="Data package for Colobot (Colonize with Bots)"
DESCRIPTION="Colobot: Gold Edition is a real-time strategy game, where you can \
program your units (bots) in a language called CBOT, which is similar to C++ and \
Java. Your mission is to find a new planet to live and survive. You can save the \
humanity and get programming skills!"
HOMEPAGE="https://colobot.info/"
COPYRIGHT="Epsitec and TerranovaTeam"
LICENSE="GNU GPL v3"
REVISION="2"
SOURCE_URI="https://github.com/colobot/colobot-data/archive/colobot-gold-$portVersion-alpha.zip"
CHECKSUM_SHA256="524bad3e1e87a61bfda746b62f4fdfb49f76d0f83bc8f2194e3f6d76f82bdb5e"
SOURCE_DIR="colobot-data-colobot-gold-$portVersion-alpha"

ARCHITECTURES="any"

PROVIDES="
	colobot_data = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	cmd:cmake
	cmd:gcc
	cmd:make
	cmd:python2
	cmd:unzip
	cmd:wget
	"

BUILD()
{
	mkdir -p build
	cd build
	cmake .. \
		-DCOLOBOT_INSTALL_DATA_DIR=$dataDir/Colobot \
		-DMUSIC=ON
	make $jobArgs
}

INSTALL()
{
	cd build
	make install
}
