summaryrefslogtreecommitdiff
path: root/games/moria/moria.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/moria/moria.SlackBuild')
-rw-r--r--games/moria/moria.SlackBuild9
1 files changed, 2 insertions, 7 deletions
diff --git a/games/moria/moria.SlackBuild b/games/moria/moria.SlackBuild
index 67d4cba237..94eb329a1b 100644
--- a/games/moria/moria.SlackBuild
+++ b/games/moria/moria.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=moria
@@ -22,7 +17,7 @@ DEBVERSION=5.5.2-5
ARCH=i386 # Leave this alone - this is a binary repackaging
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,7 @@ rm -rf $PKG
mkdir -p $TMP/$NAME-$VERSION $PKG $OUTPUT
cd $TMP/$NAME-$VERSION
ar x $CWD/${NAME}_${DEBVERSION}_${ARCH}.deb
-tar -C $PKG -zxf data.tar.gz
+tar zxf data.tar.gz -C $PKG
chown root:root $PKG/usr/games/moria
mv $PKG/usr/share/* $PKG/usr/