diff options
Diffstat (limited to 'games/supertux')
-rw-r--r-- | games/supertux/README | 4 | ||||
-rw-r--r-- | games/supertux/doinst.sh | 6 | ||||
-rw-r--r-- | games/supertux/slack-desc | 8 | ||||
-rw-r--r-- | games/supertux/supertux.SlackBuild | 37 | ||||
-rw-r--r-- | games/supertux/supertux.info | 12 |
5 files changed, 44 insertions, 23 deletions
diff --git a/games/supertux/README b/games/supertux/README index ca35bccc4c..67363b4950 100644 --- a/games/supertux/README +++ b/games/supertux/README @@ -1,5 +1,5 @@ -SuperTux is a classic 2D jump'n run sidescroller game in a style -similar to the original SuperMario games. +SuperTux is an open-source classic 2D jump-and-run sidescroller game, +in a style similar to the original Super Mario games. If you get slow performance, disable the use of OpenGL in the "Options" menu after SuperTux is started. diff --git a/games/supertux/doinst.sh b/games/supertux/doinst.sh index 65fd352418..62aabdc4ae 100644 --- a/games/supertux/doinst.sh +++ b/games/supertux/doinst.sh @@ -2,3 +2,9 @@ if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database usr/share/applications >/dev/null 2>&1 fi +# If other icon themes are installed, then add to or modify this as needed +if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then + if [ -x /usr/bin/gtk-update-icon-cache ]; then + /usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1 + fi +fi diff --git a/games/supertux/slack-desc b/games/supertux/slack-desc index edb558de16..4fd87e7f6d 100644 --- a/games/supertux/slack-desc +++ b/games/supertux/slack-desc @@ -6,12 +6,12 @@ # customary to leave one space after the ':' except on otherwise blank lines. |-----handy-ruler------------------------------------------------------| -supertux: supertux (classic 2D jump'n run sidescroller game) +supertux: supertux (classic 2D jump-and-run sidescroller game) supertux: -supertux: SuperTux is a classic 2D jump'n run sidescroller game in a style -supertux: similar to the original SuperMario games. +supertux: SuperTux is an open-source classic 2D jump-and-run sidescroller game, +supertux: in a style similar to the original Super Mario games. supertux: -supertux: Homepage: http://supertux.berlios.de/ +supertux: Homepage: https://www.supertux.org supertux: supertux: supertux: diff --git a/games/supertux/supertux.SlackBuild b/games/supertux/supertux.SlackBuild index 72e00c5c77..a492e216aa 100644 --- a/games/supertux/supertux.SlackBuild +++ b/games/supertux/supertux.SlackBuild @@ -1,9 +1,13 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for supertux # Copyright 2006-2011,2016 Robby Workman, Tuscaloosa, Alabama, USA # All rights reserved. +# Copyright 2019 Pedro R.M. JĂșnior, Campinas, SP, Brazil +# All rights reserved. +# Copyright 2022 Bloyburt +# All rights reserved. # # Redistribution and use of this script, with or without modification, is # permitted provided that the following conditions are met: @@ -22,26 +26,37 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=supertux -VERSION=${VERSION:-0.4.0} -BUILD=${BUILD:-1} +VERSION=${VERSION:-0.6.3} +SRCVERSION=$(echo $VERSION | tr _ - ) +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-O2 -march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2 -march=i686 -mtune=i686" @@ -59,9 +74,9 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION +rm -rf $PRGNAM-$SRCVERSION +tar xvf $CWD/SuperTux-v$SRCVERSION-Source.tar.gz +cd SuperTux-v$SRCVERSION-Source chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ @@ -99,4 +114,4 @@ 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} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/games/supertux/supertux.info b/games/supertux/supertux.info index 299d644b04..05ef0681d9 100644 --- a/games/supertux/supertux.info +++ b/games/supertux/supertux.info @@ -1,10 +1,10 @@ PRGNAM="supertux" -VERSION="0.4.0" +VERSION="0.6.3" HOMEPAGE="https://github.com/SuperTux/supertux" -DOWNLOAD="https://github.com/SuperTux/supertux/releases/download/v0.4.0/supertux-0.4.0.tar.bz2" -MD5SUM="8acc3aa1077f0da95c99fdd5f4925088" +DOWNLOAD="https://github.com/SuperTux/supertux/releases/download/v0.6.3/SuperTux-v0.6.3-Source.tar.gz" +MD5SUM="798d5518d3f4672ee0bac92693063c2f" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="SDL2_image OpenAL physfs" -MAINTAINER="Robby Workman" -EMAIL="rworkman@slackbuilds.org" +REQUIRES="physfs glm" +MAINTAINER="Bloyburt" +EMAIL="alexpen@startmail.com" |