games/wmquake: Update script.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Gethyn ThomasQuail 2015-12-11 07:24:06 +07:00 committed by Willy Sudiarto Raharjo
parent b65109303b
commit ce4c4ce480

View file

@ -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
# Copies over shell script to play with ease
cp -a $CWD/wmquake $PKG/usr/games
chmod 0755 $PKG/usr/games/wmquake
# Desktop and launcher related stuff
install -D -m 0755 $CWD/$PRGNAM $PKG/usr/games/$PRGNAM
# 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