summaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
author Erich Ritz2022-02-09 17:27:06 +0100
committer Willy Sudiarto Raharjo2022-02-10 08:11:29 +0100
commit9ff5b29e3f87662b1b6fc2d3d84ac3cdf5fa1c26 (patch)
tree515b5789c5fe2db403b8e2910c0c4f213aae0def /games
parent1b8b6859eded8827879b0e9060b3dcb5cf12eaea (diff)
downloadslackbuilds-9ff5b29e3f87662b1b6fc2d3d84ac3cdf5fa1c26.tar.gz
games/puzzles: Updated for version 20220128.c43a34f.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games')
-rw-r--r--games/puzzles/README12
-rw-r--r--games/puzzles/puzzles.SlackBuild16
-rw-r--r--games/puzzles/puzzles.info6
3 files changed, 27 insertions, 7 deletions
diff --git a/games/puzzles/README b/games/puzzles/README
index b464757cf5..2bdbb873db 100644
--- a/games/puzzles/README
+++ b/games/puzzles/README
@@ -1,2 +1,14 @@
This is a collection of puzzle games written by Simon Tatham. They run
natively on various platforms including Linux, Windows, and Mac OS X.
+
+The author periodically makes updates and old versions are inaccessible
+from the website. In that case you can either get the tested version
+from
+
+https://slackware.uk/sbosrcarch/by-name/puzzles/puzzles/
+
+or get the latest version from
+
+https://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles.tar.gz
+
+and execute the script with VERSION=latest
diff --git a/games/puzzles/puzzles.SlackBuild b/games/puzzles/puzzles.SlackBuild
index 81c418b881..3b1fb74960 100644
--- a/games/puzzles/puzzles.SlackBuild
+++ b/games/puzzles/puzzles.SlackBuild
@@ -25,7 +25,7 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=puzzles
-VERSION=${VERSION:-20211212.b56c994}
+VERSION=${VERSION:-20220128.c43a34f}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -38,6 +38,16 @@ if [ -z "$ARCH" ]; then
esac
fi
+set -e
+
+if [ "$VERSION" = "latest" ]; then
+ VERSION=$(basename $(tar -tf $CWD/puzzles.tar.gz | head -1))
+ VERSION=${VERSION/puzzles-/}
+ SRCVER=
+else
+ SRCVER=-$VERSION
+fi
+
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -61,13 +71,11 @@ else
LIBDIRSUFFIX=""
fi
-set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar xvf $CWD/$PRGNAM$SRCVER.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
diff --git a/games/puzzles/puzzles.info b/games/puzzles/puzzles.info
index 2e6a2701f7..bd790b35d5 100644
--- a/games/puzzles/puzzles.info
+++ b/games/puzzles/puzzles.info
@@ -1,8 +1,8 @@
PRGNAM="puzzles"
-VERSION="20211212.b56c994"
+VERSION="20220128.c43a34f"
HOMEPAGE="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/"
-DOWNLOAD="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-20211212.b56c994.tar.gz"
-MD5SUM="49b2e8a149149993fea5acd1b03b78ce"
+DOWNLOAD="https://www.chiark.greenend.org.uk/~sgtatham/puzzles/puzzles-20220128.c43a34f.tar.gz"
+MD5SUM="10ec988b3f1c6beec2e04eef6110652c"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""