aboutsummaryrefslogtreecommitdiff
path: root/games/xmoto/xmoto.SlackBuild
diff options
context:
space:
mode:
authorhollywoodb <hollywoodb@fastmail.fm>2010-05-11 19:44:44 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:44 +0200
commit3026a3b8068c57ed65e958246e32045965abcd92 (patch)
tree1d5477d22e185d50e7c6c9a9ef62d232bc1315e8 /games/xmoto/xmoto.SlackBuild
parent809ec1261ab5e9b7b7403d5cc086228d8caa3346 (diff)
games/xmoto: Updated for version 0.2.4
Diffstat (limited to 'games/xmoto/xmoto.SlackBuild')
-rw-r--r--games/xmoto/xmoto.SlackBuild12
1 files changed, 1 insertions, 11 deletions
diff --git a/games/xmoto/xmoto.SlackBuild b/games/xmoto/xmoto.SlackBuild
index f8d985ca55a2..dfd310d666d9 100644
--- a/games/xmoto/xmoto.SlackBuild
+++ b/games/xmoto/xmoto.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=xmoto
@@ -21,7 +16,7 @@ VERSION=0.2.4
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}
@@ -31,7 +26,6 @@ mkdir -p $TMP $PKG $OUTPUT
cd $TMP
tar zxvf $CWD/$NAME-$VERSION-src.tar.gz
cd $NAME-$VERSION
-
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -64,10 +58,6 @@ mkdir -p $PKG/usr/share/{pixmaps,applications}
install -m 0644 extra/$NAME.xpm $PKG/usr/share/pixmaps/
install -m 0644 extra/$NAME.desktop $PKG/usr/share/applications/
-# Fix path to icon in desktop file
-sed -i 's|Icon=xmoto.xpm|Icon=/usr/share/pixmaps/xmoto.xpm|' \
- $PKG/usr/share/applications/$NAME.desktop
-
# X-Moto doesn't like to honour the locale options that
# the configure script says it does.
mv $PKG/usr/share/games/locale $PKG/usr/share