mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
2e09eb3a57
Three TrueType fonts from Microsoft Windows(TM) 2000/XP. Because of licensing restrictions, end user can use these fonts freely in his/her own computers. **** Redistribution of pre-compiled binaries is not permitted. **** PR: ports/64838 Submitted by: LI Dong <ld@FreeBSD.org.cn>
25 lines
396 B
Bash
25 lines
396 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="simhei.ttf simsun.ttc tahoma.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
|