aboutsummaryrefslogtreecommitdiff
path: root/system/oldschool-pc-fonts
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2023-03-07 23:56:54 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2023-03-12 08:48:27 +0700
commita11b4ebfde2e41fe3c507a8f16d68f17c427f748 (patch)
tree58ff5431fcb5e91a40474d1dc4b2b99de3615c9e /system/oldschool-pc-fonts
parentc18329b57362ecd52b5fc21491c1f61b951a9381 (diff)
system/oldschool-pc-fonts: Add douninst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/oldschool-pc-fonts')
-rw-r--r--system/oldschool-pc-fonts/doinst.sh3
-rw-r--r--system/oldschool-pc-fonts/oldschool-pc-fonts.SlackBuild5
2 files changed, 7 insertions, 1 deletions
diff --git a/system/oldschool-pc-fonts/doinst.sh b/system/oldschool-pc-fonts/doinst.sh
index 4d463758c8759..7e3c5f0234b2f 100644
--- a/system/oldschool-pc-fonts/doinst.sh
+++ b/system/oldschool-pc-fonts/doinst.sh
@@ -9,6 +9,9 @@ if [ -x /usr/bin/mkfontdir -a -x /usr/bin/mkfontscale ]; then
/usr/bin/mkfontdir .
)
fi
+
+[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null
+
if [ -x /usr/bin/fc-cache ]; then
/usr/bin/fc-cache -f
fi
diff --git a/system/oldschool-pc-fonts/oldschool-pc-fonts.SlackBuild b/system/oldschool-pc-fonts/oldschool-pc-fonts.SlackBuild
index 7d43a6c7fd966..bf44c7de08f28 100644
--- a/system/oldschool-pc-fonts/oldschool-pc-fonts.SlackBuild
+++ b/system/oldschool-pc-fonts/oldschool-pc-fonts.SlackBuild
@@ -24,6 +24,8 @@
# Now maintained by B. Watson <urchlay@slackware.uk>
+# 20230307 bkw: BUILD=2, add douninst.sh.
+
# 20201207 bkw:
# - Update for v2.2. Enough changes that we can't build the old version with
# the modified script.
@@ -42,7 +44,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=oldschool-pc-fonts
VERSION=${VERSION:-2.2}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -138,6 +140,7 @@ sed "s,@TYPE@,$TYPE," $CWD/slack-desc > $PKG/install/slack-desc
# actually included.
if [ "$TTF" = "yes" ]; then
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+ cp $PKG/install/doinst.sh $PKG/install/douninst.sh
fi
cd $PKG