SUMMARY="An oldschool Jump'n' Run game"
DESCRIPTION="Hermes is an extraordinary Jump'n' Run game with plenty of \
bad taste humour. If you feel offended by crude and dirty humour you may \
run away now. The game also features pixel violence and promotes the \
consumption of meat. If you are a hardcore vegetarian, you might very much \
dislike the game or just have a good laugh."
HOMEPAGE="http://www.retroguru.com/hermes/"
COPYRIGHT="2017 Retroguru"
LICENSE="HERMES"
REVISION="3"

if [ $effectiveTargetArchitecture = x86 ]; then
SOURCE_URI="http://www.retroguru.com/hermes/hermes-v.latest-haiku-x86.zip"
CHECKSUM_SHA256="9ba2a2407b5504cb83019ab432aa7ed6202332b2212973b3964cb680983f44cb"
SOURCE_FILENAME="retroguru_hermes_haiku_x86-$portVersion-$REVISION.zip"
SOURCE_DIR="retroguru_hermes_haiku_x86"
fi
if [ $effectiveTargetArchitecture = x86_64 ]; then
SOURCE_URI="http://www.retroguru.com/hermes/hermes-v.latest-haiku64-x86.zip"
CHECKSUM_SHA256="0061dcf0e13f060acd745a927b1fed702a0f99266a897b1ed73ad26459526f82"
SOURCE_FILENAME="retroguru_hermes_haiku_x86-$portVersion-$REVISION.zip"
SOURCE_DIR="retroguru_hermes_haiku_x86_64"
fi

ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"

PROVIDES="
	hermes_game$secondaryArchSuffix = $portVersion
	app:hermes = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:libSDL_1.2$secondaryArchSuffix
	lib:libSDL_mixer_1.2$secondaryArchSuffix
	lib:libz$secondaryArchSuffix
	"

BUILD_REQUIRES="$REQUIRES"
BUILD_PREREQUIRES="
	cmd:unzip
	"

BUILD()
{
	true
}

INSTALL()
{
	mkdir -p $appsDir/Hermes
	chmod +x hermes_haiku
	cp -r * $appsDir/Hermes
	mv $appsDir/Hermes/hermes_haiku $appsDir/Hermes/Hermes

	addAppDeskbarSymlink $appsDir/Hermes/Hermes
}
