summaryrefslogtreecommitdiffstats
path: root/chinese/abiword/pkg-install
blob: 093248a37e614f964978aea1b83f590bc496194d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/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 ghostscript6 $FONTDIR/$f
done

for f in $FONTS; do
    $TTFM --add abiword $FONTDIR/$f
done
OpenPOWER on IntegriCloud