summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorTim Dickson <dickson.tim@googlemail.com>2017-02-12 20:26:58 +0000
committerDavid Spencer <idlemoor@slackbuilds.org>2017-02-12 23:49:25 +0000
commit34efa7ddf39effb4e4863c2ebe3ed1d36afeeda6 (patch)
tree6dbc3fb18b7be9deb164628ad8307c615dfe3326 /games
parent331a541d6c1231e25681116655b58fbcad06a157 (diff)
downloadslackbuilds-34efa7ddf39effb4e4863c2ebe3ed1d36afeeda6.tar.gz
games/edgar: Updated for version 1.26.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/edgar/edgar.SlackBuild20
-rw-r--r--games/edgar/edgar.info6
2 files changed, 15 insertions, 11 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
diff --git a/games/edgar/edgar.info b/games/edgar/edgar.info
index 7ea24bab32..0d414cd85e 100644
--- a/games/edgar/edgar.info
+++ b/games/edgar/edgar.info
@@ -1,8 +1,8 @@
PRGNAM="edgar"
-VERSION="1.20"
+VERSION="1.26"
HOMEPAGE="http://www.parallelrealities.co.uk/p/legend-of-edgar.html"
-DOWNLOAD="http://downloads.sf.net/legendofedgar/edgar-1.20-1.tar.gz"
-MD5SUM="ced4756467f76029bb5b0a3e266cfd9b"
+DOWNLOAD="https://github.com/riksweeney/edgar/archive/1.26/edgar-1.26.tar.gz"
+MD5SUM="d02ef9eef2b50104ac3dff97aaca9347"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""