aboutsummaryrefslogtreecommitdiff
path: root/games/edgar
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-02-20 13:01:30 -0500
committerRobby Workman <rworkman@slackbuilds.org>2022-02-21 14:34:27 -0600
commitb58a0647f714d4fff3a98a828f312fff4c75e5e9 (patch)
tree7ee70d6e4e16bf9e0e921fdde71e70e68989c41b /games/edgar
parent4f9b501c538e9cd43c3cc848ed2c25575d855b06 (diff)
games/edgar: Fix download URL.
Signed-off-by: B. Watson <yalhcru@gmail.com>
Diffstat (limited to 'games/edgar')
-rw-r--r--games/edgar/edgar.SlackBuild26
-rw-r--r--games/edgar/edgar.info2
2 files changed, 13 insertions, 15 deletions
diff --git a/games/edgar/edgar.SlackBuild b/games/edgar/edgar.SlackBuild
index ee2752626c8b..06353b173bc6 100644
--- a/games/edgar/edgar.SlackBuild
+++ b/games/edgar/edgar.SlackBuild
@@ -22,6 +22,8 @@
# 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.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=edgar
@@ -38,9 +40,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -51,6 +50,7 @@ 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=""
@@ -71,29 +71,27 @@ 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 . \
\( -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
diff --git a/games/edgar/edgar.info b/games/edgar/edgar.info
index b8662a68e524..518b6d462760 100644
--- a/games/edgar/edgar.info
+++ b/games/edgar/edgar.info
@@ -1,7 +1,7 @@
PRGNAM="edgar"
VERSION="1.34"
HOMEPAGE="https://www.parallelrealities.co.uk/games/edgar/"
-DOWNLOAD="https://github.com/riksweeney/edgar/archive/1.34/edgar-1.34-1.tar.gz"
+DOWNLOAD="https://github.com/riksweeney/edgar/archive/1.34/edgar-1.34.tar.gz"
MD5SUM="571d554720287038f0b4ed63ec840142"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""