diff options
author | Philip Lacroix <philnx@posteo.de> | 2014-11-29 00:27:01 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-29 00:27:01 +0700 |
commit | 6975b2f235b761609b2defa32b2e78003bda9625 (patch) | |
tree | eb0a3fac3eca122bfd454ac9ea838674a926ba88 /games/fgo/fgo.SlackBuild | |
parent | 7f13c773c847ccfdf217f2c9c10625b70c1c5239 (diff) |
games/fgo: Updated for version 1.5.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/fgo/fgo.SlackBuild')
-rw-r--r-- | games/fgo/fgo.SlackBuild | 44 |
1 files changed, 20 insertions, 24 deletions
diff --git a/games/fgo/fgo.SlackBuild b/games/fgo/fgo.SlackBuild index 890cb401aca3..da8cddfe9a52 100644 --- a/games/fgo/fgo.SlackBuild +++ b/games/fgo/fgo.SlackBuild @@ -1,6 +1,6 @@ #!/bin/sh -# Slackware build script for fgo! +# Slackware build script for FGo!, a graphical front end for FlightGear # Copyright 2013-2014 Philip Lacroix <philnx at posteo dot de> # All rights reserved. @@ -23,7 +23,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fgo -VERSION=${VERSION:-1.5.2} +VERSION=${VERSION:-1.5.4} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -59,41 +59,37 @@ find -L . \ PRGDIR=$PKG/opt/$PRGNAM PRGDAT=$PKG/opt/$PRGNAM/data PRGSHR=$PKG/usr/share -PRGETC=$PKG/etc/$PRGNAM -PRGDOC=$PKG/usr/doc/$PRGNAM-$VERSION +PRGDOC=$PKG/usr/doc +PRGETC=$PKG/etc # Copy files to destination. mkdir -p $PRGDIR cp -a * $PRGDIR/ -# Set permissions of the executable file; create symlink. +# Set permissions of the executable file and create symlink. mkdir -p $PKG/usr/bin chmod 755 $PRGDIR/$PRGNAM ln -sf /opt/$PRGNAM/$PRGNAM $PKG/usr/bin/ -# Create entry for desktop menu. -mkdir -p $PRGSHR/applications -cat $CWD/$PRGNAM.desktop > $PRGSHR/applications/$PRGNAM.desktop - -# Create symlinks to icons. -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 +# Create symlink to config directory. +mkdir -p $PRGETC +ln -sf /opt/$PRGNAM/data/config $PRGETC/$PRGNAM -# Copy documentation, replace broken symlinks. +# Create symlink to documentation. mkdir -p $PRGDOC -cp -a $PRGDIR/docs/* $PRGDOC/ -cat $CWD/$PRGNAM.SlackBuild > $PRGDOC/$PRGNAM.SlackBuild -for lang in de en es fr it ja pl ; do - ln -sf /opt/$PRGNAM/data/help/help_${lang} $PRGDOC/README/README_${lang} +ln -sf /opt/$PRGNAM/docs $PRGDOC/$PRGNAM-$VERSION + +# Create symlinks to icons. +for size in 16 24 32 48 64 128 256 scalable ; do + if [ $size != scalable ]; then ex=png; size=${size}x${size}; else ex=svg; fi + mkdir -p $PRGSHR/icons/hicolor/$size/apps + ln -sf /opt/$PRGNAM/share/icons/$size/$PRGNAM.$ex \ + $PRGSHR/icons/hicolor/$size/apps/ done -# Create symlink to config directory. -mkdir -p $PRGETC -ln -sf /opt/$PRGNAM/data/config $PRGETC/ +# Create symlink to desktop file. +mkdir -p $PRGSHR/applications +ln -sf /opt/$PRGNAM/share/$PRGNAM.desktop $PRGSHR/applications/ # Don't clobber config files. for conf in $PRGDAT/config/* ; do |