summaryrefslogtreecommitdiff
path: root/games/ut2004/ut2004.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/ut2004/ut2004.SlackBuild')
-rw-r--r--games/ut2004/ut2004.SlackBuild10
1 files changed, 6 insertions, 4 deletions
diff --git a/games/ut2004/ut2004.SlackBuild b/games/ut2004/ut2004.SlackBuild
index 1caeed1932..47b682e602 100644
--- a/games/ut2004/ut2004.SlackBuild
+++ b/games/ut2004/ut2004.SlackBuild
@@ -59,6 +59,12 @@ mkdir -p $PKG/$GAMDIR
chmod +x $CWD/"$PRGNAM"_"$VERSION"-english.midway.dvd-3.run
$CWD/"$PRGNAM"_"$VERSION"-english.midway.dvd-3.run --noexec --target $PKG/$GAMDIR
cd $PKG/$GAMDIR
+
+# Extract binaries based on arch
+tar xvf linux-$UARCH.tar.gz
+rsync -a System patch/
+
+# Now we can set owner and mode
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
@@ -66,10 +72,6 @@ find -L . \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
-o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# Extract binaries based on arch
-tar xvf linux-$UARCH.tar.gz
-rsync -a System patch/
-
# Move launcher script
chmod +x $PKG/$GAMDIR/bin/ut2004
mv $PKG/$GAMDIR/bin/ut2004 $PKG/$GAMDIR/patch/System