From 3a1e264aaf2f1e24744946f194904d71742855e1 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Wed, 12 Apr 2017 11:23:54 +0100 Subject: games/retux: Added (2d platform game). Signed-off-by: David Spencer --- games/retux/README | 7 ++++ games/retux/doinst.sh | 3 ++ games/retux/retux.SlackBuild | 79 ++++++++++++++++++++++++++++++++++++++++++++ games/retux/retux.desktop | 8 +++++ games/retux/retux.info | 10 ++++++ games/retux/slack-desc | 19 +++++++++++ 6 files changed, 126 insertions(+) create mode 100644 games/retux/README create mode 100644 games/retux/doinst.sh create mode 100644 games/retux/retux.SlackBuild create mode 100644 games/retux/retux.desktop create mode 100644 games/retux/retux.info create mode 100644 games/retux/slack-desc (limited to 'games/retux') diff --git a/games/retux/README b/games/retux/README new file mode 100644 index 0000000000..2c0a30aa69 --- /dev/null +++ b/games/retux/README @@ -0,0 +1,7 @@ +retux (2d platform game) + +ReTux is a 100% libre software and 100% libre culture action platformer +loosely inspired by the Mario games, utilizing the art assets from the +SuperTux project. The name "ReTux" is a play on the words "redux" and +"Tux". Although ReTux re-uses the art assets of SuperTux, no code from +SuperTux is used in ReTux. diff --git a/games/retux/doinst.sh b/games/retux/doinst.sh new file mode 100644 index 0000000000..5fb28930db --- /dev/null +++ b/games/retux/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/retux/retux.SlackBuild b/games/retux/retux.SlackBuild new file mode 100644 index 0000000000..c054362ecf --- /dev/null +++ b/games/retux/retux.SlackBuild @@ -0,0 +1,79 @@ +#!/bin/sh + +# Slackware build script for retux + +# Written by B. Watson (yalhcru@gmail.com) + +# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. + +# Note: This would depend on six and sge-pygame, except upstream kindly +# shipped his own bundled copies. The game looks for modules in its own +# directory first, so any system-wide installs of six and sge-pygame +# won't cause problems. + +PRGNAM=retux +VERSION=${VERSION:-1.3.4} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +ARCH=noarch + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +set -e + +DIRNAME=$PRGNAM-$VERSION-src + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $DIRNAME +tar xvf $CWD/$DIRNAME.tar.gz +cd $DIRNAME + +# upstream perms a bit wonky, force them: +chown -R root:root . +find . -type d -exec chmod 755 {} + +find . -type f -exec chmod 644 {} + +chmod 755 *.py + +# we don't need these, they take up 12MB in the package and are never used. +find . -name sources -print0 | xargs -0 rm -rf + +# allow launching via symlink. without this, it can't find its data files. +sed -i '/^DATA/i__file__ = os.path.realpath(__file__)' $PRGNAM.py + +# there's no setup.py to do this for us. it's not 100% necessary but does +# speed things up ever so slightly at runtime: +python -m compileall . + +mkdir -p \ + $PKG/usr/share/games/$PRGNAM \ + $PKG/usr/games \ + $PKG/usr/doc/$PRGNAM-$VERSION + +mv COPYING README.txt $PKG/usr/doc/$PRGNAM-$VERSION +sed -i 's,\r,,' $PKG/usr/doc/$PRGNAM-$VERSION/* + +mv * $PKG/usr/share/games/$PRGNAM +ln -s ../share/games/$PRGNAM/$PRGNAM.py $PKG/usr/games/$PRGNAM + +mkdir -p $PKG/usr/share/pixmaps +ln -s ../games/$PRGNAM/data/images/misc/icon.png \ + $PKG/usr/share/pixmaps/$PRGNAM.png + +# .desktop file written for this SlackBuild +mkdir -p $PKG/usr/share/applications +cat $CWD/$PRGNAM.desktop > $PKG/usr/share/applications/$PRGNAM.desktop + +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/retux/retux.desktop b/games/retux/retux.desktop new file mode 100644 index 0000000000..d2ac450aff --- /dev/null +++ b/games/retux/retux.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=ReTux +Comment=Platform Game +Exec=retux +Icon=retux +Terminal=false +Type=Application +Categories=Game;ArcadeGame; diff --git a/games/retux/retux.info b/games/retux/retux.info new file mode 100644 index 0000000000..d02a98430f --- /dev/null +++ b/games/retux/retux.info @@ -0,0 +1,10 @@ +PRGNAM="retux" +VERSION="1.3.4" +HOMEPAGE="http://retux.nongnu.org/" +DOWNLOAD="http://download.savannah.gnu.org/releases/retux/1.3/retux-1.3.4-src.tar.gz" +MD5SUM="50bea2aa282e2bb04944388ea5d59941" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="B. Watson" +EMAIL="yalhcru@gmail.com" diff --git a/games/retux/slack-desc b/games/retux/slack-desc new file mode 100644 index 0000000000..b298597533 --- /dev/null +++ b/games/retux/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------------------------------------------------------| +retux: retux (2d platform game) +retux: +retux: ReTux is a 100% libre software and 100% libre culture action +retux: platformer loosely inspired by the Mario games, utilizing the art +retux: assets from the SuperTux project. The name "ReTux" is a play on the +retux: words "redux" and "Tux". Although ReTux re-uses the art assets of +retux: SuperTux, no code from SuperTux is used in ReTux. +retux: +retux: +retux: +retux: -- cgit v1.2.3