SUMMARY="A puzzle game based on the original handheld game Lights Out"
DESCRIPTION="LightsOff is a redition of the addictive puzzle game Lights Out."
APP="LightsOff"
HOMEPAGE="https://github.com/HaikuArchives/$APP"
COPYRIGHT="2005 DarkWyrm"
LICENSE="MIT"
REVISION="1"
srcGitRev="40b11f1f2f24a525d3b5c1a6336ec13aa3abbad7"
SOURCE_URI="$HOMEPAGE/archive/$srcGitRev.tar.gz"
CHECKSUM_SHA256="01f9fc079f45b88cc5b39c64c9a3866d435bd8a16fe6f296e48482716df80d78"
SOURCE_FILENAME="$APP-$portVersion-$srcGitRev.tar.gz"
SOURCE_DIR="$APP-$srcGitRev"

ARCHITECTURES="all"

PROVIDES="
	lightsoff = $portVersion
	app:$APP = $portVersion
	"
REQUIRES="
	haiku
	"

BUILD_REQUIRES="
	haiku_devel
	"
BUILD_PREREQUIRES="
	makefile_engine
	cmd:g++
	cmd:make
	"

defineDebugInfoPackage lightsoff \
	$appsDir/$APP

BUILD()
{
	make -C src OBJ_DIR=objects $jobArgs
}

INSTALL()
{
	install -d $appsDir
	install src/objects/$APP $appsDir
	addAppDeskbarSymlink $appsDir/$APP
}
