diff options
author | Thibaut Notteboom <thibaut.notteboom@gmail.com> | 2017-11-11 21:43:33 +0000 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-11-18 12:40:18 +0700 |
commit | d445d7b74ba1aa7c35ea513f177bd7955d91571a (patch) | |
tree | 9f274fcace2a5dac90d425346e320aa25a6efac9 /games/mrboom | |
parent | f642ba4c3e4549413cdea0cc182f023f77faf179 (diff) |
games/mrboom: Added (Bomberman clone).
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/mrboom')
-rw-r--r-- | games/mrboom/README | 3 | ||||
-rw-r--r-- | games/mrboom/doinst.sh | 3 | ||||
-rw-r--r-- | games/mrboom/mrboom.SlackBuild | 100 | ||||
-rw-r--r-- | games/mrboom/mrboom.info | 10 | ||||
-rw-r--r-- | games/mrboom/mrboom.svg | 1 | ||||
-rw-r--r-- | games/mrboom/slack-desc | 19 |
6 files changed, 136 insertions, 0 deletions
diff --git a/games/mrboom/README b/games/mrboom/README new file mode 100644 index 000000000000..830bd4f9da2a --- /dev/null +++ b/games/mrboom/README @@ -0,0 +1,3 @@ +Mr.Boom is an 8 players Bomberman clone. This is an SDL2 version of +the original 1999 version of Mr. Boom. The goal of the game is to +bomb away your enemies and other players. diff --git a/games/mrboom/doinst.sh b/games/mrboom/doinst.sh new file mode 100644 index 000000000000..5fb28930db0b --- /dev/null +++ b/games/mrboom/doinst.sh @@ -0,0 +1,3 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +fi diff --git a/games/mrboom/mrboom.SlackBuild b/games/mrboom/mrboom.SlackBuild new file mode 100644 index 000000000000..f1b8cef10a25 --- /dev/null +++ b/games/mrboom/mrboom.SlackBuild @@ -0,0 +1,100 @@ +#!/bin/sh + +# Slackware build script for mrboom + +# Copyright 2017 Thibaut Notteboom, Paris, FRANCE +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=mrboom +VERSION=${VERSION:-3.8} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +SRCNAM=mrboom-libretro + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i586 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $SRCNAM-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + +make mrboom LIBSDL2=1 + +mkdir -p $PKG/usr/games $PKG/usr/man/man6 $PKG/usr/share/applications $PKG/usr/share/pixmaps + +make install PREFIX=/usr BINDIR=games DESTDIR=$PKG + +install -m 0644 Assets/$PRGNAM.desktop $PKG/usr/share/applications +install -m 0644 $CWD/mrboom.svg $PKG/usr/share/pixmaps + +find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +find $PKG/usr/man -type f -exec gzip -9 {} \; +for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + LICENSE README.md \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/mrboom/mrboom.info b/games/mrboom/mrboom.info new file mode 100644 index 000000000000..b5264a826a13 --- /dev/null +++ b/games/mrboom/mrboom.info @@ -0,0 +1,10 @@ +PRGNAM="mrboom" +VERSION="3.8" +HOMEPAGE="http://mrboom.mumblecore.org/" +DOWNLOAD="https://github.com/Javanaise/mrboom-libretro/archive/3.8/mrboom-libretro-3.8.tar.gz" +MD5SUM="081142be07c5f7bfd21eba5a8a2b0832" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="libmodplug SDL2_mixer libminizip" +MAINTAINER="Thibaut Notteboom" +EMAIL="thibaut.notteboom@gmail.com" diff --git a/games/mrboom/mrboom.svg b/games/mrboom/mrboom.svg new file mode 100644 index 000000000000..309636884d2f --- /dev/null +++ b/games/mrboom/mrboom.svg @@ -0,0 +1 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" enable-background="new 0 0 100 100"><circle fill="#24396d" cx="50" cy="50" r="50"/><path fill="#1b3460" d="m71.2 76.09l-15.723-22.625 2.264-9.89 6.584-19.75-7.05-5.947-14.743 14.744-16.337 1.165-25.347 25.348c1.776 9.605 6.37 18.791 13.799 26.22 9.09 9.09 20.818 13.947 32.723 14.57l23.835-23.836"/><circle fill="#ff9a8f" cx="64.36" cy="22.09" r="8.25"/><path fill="#ffebd4" d="m63.53 30.841c-.363 1.053-1.658 1.529-2.891 1.067-1.234-.461-1.939-1.687-1.577-2.738l2.606-7.544c.363-1.051 1.656-1.528 2.891-1.066 1.234.461 1.939 1.687 1.576 2.739l-2.605 7.542"/><path fill="#fffcf8" d="m78.44 61.2c0 10.469-8.487 18.955-18.957 18.955h-18.958c-10.47 0-18.958-8.486-18.958-18.957v-15.01c0-10.469 8.487-18.957 18.958-18.957h18.957c10.47 0 18.957 8.488 18.957 18.957v15.01z"/><path fill="#ffc49c" d="m70.923 63.03c0 6.03-4.889 10.92-10.919 10.92h-20.01c-6.03 0-10.919-4.889-10.919-10.92v-12.966c0-6.03 4.889-10.919 10.919-10.919h20.01c6.03 0 10.919 4.888 10.919 10.919v12.966"/><g fill="#2d1505"><path d="m39.668 62.01c0 1.447-1.173 2.619-2.621 2.619-1.447 0-2.621-1.172-2.621-2.619v-10.92c0-1.447 1.174-2.619 2.621-2.619 1.447 0 2.621 1.172 2.621 2.619v10.92"/><path d="m65.57 62.01c0 1.447-1.174 2.619-2.621 2.619-1.447 0-2.621-1.172-2.621-2.619v-10.92c0-1.447 1.174-2.619 2.621-2.619 1.447 0 2.621 1.172 2.621 2.619v10.92"/></g></svg>
\ No newline at end of file diff --git a/games/mrboom/slack-desc b/games/mrboom/slack-desc new file mode 100644 index 000000000000..0ca7e4ddeaa4 --- /dev/null +++ b/games/mrboom/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +mrboom: mrboom (Bomberman clone) +mrboom: +mrboom: Mr.Boom is an 8 players Bomberman clone. This is an SDL2 version of +mrboom: the original 1999 version of Mr. Boom. The goal of the game is to +mrboom: bomb away your enemies and other players. +mrboom: +mrboom: +mrboom: +mrboom: +mrboom: +mrboom: |