1999-10-19 10:07:46 +02:00
|
|
|
#!/bin/sh
|
2000-12-04 13:59:39 +01:00
|
|
|
|
1999-10-19 10:07:46 +02:00
|
|
|
if [ "$2" = "PRE-INSTALL" ]; then
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
|
2000-12-04 13:59:39 +01:00
|
|
|
PKGNAME=$1
|
|
|
|
PREFIX=${PKG_PREFIX}
|
|
|
|
TTFM=${PREFIX}/bin/ttfm.sh
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2000-12-04 13:59:39 +01:00
|
|
|
FONTDIR=${PREFIX}/share/fonts/TrueType
|
|
|
|
FONTS="bkai00mp.ttf bsmi00lp.ttf gbsn00lp.ttf gkai00mp.ttf"
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2000-12-04 13:59:39 +01:00
|
|
|
if [ ! -x $TTFM ]; then
|
|
|
|
echo "$TTFM not found!"
|
|
|
|
exit 1
|
|
|
|
fi
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2000-12-04 13:59:39 +01:00
|
|
|
rm -f $FONTDIR/$PKGNAME
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2002-12-21 19:48:37 +01:00
|
|
|
if [ "X$WANT_GS" != "X" ]; then
|
2000-12-04 13:59:39 +01:00
|
|
|
for f in $FONTS; do
|
2002-12-21 19:48:37 +01:00
|
|
|
$TTFM --add gscjk $FONTDIR/$f
|
2000-12-04 13:59:39 +01:00
|
|
|
done
|
2002-12-21 19:48:37 +01:00
|
|
|
echo "gscjk" >> $FONTDIR/$PKGNAME
|
2000-12-04 13:59:39 +01:00
|
|
|
fi
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2000-12-10 08:12:06 +01:00
|
|
|
if [ "X$WITHOUT_X" = "X" ]; then
|
2000-12-04 13:59:39 +01:00
|
|
|
for f in $FONTS; do
|
|
|
|
$TTFM --add xttfm $FONTDIR/$f
|
|
|
|
done
|
|
|
|
echo "xttfm" >> $FONTDIR/$PKGNAME
|
|
|
|
fi
|
1999-10-19 10:07:46 +02:00
|
|
|
|
2000-12-04 13:59:39 +01:00
|
|
|
exit 0
|