diff options
Diffstat (limited to 'games/fgo/fgo.SlackBuild')
-rw-r--r-- | games/fgo/fgo.SlackBuild | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/games/fgo/fgo.SlackBuild b/games/fgo/fgo.SlackBuild index 57f64c18a0..03e794b104 100644 --- a/games/fgo/fgo.SlackBuild +++ b/games/fgo/fgo.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for FGo! -# Copyright 2013 Philip Lacroix <philnx at bluebottle dot com> +# Copyright 2013-2014 Philip Lacroix <philnx at bluebottle dot com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fgo -VERSION=${VERSION:-1.4.5} +VERSION=${VERSION:-1.5.1} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -73,30 +73,24 @@ mkdir -p $PRGSHR/applications/ cat $CWD/$PRGNAM.desktop > $PRGSHR/applications/$PRGNAM.desktop # Symlinks to icons -for size in 32 48 64 128 ; do - mkdir -p $PRGSHR/icons/hicolor/${size}x${size}/apps - ln -sf /opt/$PRGNAM/data/pics/icon${size}.png \ - $PRGSHR/icons/hicolor/${size}x${size}/apps/$PRGNAM.png +for size in 16x16 24x24 32x32 48x48 64x64 128x128 256x256 scalable +do + if [ "${size}" != "scalable" ]; then EX=png ; else EX=svg ; fi + mkdir -p $PRGSHR/icons/hicolor/${size}/apps + ln -sf /opt/$PRGNAM/data/pics/icons/${size}/$PRGNAM.$EX \ + $PRGSHR/icons/hicolor/${size}/apps/ done -mkdir -p $PRGSHR/icons/hicolor/scalable/apps -ln -sf /opt/$PRGNAM/data/pics/icon.svg \ - $PRGSHR/icons/hicolor/scalable/apps/$PRGNAM.svg # Copy documentation, replace broken symlinks mkdir -p $PRGDOC cp -a $PRGDIR/docs/* $PRGDOC rm -f $PRGDOC/README/* -cp -a $PRGDIR/data/help/* $PRGDOC/README +cp -a $PRGDIR/data/help/* $PRGDOC/README/ # Symlink to config directory mkdir -p $PRGETC ln -sf /opt/$PRGNAM/data/config $PRGETC -# Set some basic variables (paths to fgfs and shared data) -cat $CWD/$PRGNAM.presets > $CWD/presets.tmp -cat $PRGDIR/data/config/presets >> $CWD/presets.tmp -mv $CWD/presets.tmp $PRGDIR/data/config/presets - # Don't clobber config files CONFIG=${CONFIG:-$PRGDIR/data/config} for lang in de en es fr it pl ; do |