summaryrefslogtreecommitdiff
path: root/games/moria/moria.SlackBuild
diff options
context:
space:
mode:
authorhollywoodb <hollywoodb@fastmail.fm>2010-05-11 19:44:40 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:40 +0200
commite635901aa8229a9a82c423419f20f79676a87428 (patch)
tree4bab1256b14c5c02012a3b97dca08d6c90a916c2 /games/moria/moria.SlackBuild
parent1cf51a7bc8b09f5d09f4b650979f23e196f3fc4d (diff)
downloadslackbuilds-e635901aa8229a9a82c423419f20f79676a87428.tar.gz
games/moria: Updated for version 5.5.2
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/