games/rezerwar: Updated for version 0.4.2.

Signed-off-by: Erik Hanson <erik@slackbuilds.org>
This commit is contained in:
Larry Hajali 2010-06-14 01:40:01 -05:00 committed by Erik Hanson
parent 01ed7459c0
commit f5f383a142
4 changed files with 16 additions and 29 deletions

View file

@ -1,10 +1,3 @@
if [ -x /usr/bin/update-desktop-database ]; then
/usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi
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 usr/share/icons/hicolor >/dev/null 2>&1
fi
fi

View file

@ -5,25 +5,23 @@
# Written by Larry Hajali <larryhaja[at]gmail[dot]com>
PRGNAM=rezerwar
VERSION=${VERSION:-0.4.1}
VERSION=0.4.2
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
# Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
@ -47,6 +45,7 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
SDLCONFIG="sdl-config" \
TARGET_BIN="/usr/games" \
TARGET_DOC="/usr/doc/$PRGNAM-$VERSION" \
TARGET_DATA="/usr/share/$PRGNAM" \
@ -59,14 +58,9 @@ 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/share/applications
mkdir -p $PKG/usr/share/{applications,pixmaps}
install -m 0644 $CWD/$PRGNAM.desktop $PKG/usr/share/applications
for i in 16 32; do
convert data/gfx/icons/icon_${i}x${i}.ico $PRGNAM-$i.png
install -D -m 0644 $PRGNAM-$i.png \
$PKG/usr/share/icons/hicolor/${i}x${i}/apps/$PRGNAM.png
done
install -m 0644 $CWD/$PRGNAM.png $PKG/usr/share/pixmaps
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

View file

@ -1,10 +1,10 @@
PRGNAM="rezerwar"
VERSION="0.4.1"
VERSION="0.4.2"
HOMEPAGE="http://tamentis.com/projects/rezerwar/"
DOWNLOAD="http://tamentis.com/projects/rezerwar/files/rezerwar-0.4.1.tar.gz"
MD5SUM="10aa0006d230d0cd5691b31219ca3b8f"
DOWNLOAD="http://tamentis.com/projects/rezerwar/files/rezerwar-0.4.2.tar.gz"
MD5SUM="42018abe251e45ab8cc30133cde61ff8"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="Larry Hajali"
EMAIL="larryhaja[at]gmail[dot]com"
APPROVED="rworkman"
APPROVED="Erik Hanson"

BIN
games/rezerwar/rezerwar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB