games/nexuiz: Updated for version 2.5.2.

This commit is contained in:
B. Watson 2010-04-21 19:02:27 -04:00 committed by David Somero
parent eaacd2c2b6
commit 7822487158
11 changed files with 45 additions and 33 deletions

View file

@ -4,4 +4,5 @@ open-sourced Quake engine. Nexuiz is a standalone game that can
be played locally or over the internet. It is completely open be played locally or over the internet. It is completely open
source and actively developed. source and actively developed.
Note: The source download is about 660M. Note: This SlackBuild just repackages the binaries (no compiling). The
"source" download is about 900M.

View file

@ -2,6 +2,9 @@ if [ -x /usr/bin/update-desktop-database ]; then
./usr/bin/update-desktop-database -q usr/share/applications ./usr/bin/update-desktop-database -q usr/share/applications
fi fi
if [ -x /usr/bin/update-mime-database ]; then if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
./usr/bin/update-mime-database usr/share/mime >/dev/null 2>&1 if [ -x /usr/bin/gtk-update-icon-cache ]; then
/usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
fi
fi fi

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cd /usr/share/games/nexuiz cd /usr/share/games/nexuiz
./nexuiz-linux-686-dedicated exec ./nexuiz-linux-686-dedicated

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cd /usr/share/games/nexuiz cd /usr/share/games/nexuiz
./nexuiz-linux-x86_64-dedicated exec ./nexuiz-linux-x86_64-dedicated

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cd /usr/share/games/nexuiz cd /usr/share/games/nexuiz
sh nexuiz-linux-glx.sh exec sh nexuiz-linux-glx.sh

View file

@ -1,7 +1,5 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Version=2.1
Encoding=UTF-8
Name=Nexuiz (GLX) Name=Nexuiz (GLX)
Comment=Free first-person shooter game Comment=Free first-person shooter game
Icon=/usr/share/pixmaps/nexuiz.png Icon=/usr/share/pixmaps/nexuiz.png

View file

@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
cd /usr/share/games/nexuiz cd /usr/share/games/nexuiz
sh nexuiz-linux-sdl.sh exec sh nexuiz-linux-sdl.sh

View file

@ -1,7 +1,5 @@
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
Version=2.1
Encoding=UTF-8
Name=Nexuiz (SDL) Name=Nexuiz (SDL)
Comment=Free first-person shooter game Comment=Free first-person shooter game
Icon=/usr/share/pixmaps/nexuiz.png Icon=/usr/share/pixmaps/nexuiz.png

View file

@ -2,6 +2,9 @@
# Slackware build script for Nexuiz # Slackware build script for Nexuiz
# Now maintained by B. Watson <yalhcru@gmail.com>, please don't bother
# Chess with questions about this build (bother me instead)
# Copyright 2008-2009 Chess Griffin <chess@chessgriffin.com> # Copyright 2008-2009 Chess Griffin <chess@chessgriffin.com>
# All rights reserved. # All rights reserved.
# #
@ -23,7 +26,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=nexuiz PRGNAM=nexuiz
VERSION=${VERSION:-2.5.1} VERSION=${VERSION:-2.5.2}
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
@ -36,21 +39,31 @@ OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686" SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
SRCARCH="686"
elif [ "$ARCH" = "i686" ]; then elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686" SLKCFLAGS="-O2 -march=i686 -mtune=i686"
LIBDIRSUFFIX="" LIBDIRSUFFIX=""
SRCARCH="686"
elif [ "$ARCH" = "x86_64" ]; then elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC" SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64" LIBDIRSUFFIX="64"
SRCARCH="x86_64"
fi fi
set -e # Exit on most errors set -e
SRCVER=$( echo $VERSION | tr -d . )
rm -rf $PKG rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT mkdir -p $TMP $PKG $OUTPUT
cd $TMP cd $TMP
rm -rf Nexuiz rm -rf Nexuiz
unzip -o $CWD/nexuiz-251.zip
# All the -x stuff saves us 120MB of space in /tmp, during the build.
# Why extract the windows and mac binaries, if we're not going to use them?
unzip -o $CWD/nexuiz-$SRCVER.zip \
-x 'Nexuiz/nexuiz-osx-*' '*.exe' '*.dll' 'Nexuiz/Nexuiz-SDL.app/*' \
'Nexuiz/Nexuiz.app/*' 'Nexuiz/extra/*' 'Nexuiz/sources/*'
cd Nexuiz cd Nexuiz
chown -R root:root . chown -R root:root .
find . \ find . \
@ -59,13 +72,6 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \; -exec chmod 644 {} \;
( cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
xargs strip --strip-unneeded 2> /dev/null
)
install -D -m 0644 $CWD/nexuiz-glx.desktop \ install -D -m 0644 $CWD/nexuiz-glx.desktop \
$PKG/usr/share/applications/nexuiz-glx.desktop $PKG/usr/share/applications/nexuiz-glx.desktop
install -D -m 0644 $CWD/nexuiz-sdl.desktop \ install -D -m 0644 $CWD/nexuiz-sdl.desktop \
@ -77,22 +83,24 @@ cp $CWD/*.png $PKG/usr/share/pixmaps
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -R ./Docs/* $PKG/usr/doc/$PRGNAM-$VERSION/ cp -R ./Docs/* $PKG/usr/doc/$PRGNAM-$VERSION/
cp gpl.txt $PKG/usr/doc/$PRGNAM-$VERSION cp gpl.txt $PKG/usr/doc/$PRGNAM-$VERSION
# Include server scripts as docs:
cp -R server $PKG/usr/doc/$PRGNAM-$VERSION/server
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \; find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;
mkdir -p $PKG/usr/share/games/nexuiz mkdir -p $PKG/usr/share/games/nexuiz
cp -R data $PKG/usr/share/games/nexuiz cp -R data $PKG/usr/share/games/nexuiz
cp -R havoc $PKG/usr/share/games/nexuiz/havoc
find $PKG/usr/share/games/nexuiz -type f -exec chmod 0644 {} \; find $PKG/usr/share/games/nexuiz -type f -exec chmod 0644 {} \;
cp nexuiz-* $PKG/usr/share/games/nexuiz
rm $PKG/usr/share/games/nexuiz/*.exe
rm $PKG/usr/share/games/nexuiz/nexuiz-osx-dedicated
mkdir -p $PKG/install # The binaries are already stripped.
cat $CWD/slack-desc > $PKG/install/slack-desc # Compiled binaries don't belong under /usr/share (saith the FHS), but
cat $CWD/doinst.sh > $PKG/install/doinst.sh # this isn't worth changing IMO, it would require patching all the run scripts.
cp nexuiz-linux-$SRCARCH* nexuiz-linux-*.sh $PKG/usr/share/games/nexuiz
chmod 755 $PKG/usr/share/games/nexuiz/* chmod 755 $PKG/usr/share/games/nexuiz/*
mkdir -p $PKG/usr/games mkdir -p $PKG/usr/games
# The launchers for the sdl and glx binaries automatically detect # The launchers for the sdl and glx binaries automatically detect
# the architecture. The launchers for the dedicated server do not. # the architecture. The launchers for the dedicated server do not.
cp $CWD/nexuiz-glx $PKG/usr/games/ cp $CWD/nexuiz-glx $PKG/usr/games/
@ -104,5 +112,9 @@ else
fi fi
chmod 755 $PKG/usr/games/nexuiz* chmod 755 $PKG/usr/games/nexuiz*
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG 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:-tgz}

View file

@ -1,10 +1,10 @@
PRGNAM="nexuiz" PRGNAM="nexuiz"
VERSION="2.5.1" VERSION="2.5.2"
HOMEPAGE="http://www.alientrap.org/nexuiz" HOMEPAGE="http://www.alientrap.org/nexuiz"
DOWNLOAD="http://downloads.sourceforge.net/nexuiz/nexuiz-251.zip" DOWNLOAD="http://downloads.sourceforge.net/nexuiz/nexuiz-252.zip"
DOWNLOAD_x86_64="" DOWNLOAD_x86_64=""
MD5SUM="8e945f71a922f1f87ab406bafadde93f" MD5SUM="d750bc328e58df8492f8d88bdcf818cb"
MD5SUM_x86_64="" MD5SUM_x86_64=""
MAINTAINER="Chess Griffin" MAINTAINER="B. Watson"
EMAIL="chess@chessgriffin.com" EMAIL="yalhcru@gmail.com"
APPROVED="dsomero" APPROVED="dsomero"

View file

@ -20,7 +20,7 @@ PRGNAM=vcdimager
VERSION=0.7.23 VERSION=0.7.23
ARCH=${ARCH:-i486} ARCH=${ARCH:-i486}
BUILD=${BUILD:-2} BUILD=${BUILD:-2}
TAG=${TAG:-SBo} TAG=${TAG:-_SBo}
CWD=$(pwd) CWD=$(pwd)
TMP=${TMP:-/tmp/SBo} TMP=${TMP:-/tmp/SBo}