summaryrefslogtreecommitdiff
path: root/games/chocolate-doom/chocolate-doom.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'games/chocolate-doom/chocolate-doom.SlackBuild')
-rw-r--r--games/chocolate-doom/chocolate-doom.SlackBuild26
1 files changed, 20 insertions, 6 deletions
diff --git a/games/chocolate-doom/chocolate-doom.SlackBuild b/games/chocolate-doom/chocolate-doom.SlackBuild
index 622a7bd785..4703624a9a 100644
--- a/games/chocolate-doom/chocolate-doom.SlackBuild
+++ b/games/chocolate-doom/chocolate-doom.SlackBuild
@@ -4,11 +4,11 @@
# Written by B. Watson (yalhcru@gmail.com)
-# Licensed under the WTFPL. See http://sam.zoy.org/wtfpl/ for details.
+# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
PRGNAM=chocolate-doom
-VERSION=${VERSION:-1.7.0}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-2.0.0}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -70,19 +70,33 @@ CXXFLAGS="$SLKCFLAGS" \
--build=$ARCH-slackware-linux
make
-make install-strip DESTDIR=$PKG
+make install DESTDIR=$PKG
+
+# install-strip fails to strip the *-setup binaries.
+strip $PKG/usr/games/*
# Grrr. --docdir is being ignored.
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
mv $PKG/usr/share/doc/$PRGNAM/* $PKG/usr/doc/$PRGNAM-$VERSION
rm -rf $PKG/usr/share/doc
-find $PKG/usr/man -type f -exec gzip -9 {} \;
-for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+gzip -9 $PKG/usr/man/man?/*
# Move icons to standard Slackware pixmap icon dir:
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
+# Upstream doesn't include .desktop files or icons for the other games,
+# we'll generate them.
+cd $PKG/usr/share/applications
+ for GAME in Heretic Hexen Strife; do
+ game="$( echo $GAME | tr A-Z a-z )"
+ sed -e "s,Doom,$GAME,g" -e "s,doom,$game,g" \
+ $PRGNAM.desktop \
+ > chocolate-$game.desktop
+ ln -s $PRGNAM.png $PKG/usr/share/pixmaps/chocolate-$game.png
+ done
+cd -
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install