summaryrefslogtreecommitdiffstats
path: root/system/univga-font/univga-font.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/univga-font/univga-font.SlackBuild')
-rw-r--r--system/univga-font/univga-font.SlackBuild16
1 files changed, 11 insertions, 5 deletions
diff --git a/system/univga-font/univga-font.SlackBuild b/system/univga-font/univga-font.SlackBuild
index d0e9ceb6ac..dffa83b51b 100644
--- a/system/univga-font/univga-font.SlackBuild
+++ b/system/univga-font/univga-font.SlackBuild
@@ -2,12 +2,17 @@
# Slackware build script for univga-font
-# 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.
# VERSION taken from the datestamp of the tarball.
+# 20230306 bkw: BUILD=4
+# - add douninst.sh.
+# - fix slack-desc formatting.
+# - mention bdf2psf.pl in README.
+
# 20201206 bkw: BUILD=3, added OTB font since -current's pango wants it.
# Also add PCF (disabled by default). Based on a patch from
# Tomasz Bywalec. Update README. Have slack-desc list the
@@ -19,15 +24,12 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=univga-font
VERSION=${VERSION:-20021031}
-BUILD=${BUILD:-3}
+BUILD=${BUILD:-4}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
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
@@ -114,6 +116,9 @@ mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a *.lsm $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# 20230306 bkw: douninst.sh makes package removal cleaner. it rebuilds
+# fonts.{dir|scale} after our fonts get removed, removes the "univga"
+# alias, and rebuilds the font cache.
mkdir -p $PKG/install
sed -e "s,@PCF@,$PCF," \
-e "s,@BDF@,$BDF," \
@@ -121,6 +126,7 @@ sed -e "s,@PCF@,$PCF," \
-e "s,@OTB@,$OTB," \
$CWD/slack-desc > $PKG/install/slack-desc
cat $CWD/doinst.sh > $PKG/install/doinst.sh
+cat $CWD/douninst.sh > $PKG/install/douninst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE