aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-09-25 15:22:03 -0400
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2024-09-28 06:54:27 +0700
commite7e555fe6dbb6905e5f1ca5402b9fd5e4ba36b39 (patch)
tree711ef2eab4cfc09672bad47102f1af9d3dd60060
parent6d63d2cf75ed05bedb077be2608060708ae36cbd (diff)
games/ltris: Updated for version 2.0.1.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--games/ltris/doinst.sh4
-rw-r--r--games/ltris/ltris.SlackBuild9
-rw-r--r--games/ltris/ltris.info6
3 files changed, 15 insertions, 4 deletions
diff --git a/games/ltris/doinst.sh b/games/ltris/doinst.sh
index 65c7e2eeb9aa..bd6ae0a5ef0d 100644
--- a/games/ltris/doinst.sh
+++ b/games/ltris/doinst.sh
@@ -7,3 +7,7 @@ if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
/usr/bin/gtk-update-icon-cache -f usr/share/icons/hicolor >/dev/null 2>&1
fi
fi
+
+# 20240925 bkw: don't blow away the saved high scores on package update.
+touch var/lib/lgames/ltris2.hscr
+chmod 666 var/lib/lgames/ltris2.hscr
diff --git a/games/ltris/ltris.SlackBuild b/games/ltris/ltris.SlackBuild
index 3b9536cc27be..fd67d20770d3 100644
--- a/games/ltris/ltris.SlackBuild
+++ b/games/ltris/ltris.SlackBuild
@@ -7,6 +7,10 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20240925 bkw:
+# - update for v2.0.1.
+# - preserve global high score file on package update.
+
# 20240825 bkw:
# - new maintainer.
# - relicense as WTFPL.
@@ -18,7 +22,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ltris
SRCNAM=ltris2
-VERSION=${VERSION:-2.0}
+VERSION=${VERSION:-2.0.1}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -84,6 +88,9 @@ make install-strip DESTDIR=$PKG
# 20240825 bkw: in case someone's used to typing "ltris"...
ln -s ltris2 $PKG/usr/games/ltris
+# 20240925 bkw: don't blow away the saved high scores on package update.
+rm -f $PKG/var/lib/lgames/ltris2.hscr
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a COPYING Changelog README $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
diff --git a/games/ltris/ltris.info b/games/ltris/ltris.info
index fb82968ed213..84e394098098 100644
--- a/games/ltris/ltris.info
+++ b/games/ltris/ltris.info
@@ -1,8 +1,8 @@
PRGNAM="ltris"
-VERSION="2.0"
+VERSION="2.0.1"
HOMEPAGE="https://lgames.sourceforge.io/LTris/"
-DOWNLOAD="http://downloads.sourceforge.net/lgames/ltris2-2.0.tar.gz"
-MD5SUM="ec0f6779e1de9d917ee84a4e0015fde2"
+DOWNLOAD="https://downloads.sourceforge.net/lgames/ltris2-2.0.1.tar.gz"
+MD5SUM="4c626c8c18a39aff17a52854446e84c9"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""