From 8a21af9981851b3b9888878c2443a9bc617582d5 Mon Sep 17 00:00:00 2001 From: Crestwave <35413013+Crestwave@users.noreply.github.com> Date: Fri, 21 Feb 2020 00:10:56 +0800 Subject: [PATCH] jumpnbump: new recipe (#4736) * jumpnbump: new recipe --- games-arcade/jumpnbump/jumpnbump-1.61.recipe | 71 ++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 games-arcade/jumpnbump/jumpnbump-1.61.recipe diff --git a/games-arcade/jumpnbump/jumpnbump-1.61.recipe b/games-arcade/jumpnbump/jumpnbump-1.61.recipe new file mode 100644 index 000000000..5a88736ca --- /dev/null +++ b/games-arcade/jumpnbump/jumpnbump-1.61.recipe @@ -0,0 +1,71 @@ +SUMMARY="Play cute bunnies jumping on each other's heads" +DESCRIPTION="This is a game for the whole family. You play cute fluffy little \ +bunnies and hop on each other's heads. + +At the beginning you are in the menu, where you have to let each active \ +player juimp over the tree trunk to enter the play area, and then walk to the \ +right. You will then enter the arena. The aim is to jump on the other bunnies' \ +heads... + +Jump 'n Bump was originally a DOS game by Brainchild Design, which was open \ +sourced under the GPL license and ported to SDL, and then SDL 2." +HOMEPAGE="https://gitlab.com/LibreGames/jumpnbump" +COPYRIGHT="1998-2019 Jump 'n Bump developers" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="$HOMEPAGE/-/archive/1.61/jumpnbump-1.61.zip" +CHECKSUM_SHA256="0bd5dbd22f81b9399c6e6dbc372c950e09ee19fe348d5f54f5abe8d4794f6490" + +ARCHITECTURES="!x86_gcc2 x86 x86_64" +commandBinDir=$binDir +if [ "$targetArchitecture" = x86_gcc2 ]; then +SECONDARY_ARCHITECTURES="x86" +commandBinDir=$prefix/bin +fi + +PROVIDES=" + jumpnbump$secondaryArchSuffix = $portVersion + cmd:gobpack + cmd:jnbpack + cmd:jnbunpack + cmd:jumpnbump + " +REQUIRES=" + haiku$secondaryArchSuffix + lib:libbz2$secondaryArchSuffix + lib:libSDL2_2.0$secondaryArchSuffix + lib:libSDL2_net_2.0$secondaryArchSuffix + lib:libSDL2_mixer_2.0$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " + +BUILD_REQUIRES=" + haiku${secondaryArchSuffix}_devel + devel:libbz2$secondaryArchSuffix + devel:libSDL2$secondaryArchSuffix + devel:libSDL2_net$secondaryArchSuffix + devel:libSDL2_mixer$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + cmd:gcc$secondaryArchSuffix + cmd:make + " + +BUILD() +{ + make $jobArgs \ + PREFIX="$prefix" \ + BINDIR="$commandBinDir" \ + DATADIR="$dataDir" +} + +INSTALL() +{ + make PREFIX="$prefix" BINDIR="$commandBinDir" DATADIR="$dataDir" install + rm -rf "$dataDir/applications" "$dataDir/icons" + + install -m 755 -d "$docDir" + cp -r docs README.md "$docDir" + addAppDeskbarSymlink "$commandBinDir/jumpnbump" "Jump 'n Bump" +}