summaryrefslogtreecommitdiffstats
path: root/accessibility
diff options
context:
space:
mode:
author B. Watson2023-03-07 08:15:03 +0100
committer Willy Sudiarto Raharjo2023-03-12 02:48:26 +0100
commit2dfc13cd6070f84509932e501b1c558ca21e178d (patch)
tree46f788de15cefe1dc71f3ad99ff9c96b2165c6c6 /accessibility
parentaab102a28a28d58a879ef263e3263d4c7ad03650 (diff)
downloadslackbuilds-2dfc13cd6070f84509932e501b1c558ca21e178d.tar.gz
accessibility/fonts-opendyslexic: Add douninst.sh.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'accessibility')
-rw-r--r--accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild6
1 files changed, 5 insertions, 1 deletions
diff --git a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
index cd61728e08..751eda3525 100644
--- a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
+++ b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
@@ -14,11 +14,13 @@
# The Debian package only includes the .otf fonts. That's what I'll do
# by default, but I'll support installing the other types if needed.
+# 20230307 bkw: BUILD=2, add douninst.sh.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=fonts-opendyslexic
VERSION=${VERSION:-20160623}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -89,8 +91,10 @@ sed "s,@DESCFMT@,$DESCFMT," $CWD/slack-desc > $PKG/install/slack-desc
# Only install doinst.sh if TTF and/or OTF fonts are included, because
# fc-cache and X only know about these 2 types.
+# 20230307 bkw: the same code works to clean up after removepkg.
if [ -n "$MKFDIRS" ]; then
sed "s,@MKFDIRS@,$MKFDIRS," $CWD/doinst.sh > $PKG/install/doinst.sh
+ cp $PKG/install/doinst.sh $PKG/install/douninst.sh
fi
cd $PKG