diff options
-rw-r--r-- | games/chocolate_duke3D/chocolate_duke3D.SlackBuild | 24 |
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 |