diff options
Diffstat (limited to 'system/univga-font/univga-font.SlackBuild')
-rw-r--r-- | system/univga-font/univga-font.SlackBuild | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/system/univga-font/univga-font.SlackBuild b/system/univga-font/univga-font.SlackBuild index 907dd8d16b..dffa83b51b 100644 --- a/system/univga-font/univga-font.SlackBuild +++ b/system/univga-font/univga-font.SlackBuild @@ -1,13 +1,18 @@ -#!/bin/sh +#!/bin/bash # 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 @@ -15,14 +20,21 @@ # 20191224 bkw: BUILD=2, xset fp rehash in doinst.sh. +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 -CWD=$(pwd) +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -104,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," \ @@ -111,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:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE |