diff options
Diffstat (limited to 'japanese/font-ipa/pkg-deinstall')
-rw-r--r-- | japanese/font-ipa/pkg-deinstall | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/japanese/font-ipa/pkg-deinstall b/japanese/font-ipa/pkg-deinstall new file mode 100644 index 0000000..b294b8f --- /dev/null +++ b/japanese/font-ipa/pkg-deinstall @@ -0,0 +1,15 @@ +#!/bin/sh +# $FreeBSD$ + +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +cd ${FONTDIR} +sed -e '/-ipa-/d' fonts.dir > fonts.dir.tmp +numfonts=$(echo $(cat fonts.dir.tmp | wc -l) - 1 | bc) +echo ${numfonts} > fonts.dir +sed -e 1d fonts.dir.tmp >> fonts.dir +sed -e '/^-ipa-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +rm -f fonts.dir.tmp |