diff options
-rw-r--r-- | games/puzzles/README | 12 | ||||
-rw-r--r-- | games/puzzles/puzzles.SlackBuild | 16 | ||||
-rw-r--r-- | games/puzzles/puzzles.info | 6 |
3 files changed, 27 insertions, 7 deletions
diff --git a/games/puzzles/README b/games/puzzles/README index b464757cf5eb..2bdbb873dbde 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 81c418b881b6..3b1fb74960b1 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 2e6a2701f7a0..bd790b35d50e 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="" |