SUMMARY="Classic shoot 'em up scroller game"
DESCRIPTION="A classic shoot 'em up scroller game, where you must fight \
against tons of bad dudes. This is a full game with massive destruction, \
powerful weapons, and high speed action in varied levels."
HOMEPAGE="https://sourceforge.net/projects/kraptor/"
COPYRIGHT="2002-2004 Kronoman"
LICENSE="MIT"
SOURCE_URI="https://sourceforge.net/projects/kraptor/files/kraptor_source_code/final_apr_03_2004/kraptor_final_apr_03_2004.tar.gz"
CHECKSUM_SHA256="ce3d3b517bd081dc317eedc57b8e58a7c5cba50d1cf1f2d06fd3d885d31870a8"
SOURCE_DIR="kraptor_final_apr_03_2004"
PATCHES="kraptor-$portVersion"
REVISION="1"

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

PROVIDES="
	kraptor$secondaryArchSuffix = $portVersion
	"
REQUIRES="
	haiku$secondaryArchSuffix
	lib:liballeg$secondaryArchSuffix
	lib:libdumb$secondaryArchSuffix
	"

BUILD_REQUIRES="
	haiku${secondaryArchSuffix}_devel
	devel:liballeg$secondaryArchSuffix
	devel:libdumb$secondaryArchSuffix
	"
BUILD_PREREQUIRES="
	cmd:make
	cmd:gcc$secondaryArchSuffix
	"

BUILD()
{
	sh fix.sh linux
	sh fix.sh test
	make $jobArgs
}

INSTALL()
{
	mkdir -p $appsDir/Kraptor
	cp bin/*.dat bin/kraptor.cfg $appsDir/Kraptor
	cp bin/kraptor_linux.bin $appsDir/Kraptor/Kraptor

	addAppDeskbarSymlink $appsDir/Kraptor/Kraptor
}
