mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
72a1165afd
PR: 50820 Submitted by: Shen Chuan-Hsing <statue@freebsd.sinica.edu.tw>
25 lines
445 B
Bash
25 lines
445 B
Bash
#!/bin/sh
|
|
|
|
if [ "$2" != "DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
PKGNAME=$1
|
|
PREFIX=${PKG_PREFIX}
|
|
TTFM=${PKG_PREFIX}/bin/ttfm.sh
|
|
|
|
FONTDIR=${PREFIX}/share/fonts/TrueType
|
|
FONTS="NTU_FS_M.TTF NTU_KAI.TTF NTU_LI_M.TTF NTU_MB.TTF NTU_MM.TTF NTU_MR.TTF NTU_TW.TTF"
|
|
|
|
if [ -r $FONTDIR/$PKGNAME ]; then
|
|
for i in `cat $FONTDIR/$PKGNAME`; do
|
|
for f in $FONTS; do
|
|
$TTFM --remove $i $f
|
|
done
|
|
done
|
|
fi
|
|
|
|
rm -f $FONTDIR/$PKGNAME
|
|
|
|
exit 0
|