mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
c668493368
PR: 46397 Submitted by: Statue <statue@freebsd.sinica.edu.tw>
25 lines
409 B
Bash
25 lines
409 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="bbttf.ttf fttf.ttf kttf.ttf mttf.ttf rttf.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
|