Browse Source

system/gohu-font: Add douninst.sh.

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

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
pull/198/head
B. Watson 3 years ago
committed by Willy Sudiarto Raharjo
parent
commit
a75cc652c4
No known key found for this signature in database GPG Key ID: 3F617144D7238786
  1. 5
      system/gohu-font/doinst.sh
  2. 14
      system/gohu-font/douninst.sh
  3. 5
      system/gohu-font/gohu-font.SlackBuild

5
system/gohu-font/doinst.sh

@ -1,6 +1,6 @@
if [ -x /usr/bin/mkfontdir ]; then
( cd usr/share/fonts/misc
if ! grep -q ^gohu fonts.alias 2>/dev/null; then
if ! grep -q '^gohu1[14]\(bold\|\) ' fonts.alias 2>/dev/null; then
echo 'gohu11 -gohu-gohufont-medium-r-normal--11-80-100-100-c-60-iso10646-1' >> fonts.alias
echo 'gohu11bold -gohu-gohufont-bold-r-normal--11-80-100-100-c-60-iso10646-1' >> fonts.alias
echo 'gohu14 -gohu-gohufont-medium-r-normal--14-100-100-100-c-80-iso10646-1' >> fonts.alias
@ -10,6 +10,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

14
system/gohu-font/douninst.sh

@ -0,0 +1,14 @@
if [ -x /usr/bin/mkfontdir ]; then
( cd usr/share/fonts/misc
grep -v '^gohu1[14]\(bold\|\) ' fonts.alias > fonts.alias.new
mv fonts.alias.new fonts.alias
mkfontscale .
mkfontdir .
)
fi
[ "$DISPLAY" != "" ] && xset fp rehash 2>/dev/null
if [ -x usr/bin/fc-cache ]; then
usr/bin/fc-cache -f
fi

5
system/gohu-font/gohu-font.SlackBuild

@ -9,11 +9,13 @@
# 20170328 bkw: anyone looking to convert BDF fonts for use with the
# console might be interested in this.
# 20230307 bkw: BUILD=2, add douninst.sh
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gohu-font
VERSION=${VERSION:-2.1}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -96,6 +98,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
sed "s,@FONTTYPES@,$FONTTYPES," $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
Loading…
Cancel
Save