SUMMARY="Heart of Alien Redux"
DESCRIPTION="Heart of The Alien is the sequel for the undoubtably \
the bestadventure of all times, 'Another World', developed back \
in 1994 by Interplay exclusively for the Sega CD console.

This is an open-source project which aims to bring this \
highly-addictive game to all modern consoles and computer platforms."
HOMEPAGE="http://hota.sourceforge.net/"
COPYRIGHT="2004 Gil Megidish"
LICENSE="GNU GPL v2"
REVISION="2"
srcGitRev="8f1f525fcf50c4610302e870c85625c8ea2f33eb"
SOURCE_URI="https://github.com/ytmytm/beos-heartofthealien/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="1f5d382c283a94a2c743746d7d3340671dfd965c4394fe66a86fcccab759dfb2"
SOURCE_FILENAME="heartofthealien-$portVersion~$srcGitRev.tar.gz"
SOURCE_DIR="beos-heartofthealien-$srcGitRev"

ARCHITECTURES="?all x86_gcc2"

PROVIDES="
	heartofthealien = $portVersion
	cmd:heartofthealien = $portVersion
	"
REQUIRES="
	haiku
	lib:libSDL_1.2
	lib:libSDL_mixer_1.2
	lib:libsmpeg
	"

BUILD_REQUIRES="
	haiku_devel
	devel:libSDL
	devel:libSDL_mixer
	devel:libsmpeg
	"
BUILD_PREREQUIRES="
	cmd:gcc
	cmd:make
	cmd:touch
	"

BUILD()
{
	make -C src
}

INSTALL()
{
	install -d $appsDir/heartofthealien $docDir
	install -t $appsDir/heartofthealien src/alien
	install -t $appsDir/heartofthealien "Heart Of The Alien (U)".*
	install -t $appsDir/heartofthealien rungame.sh
	install -t $docDir doc/*
	addAppDeskbarSymlink $appsDir/heartofthealien/rungame.sh "Heart of the Alien"
}
