freebsd-ports/x11-fonts/cyberbit-ttfonts/pkg-deinstall
Maho Nakata 0bec1d1481 Add cyberbit-ttfonts.
Bitstream Cyberbit is a TrueType font. It is an international font, containing
characters from many languages. Each character is encoded with its Unicode
value, according to Unicode 2.0 standards.

Cyberbit was developed by Bitstream to provide Unicode Consortium members with
a test font. It is therefore distributed freely to customers that need advanced
multilingual fonts for testing and other non-commercial uses. Customers that
wish to use Cyberbit for other purposes must license the font from Bitstream.
2005-02-10 06:41:48 +00:00

14 lines
437 B
Bash

#!/bin/sh
XFLDNAME="-Bitstream-Bitstream\ Cyberbit-"
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
cd ${FONTDIR}
sed -e "/${XFLDNAME}/d" fonts.dir > fonts.dir.tmp
numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc)
echo ${numfonts} > fonts.dir
sed -e 1d fonts.dir.tmp >> fonts.dir
sed -e "/^${XFLDNAME}/d" fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias
rm -f fonts.dir.tmp