diff options
Diffstat (limited to 'japanese/motoya-ttfonts/pkg-deinstall')
-rw-r--r-- | japanese/motoya-ttfonts/pkg-deinstall | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/japanese/motoya-ttfonts/pkg-deinstall b/japanese/motoya-ttfonts/pkg-deinstall new file mode 100644 index 0000000..143467d --- /dev/null +++ b/japanese/motoya-ttfonts/pkg-deinstall @@ -0,0 +1,13 @@ +#!/bin/sh +if [ "$2" != "DEINSTALL" ]; then + exit 0 +fi +FONTDIR=${PKG_PREFIX}/lib/X11/fonts/TrueType +cd ${FONTDIR} +sed -e '/-motoya-/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 '/^-motoya-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +rm -f fonts.dir.tmp |