diff options
Diffstat (limited to 'games/xmoto/xmoto.SlackBuild')
-rw-r--r-- | games/xmoto/xmoto.SlackBuild | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/games/xmoto/xmoto.SlackBuild b/games/xmoto/xmoto.SlackBuild index f8d985ca55a28..dfd310d666d9b 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 |