aboutsummaryrefslogtreecommitdiff
path: root/games/vera
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-03-08 01:27:56 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-03-12 08:48:27 +0700
commitae3ec6324b49d7d3ae7cdc84cb0304d6d0ed44d3 (patch)
tree4cd5715835ffd0f1b60368987f86f3521945a906 /games/vera
parent4df9d852264d82222816d9c2a651578e1d58bdd7 (diff)
games/vera: Clean up douninst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'games/vera')
-rw-r--r--games/vera/douninst.sh21
-rw-r--r--games/vera/vera.SlackBuild4
2 files changed, 8 insertions, 17 deletions
diff --git a/games/vera/douninst.sh b/games/vera/douninst.sh
index f452accdaa15c..1bef5020286ea 100644
--- a/games/vera/douninst.sh
+++ b/games/vera/douninst.sh
@@ -1,17 +1,6 @@
-# 20211015 bkw: I was going to have a douninst.sh that runs
-# /usr/bin/install-info --delete /usr/info/xroar.info.gz /usr/info/dir
-# but this won't work because removepkg has already deleted
-# /usr/info/xroar.info.gz before it runs douninst.sh. And you can't
-# use install-info to remove stuff *by name* from /usr/info/dir;
-# the info file must actually exist.
-# So the script has to manually remove the entry from the info dir,
-# and the Emulators section if it's become empty.
-
-if [ -e usr/info/dir ]; then
- # Remove the entry first:
- sed -i '/^\* V\.E\.R.\A\.:/d' usr/info/dir
- # If the Dictionaries section is empty now, remove it too:
- if grep -A1 '^Dictionaries$' usr/info/dir | tail -1 | grep -q '^$'; then
- sed -i '/^Dictionaries$/,+1d' usr/info/dir
- fi
+if [ -x /usr/bin/install-info -a -d usr/info ]; then
+ ( cd usr/info
+ rm -f dir
+ for i in *.info*; do /usr/bin/install-info $i dir 2>/dev/null; done
+ )
fi
diff --git a/games/vera/vera.SlackBuild b/games/vera/vera.SlackBuild
index 30b11422c3324..6c2eca316d211 100644
--- a/games/vera/vera.SlackBuild
+++ b/games/vera/vera.SlackBuild
@@ -6,6 +6,8 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20230308 bkw: BUILD=3, make douninst.sh less fugly.
+
# 20211015 bkw: BUILD=2
# - fix character encoding and formatting.
# - fix info node structure and dir entry.
@@ -22,7 +24,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=vera
VERSION=${VERSION:-1.24}
-BUILD=${BUILD:-2}
+BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}