summaryrefslogtreecommitdiffstats
path: root/system/ttf-ancient-fonts
diff options
context:
space:
mode:
author B. Watson2023-03-08 06:03:05 +0100
committer Willy Sudiarto Raharjo2023-03-12 02:48:27 +0100
commitbc4733a7a9174d1ddd193489037274c7ee4d75b6 (patch)
tree0551a214645412a663238cf2f9b2627c0b0ad20e /system/ttf-ancient-fonts
parenta11b4ebfde2e41fe3c507a8f16d68f17c427f748 (diff)
downloadslackbuilds-bc4733a7a9174d1ddd193489037274c7ee4d75b6.tar.gz
system/ttf-ancient-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/ttf-ancient-fonts')
-rw-r--r--system/ttf-ancient-fonts/doinst.sh3
-rw-r--r--system/ttf-ancient-fonts/ttf-ancient-fonts.SlackBuild5
2 files changed, 7 insertions, 1 deletions
diff --git a/system/ttf-ancient-fonts/doinst.sh b/system/ttf-ancient-fonts/doinst.sh
index 2b48ae510c..51eba0ed68 100644
--- a/system/ttf-ancient-fonts/doinst.sh
+++ b/system/ttf-ancient-fonts/doinst.sh
@@ -8,6 +8,9 @@ if [ -x /usr/bin/mkfontdir ]; then
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/ttf-ancient-fonts/ttf-ancient-fonts.SlackBuild b/system/ttf-ancient-fonts/ttf-ancient-fonts.SlackBuild
index 4361a06a6b..620b1cbdd7 100644
--- a/system/ttf-ancient-fonts/ttf-ancient-fonts.SlackBuild
+++ b/system/ttf-ancient-fonts/ttf-ancient-fonts.SlackBuild
@@ -29,11 +29,13 @@
# presumably included the licenses, so I'm including Debian's copyright
# file that asserts these fonts are "free for any use".
+# 20230308 bkw: BUILD=2, add douninst.sh.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=ttf-ancient-fonts
VERSION=${VERSION:-2.60}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
ARCH=noarch
@@ -91,6 +93,7 @@ if [ "$HAS_SYMBOLA" = "yes" ]; then
$PKG/install/slack-desc
fi
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cp $PKG/install/doinst.sh $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE