From ce4c4ce4803029d7fa58169b50833d373473b10b Mon Sep 17 00:00:00 2001 From: Gethyn ThomasQuail Date: Fri, 11 Dec 2015 07:24:06 +0700 Subject: games/wmquake: Update script. Signed-off-by: Willy Sudiarto Raharjo --- games/wmquake/wmquake.SlackBuild | 20 ++++++++------------ 1 file 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 -- cgit v1.2.3-80-g2a13