summaryrefslogtreecommitdiff
path: root/games/mrrescue/mrrescue.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2014-05-01 09:38:03 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-05-01 09:38:03 +0700
commit1ffe6525939c9b931c8c092b38320051aca7e52b (patch)
tree5c9d273d098a4799ff8be6d69fb3b0c76be34058 /games/mrrescue/mrrescue.SlackBuild
parentc1b6500b948e9018c51b8904d9ed66a2673d6d06 (diff)
downloadslackbuilds-1ffe6525939c9b931c8c092b38320051aca7e52b.tar.gz
games/mrrescue: Added (2d platform game).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/mrrescue/mrrescue.SlackBuild')
-rw-r--r--games/mrrescue/mrrescue.SlackBuild57
1 files changed, 57 insertions, 0 deletions
diff --git a/games/mrrescue/mrrescue.SlackBuild b/games/mrrescue/mrrescue.SlackBuild
new file mode 100644
index 0000000000..4ef115db1f
--- /dev/null
+++ b/games/mrrescue/mrrescue.SlackBuild
@@ -0,0 +1,57 @@
+#!/bin/sh
+
+# Slackware build script for mrrescue
+
+# Written by B. Watson (yalhcru@gmail.com)
+
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+
+PRGNAM=mrrescue
+VERSION=${VERSION:-1.02b}
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+ARCH=noarch
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+set -e
+
+SRCNAM="$PRGNAM-$VERSION-love"
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $SRCNAM
+unzip $CWD/$SRCNAM.zip
+cd $SRCNAM
+
+# no find/chmod boilerplate, explicit permissions
+
+mkdir -p $PKG/usr/games
+echo '#!/usr/bin/env love-0.8.0' > $PKG/usr/games/$PRGNAM
+cat $PRGNAM.love >> $PKG/usr/games/$PRGNAM
+chmod 755 $PKG/usr/games/$PRGNAM
+
+# icon is a piece of data/splash.png from the payload file, chopped up
+# with the gimp.
+mkdir -p $PKG/usr/share/pixmaps
+cat $CWD/$PRGNAM.png > $PKG/usr/share/pixmaps/$PRGNAM.png
+
+# .desktop written for this build
+mkdir -p $PKG/usr/share/applications
+cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+install -oroot -groot -m0644 *.txt $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}