freebsd-ports/chinese/abiword/pkg-install
Ying-Chieh Liao 4cda2103eb due to ttfm module ghostscript6 change to gscjk
PR:		42330
Submitted by:	Statue <statue@freebsd.sinica.edu.tw>
2002-12-21 18:48:37 +00:00

26 lines
406 B
Bash

#!/bin/sh
if [ "$2" = "PRE-INSTALL" ]; then
exit 0
fi
PKGNAME=$1
PREFIX=${PKG_PREFIX}
TTFM=${PREFIX}/bin/ttfm.sh
FONTDIR=${PREFIX}/share/fonts/TrueType
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
if [ ! -x $TTFM ]; then
echo "$TTFM not found!"
exit 1
fi
for f in $FONTS; do
$TTFM --add gscjk $FONTDIR/$f
done
for f in $FONTS; do
$TTFM --add abiword $FONTDIR/$f
done