From b42edc89a8e8c4c0d3b556128b5922fc8c700444 Mon Sep 17 00:00:00 2001 From: Benjamin FRANCOIS Date: Mon, 5 Mar 2018 15:36:56 -0800 Subject: [PATCH] 2048_libretro: a puzzle game using the libretro API (#2267) * Initial commit * Renamed to follow recommendations * Alphabetical order * Updated to use Add-Ons directory * Removed SUPPLEMENTS in favor of REQUIRES * Added documentation with package * Fixed permissions for files * Replaced lib: by addon: for consistency --- .../2048_libretro-1.0~20180219git.recipe | 52 +++++++++++++++++++ .../additional-files/2048_libretro.info.in | 10 ++++ 2 files changed, 62 insertions(+) create mode 100644 games-puzzle/2048_libretro/2048_libretro-1.0~20180219git.recipe create mode 100644 games-puzzle/2048_libretro/additional-files/2048_libretro.info.in diff --git a/games-puzzle/2048_libretro/2048_libretro-1.0~20180219git.recipe b/games-puzzle/2048_libretro/2048_libretro-1.0~20180219git.recipe new file mode 100644 index 000000000..d2fd5cdb4 --- /dev/null +++ b/games-puzzle/2048_libretro/2048_libretro-1.0~20180219git.recipe @@ -0,0 +1,52 @@ +SUMMARY="A port of the 2048 puzzle game to the libretro architecture" +DESCRIPTION="2048 is a puzzle game by Gabriele Cirulli, based on 1024 by \ +Veewo Studio and conceptually similar to Threes by Asher Vollmer. This is \ +a port of 2048 to the libretro API." +HOMEPAGE="http://gabrielecirulli.github.io/2048/" +COPYRIGHT="2014-2018 Gabriele Cirulli, the libretro team" +LICENSE="Public Domain" +REVISION="1" +srcGitRev="6b6451b554b0faeab85dbda5388e10a8190dc46e" +SOURCE_URI="https://github.com/libretro/libretro-2048/archive/$srcGitRev.tar.gz" +CHECKSUM_SHA256="843dcd7d88b6bf8092d1e3c48ddbde0dceefe12200b6f52b31d05448eeee491a" +SOURCE_FILENAME="libretro-2048-$portVersion-$srcGitRev.tar.gz" +SOURCE_DIR="libretro-2048-$srcGitRev" +ADDITIONAL_FILES="2048_libretro.info.in" + +ARCHITECTURES="!x86_gcc2 ?x86 x86_64" +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + 2048_libretro$secondaryArchSuffix = $portVersion + addon:2048_libretro$secondaryArchSuffix = $portVersion + " +REQUIRES=" + haiku$secondaryArchSuffix + retroarch$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + sed -e "s/@DISPLAY_VERSION@/v${portVersion%git}/" \ + $portDir/additional-files/2048_libretro.info.in \ + > 2048_libretro.info + make -f Makefile.libretro $jobArgs +} + +INSTALL() +{ + install -m 0755 -d "$docDir" + install -m 0644 -t "$docDir" README.md + install -m 0755 -d "$addOnsDir"/libretro + install -m 0644 -t "$addOnsDir"/libretro \ + 2048_libretro.info \ + 2048_libretro.so +} diff --git a/games-puzzle/2048_libretro/additional-files/2048_libretro.info.in b/games-puzzle/2048_libretro/additional-files/2048_libretro.info.in new file mode 100644 index 000000000..6cd3de93d --- /dev/null +++ b/games-puzzle/2048_libretro/additional-files/2048_libretro.info.in @@ -0,0 +1,10 @@ +display_name = "2048" +authors = "Gabriele Cirulli" +supported_extensions = "" +corename = "2048" +categories = "Game" +systemname = "2048 Game Clone" +license = "Public Domain" +permissions = "" +display_version = "@DISPLAY_VERSION@" +supports_no_game = "true"