diff options
Diffstat (limited to 'games/supertuxkart')
-rw-r--r-- | games/supertuxkart/README | 9 | ||||
-rw-r--r-- | games/supertuxkart/doinst.sh | 4 | ||||
-rw-r--r-- | games/supertuxkart/slack-desc | 19 | ||||
-rw-r--r-- | games/supertuxkart/supertuxkart.6 | 72 | ||||
-rw-r--r-- | games/supertuxkart/supertuxkart.SlackBuild | 98 | ||||
-rw-r--r-- | games/supertuxkart/supertuxkart.info | 10 | ||||
-rw-r--r-- | games/supertuxkart/translations.patch | 16 |
7 files changed, 228 insertions, 0 deletions
diff --git a/games/supertuxkart/README b/games/supertuxkart/README new file mode 100644 index 0000000000000..46835844158e2 --- /dev/null +++ b/games/supertuxkart/README @@ -0,0 +1,9 @@ +SuperTuxKart is a Free 3d kart racing game; we want to make +the game fun more than we want to make it realistic. You can +play with up to 4 friends on one PC, racing against each +other or just try to beat the computer. (a network multiplayer +feature is under development). + +SuperTuxKart requires plib and OpenAL. + +Optional: supertuxkart-extra-karts and supertuxkart-extra-tracks. diff --git a/games/supertuxkart/doinst.sh b/games/supertuxkart/doinst.sh new file mode 100644 index 0000000000000..4e8ba7071dea7 --- /dev/null +++ b/games/supertuxkart/doinst.sh @@ -0,0 +1,4 @@ +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/supertuxkart/slack-desc b/games/supertuxkart/slack-desc new file mode 100644 index 0000000000000..29c0241349952 --- /dev/null +++ b/games/supertuxkart/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 ':'. + + |-----handy-ruler------------------------------------------------------| +supertuxkart: supertuxkart (A 3D Kart racing game) +supertuxkart: +supertuxkart: A new and improved version of TuxKart, a kart racing game featuring +supertuxkart: Tux and his friends. +supertuxkart: +supertuxkart: Homepage: http://supertuxkart.sourceforge.net/ +supertuxkart: +supertuxkart: +supertuxkart: +supertuxkart: +supertuxkart: diff --git a/games/supertuxkart/supertuxkart.6 b/games/supertuxkart/supertuxkart.6 new file mode 100644 index 0000000000000..803069549b940 --- /dev/null +++ b/games/supertuxkart/supertuxkart.6 @@ -0,0 +1,72 @@ +.\" This manpage has been automatically generated by docbook2man +.\" from a DocBook document. This tool can be found at: +.\" <http://shell.ipoline.com/~elmert/comp/docbook2X/> +.\" Please send any bug reports, improvements, comments, patches, +.\" etc. to Steve Cheng <steve@ggi-project.org>. +.TH "SUPERTUXKART" "6" "13 May 2009" "" "" + +.SH NAME +supertuxkart \- A Kart Game Featuring Tux and Friends +.SH SYNOPSIS + +\fBsupertuxkart\fR + +.SH "OPTIONS" +.PP +This program accepts some optional parameters. +.TP +\fB -N --no-start-screen \fR +Quick race +.TP +\fB -t --track \fR +Start at track NAME (see --list-tracks) +.TP +\fB -l --list-tracks \fR +Show available tracks. +.TP +\fB -k --numkarts \fR +Number of karts on the racetrack +.TP +\fB --kart NAME \fR +Use kart number NAME +.TP +\fB --list-karts \fR +Show available karts. +.TP +\fB --laps n \fR +Define number of laps to n +.TP +\fB --players n \fR +Define number of players to between 1 and 4. +.TP +\fB --reverse \fR +Enable reverse mode +.TP +\fB --mirror \fR +Enable mirror mode (when supported) +.TP +\fB -f --fullscreen \fR +Fullscreen display. +.TP +\fB -w --windowed \fR +Windowed display. (default) +.TP +\fB -s --screensize WIDTHxHEIGHT \fR +Set the screen size (e.g. 320x200) +.TP +\fB -v --version \fR +Show version +.SH "FILES" +.TP +\fB\fI$(HOME)/.supertuxkart/\fB\fR +Configuration directory. +.SH "AUTHOR" +.PP +This manual page was written by Gonéri Le Bouder <<goneri@rulezlan.org>> for +the Debian system (but may be used by others). Permission is +granted to copy, distribute and/or modify this document under +the terms of the GNU General Public License, Version 2 any +later version published by the Free Software Foundation. +.PP +On Debian systems, the complete text of the GNU General Public +License can be found in /usr/share/common-licenses/GPL. diff --git a/games/supertuxkart/supertuxkart.SlackBuild b/games/supertuxkart/supertuxkart.SlackBuild new file mode 100644 index 0000000000000..3ca219a681e6d --- /dev/null +++ b/games/supertuxkart/supertuxkart.SlackBuild @@ -0,0 +1,98 @@ +#!/bin/sh + +# Slackware build script for supertuxkart + +# Written by Larry Hajali <larryhaja[at]gmail[dot]com> + +PRGNAM=supertuxkart +VERSION=0.6.2a +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -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 $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +# The Makefile's don't respect directory variables given to configure. +# Let's fix that with a few other additional cleanups. +patch -p1 < $CWD/translations.patch +sed -i 's|\/games|\/bin|g' data/${PRGNAM}_desktop.template +for i in $(find . -name "Makefile.*"); do + sed -i \ + -e "/^bindir/s|games|bin|g" \ + -e "/^pkgdatadir/s|=.*\/po|= \@localedir\@|" \ + -e 's|\/games\/|\/|g' $i +done + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=/usr \ + --localedir=/usr/share/locale \ + --datadir=/usr/share \ + --enable-debug=no \ + --build=$ARCH-slackware-linux + +make +make install DESTDIR=$PKG + +find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ + | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + +mkdir -p $PKG/usr/man/man6 +gzip -9c $CWD/$PRGNAM.6 > $PKG/usr/man/man6/$PRGNAM.6.gz + +# Remove directories/files. +rm -rf $PKG/usr/share/doc +rm -f $PKG/usr/share/locale/{*.po,*.pot} + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS ChangeLog COPYING NEWS README TODO \ + $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/supertuxkart/supertuxkart.info b/games/supertuxkart/supertuxkart.info new file mode 100644 index 0000000000000..e749516c6804a --- /dev/null +++ b/games/supertuxkart/supertuxkart.info @@ -0,0 +1,10 @@ +PRGNAM="supertuxkart" +VERSION="0.6.2a" +HOMEPAGE="http://supertuxkart.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/supertuxkart/supertuxkart-0.6.2a-src.tar.bz2" +DOWNLOAD_x86_64="" +MD5SUM="1672795016cc4964506706ac3287621e" +MD5SUM_x86_64="" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" +APPROVED="dsomero" diff --git a/games/supertuxkart/translations.patch b/games/supertuxkart/translations.patch new file mode 100644 index 0000000000000..2438891bb45da --- /dev/null +++ b/games/supertuxkart/translations.patch @@ -0,0 +1,16 @@ +diff -Naur supertuxkart-0.6.1a.orig/src/file_manager.cpp supertuxkart-0.6.1a/src/file_manager.cpp +--- supertuxkart-0.6.1a.orig/src/file_manager.cpp 2009-01-29 01:30:09.000000000 +0000 ++++ supertuxkart-0.6.1a/src/file_manager.cpp 2009-06-10 13:12:03.000000000 +0000 +@@ -212,7 +212,12 @@ + //----------------------------------------------------------------------------- + std::string FileManager::getTranslationDir() const + { ++#if !defined(TRANSLATION_DIR) && !defined(__APPLE__) && !defined(WIN32) ++#define TRANSLATION_DIR "/usr/share/locale" ++ return TRANSLATION_DIR; ++#else + return m_root_dir+"/data/po"; ++#endif + } // getTranslationDir + + //----------------------------------------------------------------------------- |