diff options
Diffstat (limited to 'games/edgar/edgar.SlackBuild')
-rw-r--r-- | games/edgar/edgar.SlackBuild | 41 |
1 files changed, 26 insertions, 15 deletions
diff --git a/games/edgar/edgar.SlackBuild b/games/edgar/edgar.SlackBuild index 7fc67636d0..4571631b3c 100644 --- a/games/edgar/edgar.SlackBuild +++ b/games/edgar/edgar.SlackBuild @@ -1,8 +1,8 @@ -#!/bin/sh +#!/bin/bash # Slackware build script for the legend of edgar -# Copyright 2017-9 Tim Dickson, dickson.tim@googlemail.com +# Copyright 2017-24 Tim Dickson, dickson.tim@googlemail.com # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,10 +22,18 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# 20220220 bkw: Modified by SlackBuilds.org: fix github download URL. +# 20220324 updated for v1.35 +# 20230105 updated for v1.36 +# 20240117 updated for v1.37 + +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=edgar -VERSION=${VERSION:-1.32} +VERSION=${VERSION:-1.37} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -35,12 +43,17 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} #-O2 flag is removed as it causes unwanted behaviour in the game +# 20220220 bkw: actually, these flags are never used. if [ "$ARCH" = "i586" ]; then SLKCFLAGS="-march=i586 -mtune=i686" LIBDIRSUFFIX="" @@ -66,24 +79,22 @@ cd $PRGNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \+ -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+ + # Fix doc installation path 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) +# 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 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 - -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 +strip $PKG/usr/games/* +gzip -9 $PKG/usr/man/man*/* mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -93,4 +104,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |