blob: 055b67745316b8be53a8c95a96471b4d471e4cea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/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="moe_lishu.ttf moe_kai.ttf moe_sung.ttf moe_sungext.ttf moe_sungsym.ttf moe_kai_pc.ttf"
if [ -r $FONTDIR/$PKGNAME ]; then
for i in `cat $FONTDIR/$PKGNAME`; do
for f in $FONTS $DEFAULTMING $DEFAULTKAI; do
$TTFM --remove $i $f
done
done
fi
rm -f $FONTDIR/$PKGNAME
exit 0
|