freebsd-ports/chinese/arphicttf/pkg-deinstall
Yen-Ming Lee 57fa1d6977 remove unused code.
assign maintainership.

PR:		57181
Submitted by:	Statue <statue@freebsd.sinica.edu.tw>
2003-10-29 13:37:36 +00:00

25 lines
415 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="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.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