aboutsummaryrefslogtreecommitdiff
path: root/games/crossfire-client/crossfire-client.SlackBuild
diff options
context:
space:
mode:
authorhollywoodb <hollywoodb@fastmail.fm>2010-05-11 19:44:28 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:28 +0200
commit6e640d227f4a526688ef981e06ef51af0e27a23a (patch)
tree38b03269553b398456ddcfe35406bd1d7b46f7ed /games/crossfire-client/crossfire-client.SlackBuild
parent88bf868662200896e9fd2217fbd6360818d52b67 (diff)
games/crossfire-client: Updated for version 1.9.1
Diffstat (limited to 'games/crossfire-client/crossfire-client.SlackBuild')
-rw-r--r--games/crossfire-client/crossfire-client.SlackBuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/games/crossfire-client/crossfire-client.SlackBuild b/games/crossfire-client/crossfire-client.SlackBuild
index 898c157f717f8..806faa6dbd388 100644
--- a/games/crossfire-client/crossfire-client.SlackBuild
+++ b/games/crossfire-client/crossfire-client.SlackBuild
@@ -9,11 +9,6 @@
# Modified by the SlackBuilds.org project
-if [ "$(id -u)" != "0" ]; then
- echo "This script must be run as root!"
- exit
-fi
-
set -e
NAME=crossfire-client
@@ -21,7 +16,7 @@ VERSION=1.9.1
ARCH=${ARCH:-i486}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-CWD=`pwd`
+CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=${PKG:-$TMP/package-$NAME}
OUTPUT=${OUTPUT:-/tmp}
@@ -32,7 +27,6 @@ cd $TMP
rm -rf $NAME-$VERSION
tar zxvf $CWD/$NAME-$VERSION.tar.gz
cd $NAME-$VERSION
-
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -45,30 +39,26 @@ fi
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
./configure \
- --prefix=/usr \
- --exec-prefix=/usr \
- --bindir=/usr/games \
- --disable-debug \
- --enable-gtk \
- --enable-sdl
+ --prefix=/usr \
+ --exec-prefix=/usr \
+ --bindir=/usr/games \
+ --disable-debug \
+ --enable-gtk \
+ --enable-sdl
make
make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in `find $PKG/usr/man -type l` ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+for i in $(find $PKG/usr/man -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/share/{pixmaps,applications}
install -m 0644 pixmaps/48x48.png $PKG/usr/share/pixmaps/crossfire-client.png
install -m 0644 gtk/crossfire-client.desktop $PKG/usr/share/applications/
-# Fix the icon path in the desktop file
-sed -i 's%Icon=crossfire-client%Icon=/usr/share/pixmaps/crossfire-client.png%' \
- $PKG/usr/share/applications/crossfire-client.desktop
-
mkdir -p $PKG/usr/doc/$NAME-$VERSION
cp -a AUTHORS COPYING ChangeLog INSTALL License NEWS NOTES README TODO \
- $PKG/usr/doc/$NAME-$VERSION
+ $PKG/usr/doc/$NAME-$VERSION
cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild
mkdir -pv $PKG/install