1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/chinese/arphicttf/pkg-deinstall
Foxfair Hu 8aab7760b3 PR: 14393
Submitted by:		Keith Jang <jtjang@gcn.net.tw>
Import new port: Free-distributable Chinese Big5/GB TTFs.

This port installs four Chinese Big5/GB TrueType fonts, includes
Kaiti/Mingti(Big5) and Kaiti/Sungti(GB). It then can be used along
with X Window System or typesetting software like CJK. Thanks to
Arphic Technology, you may freely distribute these high-quality
fonts under a GPL-based license. See ARPHIC_*.TXT for details.
1999-10-19 08:07:46 +00:00

18 lines
461 B
Bash

#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType
cd ${FONTDIR}
# Restore fonts.dir
sed -e '/ -ar-/d' -e '/ -arphic-/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
rm -f fonts.dir.tmp
# Restore fonts.alias
sed -e '/^-ar-/d' -e '/^-arphic-/d' fonts.alias > fonts.alias.tmp
mv -f fonts.alias.tmp fonts.alias