SUMMARY="Neko the Replicat"
DESCRIPTION="Neko the Replicat, Inspired by Neko for X-windows by Masayuki Koba."
HOMEPAGE="https://pulkomandy.tk/~beosarchive/unsorted/cypresstwist/BeOS/Games/"
COPYRIGHT="1997-1999 Greg Weston
	2000 John Yanarella"
LICENSE="unknown"
REVISION="1"
SOURCE_URI="https://pulkomandy.tk/~beosarchive/unsorted/cypresstwist/BeOS/Games/replicat_v1_06.zip"
CHECKSUM_SHA256="a631d63e894f4e99d3a5c18e3fd0a92ce3e767ec5b52d92e43b6ee07f2b36f76"
SOURCE_DIR="replicat v$portVersion/src"
#PATCHES="projectx-$portVersion.patchset"
ADDITIONAL_FILES="makefile"

ARCHITECTURES="?all"

PROVIDES="
	replicat = $portVersion
	app:replicat = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:make
	cmd:gcc
	"

BUILD()
{
	cp -f $portDir/additional-files/makefile ./
	make $jobArgs OBJ_DIR=objects
}

INSTALL()
{
	mkdir -p $appsDir
	cp -a objects/Replicat $appsDir
	addAppDeskbarSymlink $appsDir/Replicat
}

TEST()
{
	make check
}
