summaryrefslogtreecommitdiff
path: root/games/rezerwar/rezerwar.SlackBuild
diff options
context:
space:
mode:
authorLarry Hajali <larryhaja[at]gmail[dot]com>2010-06-14 01:40:01 -0500
committerErik Hanson <erik@slackbuilds.org>2010-06-14 01:40:01 -0500
commitf5f383a1422ded413117da0987af4bf773b717cf (patch)
tree3784d12907c6a937a2e9f2788a27d59a37ce9d99 /games/rezerwar/rezerwar.SlackBuild
parent01ed7459c0a1c1d812d371693a2d0898953f84ef (diff)
downloadslackbuilds-f5f383a1422ded413117da0987af4bf773b717cf.tar.gz
games/rezerwar: Updated for version 0.4.2.
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'games/rezerwar/rezerwar.SlackBuild')
-rw-r--r--games/rezerwar/rezerwar.SlackBuild24
1 files changed, 9 insertions, 15 deletions
diff --git a/games/rezerwar/rezerwar.SlackBuild b/games/rezerwar/rezerwar.SlackBuild
index 74de956741..7c7042b00e 100644
--- a/games/rezerwar/rezerwar.SlackBuild
+++ b/games/rezerwar/rezerwar.SlackBuild
@@ -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:
+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 ;;
- # 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 [ "$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