summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author Gethyn ThomasQuail2015-12-11 01:23:08 +0100
committer Willy Sudiarto Raharjo2015-12-11 01:23:08 +0100
commitb65109303bd2d22747a03b1fc2613ec0b63d134c (patch)
tree2066b3c3137ba74fc4cb566ebc9848abf0e5588a
parentb912541251c34c8b3b6bc4c4505e726364d63746 (diff)
downloadslackbuilds-b65109303bd2d22747a03b1fc2613ec0b63d134c.tar.gz
games/chocolate_duke3D: Update script.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/chocolate_duke3D/chocolate_duke3D.SlackBuild24
1 files changed, 9 insertions, 15 deletions
diff --git a/games/chocolate_duke3D/chocolate_duke3D.SlackBuild b/games/chocolate_duke3D/chocolate_duke3D.SlackBuild
index ab6f27addf..d7735997b8 100644
--- a/games/chocolate_duke3D/chocolate_duke3D.SlackBuild
+++ b/games/chocolate_duke3D/chocolate_duke3D.SlackBuild
@@ -29,6 +29,7 @@ PRGNAM=chocolate_duke3D
VERSION=${VERSION:-dd8db653e08cc3029a84dbfd36b2c927a8d3e8fc}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
+GAMDIR=usr/share/games/duke3d
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -77,24 +78,17 @@ find -L . \
./configure
make
-# Makes these folders so we can copy it into the Slackware games standard
-mkdir -p $PKG/usr/share/games/duke3d
-mkdir -p $PKG/usr/games
-
-# Makes desktop file related directories
-mkdir -p $PKG/usr/share/applications
-mkdir -p $PKG/usr/share/pixmaps
-
# Copies over compiled binary
-cp -a chocolate-duke3d $PKG/usr/share/games/duke3d
+install -D -m 0755 chocolate-duke3d $PKG/$GAMDIR/chocolate-duke3d
-# Copies over shell script to play with ease
-cp -a $CWD/chocolate-duke3d $PKG/usr/games
-chmod 0755 $PKG/usr/games/chocolate-duke3d
+# Desktop and launcher related stuff
+install -D -m 0644 $CWD/chocolate-duke3d.png $PKG/usr/share/pixmaps/chocolate-duke3d.png
+install -D -m 0644 $CWD/chocolate-duke3d.desktop $PKG/usr/share/applications/chocolate-duke3d.desktop
+install -D -m 0755 $CWD/chocolate-duke3d $PKG/usr/games/chocolate-duke3d
-# Copies over desktop file and icon
-cp -a $CWD/chocolate-duke3d.desktop $PKG/usr/share/applications
-cp -a $CWD/chocolate-duke3d.png $PKG/usr/share/pixmaps
+# 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.md $PKG/usr/doc/$PRGNAM-$VERSION