From f1e86b21d92d10f28553ec9538a0b56b8b2c2c13 Mon Sep 17 00:00:00 2001 From: humdinger Date: Thu, 8 Mar 2018 19:19:43 +0100 Subject: [PATCH] New recipe for lightsoff v1.1 (#2295) --- haiku-games/lightsoff/lightsoff-1.1.recipe | 56 ++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 haiku-games/lightsoff/lightsoff-1.1.recipe diff --git a/haiku-games/lightsoff/lightsoff-1.1.recipe b/haiku-games/lightsoff/lightsoff-1.1.recipe new file mode 100644 index 000000000..a4c209ae5 --- /dev/null +++ b/haiku-games/lightsoff/lightsoff-1.1.recipe @@ -0,0 +1,56 @@ +SUMMARY="A puzzle game based on the original Lights Out!" +DESCRIPTION="LightsOff is a rendition of the addictive puzzle game 'Lights \ +Out!' which was developed by Tiger Electronics for a handheld game console \ +in the 1990s. + +On a square grid some tiles are lit, some aren't. The objective is to turn \ +all the lights off by clicking the fewest number of tiles. What makes it \ +challenging: clicking a tile also toggles the tiles to left/right and \ +above/below it." +APP="LightsOff" +instDir=$appsDir/$APP +HOMEPAGE="https://github.com/HaikuArchives/$APP" +COPYRIGHT="2005 DarkWyrm + 2018 Owen Pan" +LICENSE="MIT" +REVISION="1" +SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" +CHECKSUM_SHA256="868f3d84562d51350338a708db7466d1ac40e883ccae237b3a383a411e8365e6" +SOURCE_DIR="$APP-$portVersion" + +ARCHITECTURES="x86_gcc2 x86_64" + +PROVIDES=" + lightsoff = $portVersion + app:$APP = $portVersion + " +REQUIRES=" + haiku + " + +BUILD_REQUIRES=" + haiku_devel + " +BUILD_PREREQUIRES=" + makefile_engine + cmd:g++ + cmd:make + " + +defineDebugInfoPackage lightsoff \ + $instDir/$APP + +BUILD() +{ + make -C src OBJ_DIR=objects $jobArgs +} + +INSTALL() +{ + mkdir -p $instDir $instDir/docs $instDir/media + cp src/objects/$APP $instDir + cp -r docs $instDir + cp -r media $instDir + + addAppDeskbarSymlink $instDir/$APP +}