system/oldschool-pc-fonts: Add douninst.sh.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-03-07 23:56:54 -05:00 committed by Willy Sudiarto Raharjo
parent c18329b573
commit a11b4ebfde
No known key found for this signature in database
GPG key ID: 3F617144D7238786
2 changed files with 7 additions and 1 deletions

View file

@ -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

View file

@ -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