From 558920a4a532e827845e2d653aa1fb1c0d77d3c0 Mon Sep 17 00:00:00 2001 From: "Julius C. Enriquez" Date: Sat, 2 Jul 2022 15:27:02 +0800 Subject: [PATCH] laserkombat: Add recipe (#7008) * laserkombat: Add recipe * laserkombat: Fix copyright date --- .../laserkombat/laserkombat-1.0.recipe | 53 +++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 games-puzzle/laserkombat/laserkombat-1.0.recipe diff --git a/games-puzzle/laserkombat/laserkombat-1.0.recipe b/games-puzzle/laserkombat/laserkombat-1.0.recipe new file mode 100644 index 000000000..da465eae5 --- /dev/null +++ b/games-puzzle/laserkombat/laserkombat-1.0.recipe @@ -0,0 +1,53 @@ +SUMMARY="Shoot all the tanks in a classic puzzle game" +DESCRIPTION="A classic puzzle game, now available for modern systems. \ +Destroy all the tanks to beat the level. Stay out of line of sight though,\ + or you will get shot. Shoot your lasers at mirrors, blow up bomb or push \ + your enemies into water with movable blocks to win. Good luck!" +HOMEPAGE="https://github.com/sharkwouter/laserkombat" +COPYRIGHT="1999-2022 David Dewey. Wouter Wijsman" +LICENSE="GNU GPL v3" +REVISION="1" +SOURCE_URI="https://github.com/sharkwouter/laserkombat/archive/$portVersion-beta.tar.gz" +CHECKSUM_SHA256="6ee371c1e68ddfa58380592b2afa18e0b2bb88b17521c39ffdb84028109326ad" +SOURCE_DIR="laserkombat-$portVersion-beta" + +ARCHITECTURES="all !x86_gcc2" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + laserkombat$secondaryArchSuffix = $portVersion + app:laserkombat = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libSDL2_ttf_2.0$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libSDL2_2.0$secondaryArchSuffix + devel:libSDL2_ttf_2.0$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:cmake + cmd:gcc$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + mkdir -p build + cd build + cmake -DCMAKE_BUILD_TYPE=Release .. + make +} + +INSTALL() +{ + mkdir -p $appsDir/laserkombat + cp -r ./build/assets $appsDir/laserkombat + cp ./build/laserkombat $appsDir/laserkombat/laserkombat + addAppDeskbarSymlink $appsDir/laserkombat/laserkombat "Laser Kombat" +}