diff options
author | Tim Dickson <dickson.tim@googlemail.com> | 2017-02-12 20:26:58 +0000 |
---|---|---|
committer | David Spencer <idlemoor@slackbuilds.org> | 2017-02-12 23:49:25 +0000 |
commit | 34efa7ddf39effb4e4863c2ebe3ed1d36afeeda6 (patch) | |
tree | 6dbc3fb18b7be9deb164628ad8307c615dfe3326 /games/edgar/edgar.SlackBuild | |
parent | 331a541d6c1231e25681116655b58fbcad06a157 (diff) | |
download | slackbuilds-34efa7ddf39effb4e4863c2ebe3ed1d36afeeda6.tar.gz |
games/edgar: Updated for version 1.26.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games/edgar/edgar.SlackBuild')
-rw-r--r-- | games/edgar/edgar.SlackBuild | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/games/edgar/edgar.SlackBuild b/games/edgar/edgar.SlackBuild index 9b05018107..43e2123f17 100644 --- a/games/edgar/edgar.SlackBuild +++ b/games/edgar/edgar.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for the legend of edgar -# Copyright 2015 Tim Dickson, dickson.tim@googlemail.com +# Copyright 2017 Tim Dickson, dickson.tim@googlemail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -23,13 +23,13 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=edgar -VERSION=${VERSION:-1.20} +VERSION=${VERSION:-1.26} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then case "$( uname -m )" in - i?86) ARCH=i486 ;; + i?86) ARCH=i586 ;; arm*) ARCH=arm ;; *) ARCH=$( uname -m ) ;; esac @@ -41,8 +41,8 @@ PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} #-O2 flag is removed as it causes unwanted behaviour in the game -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-march=i486 -mtune=i686" +if [ "$ARCH" = "i586" ]; then + SLKCFLAGS="-march=i586 -mtune=i686" LIBDIRSUFFIX="" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-march=i686 -mtune=i686" @@ -61,7 +61,7 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz +tar xvf $CWD/$PRGNAM-$VERSION.tar.gz cd $PRGNAM-$VERSION chown -R root:root . find -L . \ @@ -76,14 +76,18 @@ sed -i 's/share\/doc/doc/' makefile # Fix man installation path (the original works due to a link in slackware from /usr/share/man # to /usr/man , but we may as well install it in the right place) sed -i 's/share\/man/man/' makefile -DESTDIR=$PKG + make make install DESTDIR=$PKG find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM/$PRGNAM.SlackBuild +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 + +mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc |