mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-20 19:41:34 +01:00
games/wmquake: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b65109303b
commit
ce4c4ce480
1 changed files with 8 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue