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
This commit is contained in:
Benjamin FRANCOIS
2018-03-05 15:36:56 -08:00
committed by waddlesplash
parent 2a16926a97
commit b42edc89a8
2 changed files with 62 additions and 0 deletions

View File

@@ -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
}

View File

@@ -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"