diff options
author | Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> | 2015-12-10 23:48:56 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-12-10 23:48:56 +0700 |
commit | 4106562df3502fe28aa89206cdaf0ac7a6c134e7 (patch) | |
tree | 76df0e062bf7c99fe59f93a4665495400fede748 /games/ut2004 | |
parent | 58cba458f76bc639aa2b14d795f86231f7ae30d2 (diff) |
games/ut2004: Added (Unreal Tournament 2004).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/ut2004')
-rw-r--r-- | games/ut2004/README | 26 | ||||
-rw-r--r-- | games/ut2004/slack-desc | 19 | ||||
-rw-r--r-- | games/ut2004/ut2004 | 4 | ||||
-rw-r--r-- | games/ut2004/ut2004.SlackBuild | 99 | ||||
-rw-r--r-- | games/ut2004/ut2004.desktop | 8 | ||||
-rw-r--r-- | games/ut2004/ut2004.info | 10 |
6 files changed, 166 insertions, 0 deletions
diff --git a/games/ut2004/README b/games/ut2004/README new file mode 100644 index 0000000000000..f4a064b5c3a5a --- /dev/null +++ b/games/ut2004/README @@ -0,0 +1,26 @@ +Reload, rev up and ride out. The new Tournament is faster, higher and meaner. Land and air based +vehicles take combat to a new level; while an arsenal of new weaponry, daunting arenas and battlefields +and the challenge of the Assault and Onslaught modes make the gladiator blood sport of the future a +brand new experience. Buckle up it's gonna be one hell of a ride! + +Optional bonus packs and more: http://liflg.org/?catid=6&gameid=17 + +Notes: + +This takes the installer (which has the latest version) from Linux Installers For Linux Gamers and +nicely installs it into a package following Slackware standards. This SlackBuild should detect if +you're playing on a 32-bit or 64-bit system and install the correct bins. + +Your game data (and mods) must go into "/usr/share/games/ut2004". There is a home folder (.ut2004) for +your configs, but you'll need to be able to modify the contents located under the share/games folder. +You should have permissions to modify this folder with the games group. + +It's probably best to put the game data downloaded from Steam or from your CDs in +"/usr/share/games/ut2004" before installing this SlackBuild. + +You'll need to create a file named, "CDkey" in the "/usr/share/games/ut2004/System" directory. And in +it, you need to provide the cd key you have from Steam or the retail box. Otherwise the game will +fail to launch. + +The mod selection menu is broken, you'll need to launch mods with a parameter. Here is an example with +Killing Floor: ut2004 -mod=KFMod20 diff --git a/games/ut2004/slack-desc b/games/ut2004/slack-desc new file mode 100644 index 0000000000000..2b84251c9e695 --- /dev/null +++ b/games/ut2004/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------------------------------------------------------| +ut2004: ut2004 (Unreal Tournament 2004) +ut2004: +ut2004: Reload, rev up and ride out. The new Tournament is faster, higher and +ut2004: meaner. Land and air based vehicles take combat to a new level; +ut2004: while an arsenal of new weaponry, daunting arenas and battlefields +ut2004: and the challenge of the Assault and Onslaught modes make the +ut2004: gladiator blood sport of the future a brand new experience. Buckle +ut2004: up it's gonna be one hell of a ride! +ut2004: +ut2004: Homepage: http://liflg.org +ut2004: diff --git a/games/ut2004/ut2004 b/games/ut2004/ut2004 new file mode 100644 index 0000000000000..850e5157687dc --- /dev/null +++ b/games/ut2004/ut2004 @@ -0,0 +1,4 @@ + #!/bin/bash + +cd /usr/share/games/ut2004/System/ +./ut2004 diff --git a/games/ut2004/ut2004.SlackBuild b/games/ut2004/ut2004.SlackBuild new file mode 100644 index 0000000000000..1caeed1932db0 --- /dev/null +++ b/games/ut2004/ut2004.SlackBuild @@ -0,0 +1,99 @@ +#!/bin/sh + +# Slackware build script for ut2004 + +# Copyright 2015 Gethyn ThomasQuail <gethyn@bloodbathsoftworks.com> +# All rights reserved. +# +# Based on: +# TeamSpeak3 SlackBuild by Willy Sudiarto Raharjo <willysr@slackbuilds.org> +# +# 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=ut2004 +VERSION=${VERSION:-3369} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +GAMDIR=usr/share/games/ut2004 + +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" = "x86_64" ]; then + UARCH="amd64" +else + UARCH="x86" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +mkdir -p $PKG/$GAMDIR +chmod +x $CWD/"$PRGNAM"_"$VERSION"-english.midway.dvd-3.run +$CWD/"$PRGNAM"_"$VERSION"-english.midway.dvd-3.run --noexec --target $PKG/$GAMDIR +cd $PKG/$GAMDIR +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 {} \; + +# Extract binaries based on arch +tar xvf linux-$UARCH.tar.gz +rsync -a System patch/ + +# Move launcher script +chmod +x $PKG/$GAMDIR/bin/ut2004 +mv $PKG/$GAMDIR/bin/ut2004 $PKG/$GAMDIR/patch/System + +# Clean up +rm -rf $PKG/$GAMDIR/bin $PKG/$GAMDIR/vcdk-* $PKG/$GAMDIR/setup* $PKG/$GAMDIR/linux-* +rsync -a patch/* $PKG/$GAMDIR +rm -rf $PKG/$GAMDIR/patch + +# Desktop and launcher related stuff +install -D -m 0644 $PRGNAM.xpm $PKG/usr/share/pixmaps/$PRGNAM.xpm +install -D -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop +install -D -m 0755 $CWD/$PRGNAM $PKG/usr/games/$PRGNAM + +# Make it so the games group can access the folder +chgrp -R games $PKG/$GAMDIR +chmod -R 774 $PKG/$GAMDIR + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +mv EULA.txt README.liflg $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 + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/games/ut2004/ut2004.desktop b/games/ut2004/ut2004.desktop new file mode 100644 index 0000000000000..5a7767ae45430 --- /dev/null +++ b/games/ut2004/ut2004.desktop @@ -0,0 +1,8 @@ +[Desktop Entry] +Name=Unreal Tournament 2004 +GenericName=Unreal Tournament 2004 +Type=Application +Comment=The classic fast paced tournament shooter. +Exec=ut2004 +Icon=ut2004 +Categories=Game diff --git a/games/ut2004/ut2004.info b/games/ut2004/ut2004.info new file mode 100644 index 0000000000000..9d62f4c53ae6e --- /dev/null +++ b/games/ut2004/ut2004.info @@ -0,0 +1,10 @@ +PRGNAM="ut2004" +VERSION="3369" +HOMEPAGE="http://liflg.org/" +DOWNLOAD="http://liflg.holarse-linuxgaming.de/files/final/ut2004_3369-english.midway.dvd-3.run" +MD5SUM="18305704c69655c37ec45e79d64aef66" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="" +MAINTAINER="Gethyn ThomasQuail" +EMAIL="gethyn@bloodbathsoftworks.com" |