summaryrefslogtreecommitdiff
path: root/games/wmquake
diff options
context:
space:
mode:
Diffstat (limited to 'games/wmquake')
-rw-r--r--games/wmquake/wmquake.SlackBuild20
1 files changed, 8 insertions, 12 deletions
diff --git a/games/wmquake/wmquake.SlackBuild b/games/wmquake/wmquake.SlackBuild
index 086123b64e..e31c4cf16e 100644
--- a/games/wmquake/wmquake.SlackBuild
+++ b/games/wmquake/wmquake.SlackBuild
@@ -29,6 +29,7 @@ PRGNAM=wmquake
VERSION=${VERSION:-1.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+GAMDIR=usr/share/games/quake/wmquake
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -74,20 +75,15 @@ find -L . \
make
-# Makes shared game folder
-mkdir -p $PKG/usr/share/games/quake/wmquake
-mkdir -p $PKG/usr/games
-
-# Make it so games group can access folder
-chgrp games $PKG/usr/share/games/quake/wmquake
-chmod 774 $PKG/usr/share/games/quake/wmquake
-
# Copies over compiled binary
-cp -a wmquake $PKG/usr/share/games/quake/wmquake
+install -D -m 0755 $PRGNAM $PKG/$GAMDIR/$PRGNAM
+
+# Desktop and launcher related stuff
+install -D -m 0755 $CWD/$PRGNAM $PKG/usr/games/$PRGNAM
-# Copies over shell script to play with ease
-cp -a $CWD/wmquake $PKG/usr/games
-chmod 0755 $PKG/usr/games/wmquake
+# Make it so the games group can access the folder
+chgrp games $PKG/$GAMDIR
+chmod 774 $PKG/$GAMDIR
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a README.INSTALL README.source README.wmquake $PKG/usr/doc/$PRGNAM-$VERSION