summaryrefslogtreecommitdiffstats
path: root/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild')
-rw-r--r--accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild14
1 files changed, 7 insertions, 7 deletions
diff --git a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
index 1f5dc30a33..751eda3525 100644
--- a/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
+++ b/accessibility/fonts-opendyslexic/fonts-opendyslexic.SlackBuild
@@ -2,24 +2,25 @@
# Slackware build script for fonts-opendyslexic
-# Written by B. Watson (yalhcru@gmail.com)
+# Written by B. Watson (urchlay@slackware.uk)
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# Yes, I know, there are newer versions of this at github. However,
# they lack the compiled OpenDyslexicMono (terminal) font, and the tools
# required to compile the source would require me submitting 15 or 20
-# python SlackBuilds for the tools and all their deps. Plus, they need
-# versions of libraries that probably are too new to work on 14.2.
+# python SlackBuilds for the tools and all their deps. Not interested.
# 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}
@@ -27,9 +28,6 @@ SRCDIR=open-dyslexic-$VERSION-Stable
ARCH=noarch
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -93,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