summaryrefslogtreecommitdiff
path: root/games/crossfire-client/crossfire-client.SlackBuild
diff options
context:
space:
mode:
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 898c157f71..806faa6dbd 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