mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
games/edgar: Updated for version 1.26.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
This commit is contained in:
parent
331a541d6c
commit
34efa7ddf3
2 changed files with 15 additions and 11 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Slackware build script for the legend of edgar
|
# 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.
|
# All rights reserved.
|
||||||
#
|
#
|
||||||
# Redistribution and use of this script, with or without modification, is
|
# Redistribution and use of this script, with or without modification, is
|
||||||
|
@ -23,13 +23,13 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=edgar
|
PRGNAM=edgar
|
||||||
VERSION=${VERSION:-1.20}
|
VERSION=${VERSION:-1.26}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
case "$( uname -m )" in
|
case "$( uname -m )" in
|
||||||
i?86) ARCH=i486 ;;
|
i?86) ARCH=i586 ;;
|
||||||
arm*) ARCH=arm ;;
|
arm*) ARCH=arm ;;
|
||||||
*) ARCH=$( uname -m ) ;;
|
*) ARCH=$( uname -m ) ;;
|
||||||
esac
|
esac
|
||||||
|
@ -41,8 +41,8 @@ PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
#-O2 flag is removed as it causes unwanted behaviour in the game
|
#-O2 flag is removed as it causes unwanted behaviour in the game
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i586" ]; then
|
||||||
SLKCFLAGS="-march=i486 -mtune=i686"
|
SLKCFLAGS="-march=i586 -mtune=i686"
|
||||||
LIBDIRSUFFIX=""
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-march=i686 -mtune=i686"
|
SLKCFLAGS="-march=i686 -mtune=i686"
|
||||||
|
@ -61,7 +61,7 @@ rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION-1.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||||
cd $PRGNAM-$VERSION
|
cd $PRGNAM-$VERSION
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
find -L . \
|
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
|
# 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)
|
# to /usr/man , but we may as well install it in the right place)
|
||||||
sed -i 's/share\/man/man/' makefile
|
sed -i 's/share\/man/man/' makefile
|
||||||
DESTDIR=$PKG
|
|
||||||
make
|
make
|
||||||
make install DESTDIR=$PKG
|
make install DESTDIR=$PKG
|
||||||
|
|
||||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
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
|
| 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
|
mkdir -p $PKG/install
|
||||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="edgar"
|
PRGNAM="edgar"
|
||||||
VERSION="1.20"
|
VERSION="1.26"
|
||||||
HOMEPAGE="http://www.parallelrealities.co.uk/p/legend-of-edgar.html"
|
HOMEPAGE="http://www.parallelrealities.co.uk/p/legend-of-edgar.html"
|
||||||
DOWNLOAD="http://downloads.sf.net/legendofedgar/edgar-1.20-1.tar.gz"
|
DOWNLOAD="https://github.com/riksweeney/edgar/archive/1.26/edgar-1.26.tar.gz"
|
||||||
MD5SUM="ced4756467f76029bb5b0a3e266cfd9b"
|
MD5SUM="d02ef9eef2b50104ac3dff97aaca9347"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES=""
|
REQUIRES=""
|
||||||
|
|
Loading…
Reference in a new issue