mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
* 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
53 lines
1.5 KiB
Bash
53 lines
1.5 KiB
Bash
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
|
|
}
|