games/edgar: Updated for version 1.26.

Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
Tim Dickson 2017-02-12 20:26:58 +00:00 committed by David Spencer
parent 331a541d6c
commit 34efa7ddf3
2 changed files with 15 additions and 11 deletions

View file

@ -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

View file

@ -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=""