diff options
author | nork <nork@FreeBSD.org> | 2004-06-19 22:09:28 +0800 |
---|---|---|
committer | nork <nork@FreeBSD.org> | 2004-06-19 22:09:28 +0800 |
commit | 09856c2542e40eed15d1cd07bc9be86c03757be3 (patch) | |
tree | efafb67fa48f9716c76032bb5e4fd0aac7afadd2 /japanese/sazanami-ttf/pkg-deinstall | |
parent | cc5389e2895ae88d0d1320f3a7d81d7a3365551c (diff) | |
download | freebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.tar.gz freebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.tar.zst freebsd-ports-gnome-09856c2542e40eed15d1cd07bc9be86c03757be3.zip |
Add sazanami-ttf 20040618, Free Japanese TrueType fonts named 'Sazanami'.
Submitted by: hrs
Diffstat (limited to 'japanese/sazanami-ttf/pkg-deinstall')
-rw-r--r-- | japanese/sazanami-ttf/pkg-deinstall | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/japanese/sazanami-ttf/pkg-deinstall b/japanese/sazanami-ttf/pkg-deinstall new file mode 100644 index 000000000000..2c3c37bd3dba --- /dev/null +++ b/japanese/sazanami-ttf/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 '/-sazanami-/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 '/^-sazanami-/d' fonts.alias > fonts.alias.tmp +mv -f fonts.alias.tmp fonts.alias +rm -f fonts.dir.tmp |