diff options
author | B. Watson <yalhcru@gmail.com> | 2014-03-22 08:35:33 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-03-22 09:51:48 +0700 |
commit | 1b873a3c65f689a546c15a102c874ef1a0f84a42 (patch) | |
tree | c0a798f9798f2f334d8c7ad93e76184b4672d62c /games/chocolate-doom/chocolate-doom.SlackBuild | |
parent | 294efdfe656de4d0b3ac6924330389bf71f8d724 (diff) | |
download | slackbuilds-1b873a3c65f689a546c15a102c874ef1a0f84a42.tar.gz |
games/chocolate-doom: Updated for version 2.0.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/chocolate-doom/chocolate-doom.SlackBuild')
-rw-r--r-- | games/chocolate-doom/chocolate-doom.SlackBuild | 26 |
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 |