blob: b036f74e89156f9b5ee1a0c610429a0bbf5a49ef (
plain) (
blame)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
#!/bin/sh
if [ "$2" != "DEINSTALL" ]; then
exit 0
fi
FONTDIR=${PKG_PREFIX}/lib/X11/fonts/local
grepv() {
awk -v SRC=$1 'BEGIN{while (getline < SRC) {ENTRY[$0]=1}} (ENTRY[$0] != 1) {print}' $2
}
# font alias entry here!
TMPFILE=/tmp/install-fonts-alias-$$
cat << EOF > ${TMPFILE}
mona6x12a -mona-gothic-medium-r-normal--12-110-75-75-p-60-iso8859-1
mona6x12aB -mona-gothic-bold-r-normal--12-110-75-75-p-60-iso8859-1
mona6x12aBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-iso8859-1
mona6x12aI -mona-gothic-medium-i-normal--12-110-75-75-p-60-iso8859-1
mona6x12r -mona-gothic-medium-r-normal--12-110-75-75-p-60-jisx0201.1976-0
mona6x12rB -mona-gothic-bold-r-normal--12-110-75-75-p-60-jisx0201.1976-0
mona6x12rBI -mona-gothic-bold-i-normal--12-110-75-75-p-60-jisx0201.1976-0
mona6x12rI -mona-gothic-medium-i-normal--12-110-75-75-p-60-jisx0201.1976-0
mona7x14a -mona-gothic-medium-r-normal--14-130-75-75-p-70-iso8859-1
mona7x14aB -mona-gothic-bold-r-normal--14-130-75-75-p-70-iso8859-1
mona7x14aBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-iso8859-1
mona7x14aI -mona-gothic-medium-i-normal--14-130-75-75-p-70-iso8859-1
mona7x14r -mona-gothic-medium-r-normal--14-130-75-75-p-70-jisx0201.1976-0
mona7x14rB -mona-gothic-bold-r-normal--14-130-75-75-p-70-jisx0201.1976-0
mona7x14rBI -mona-gothic-bold-i-normal--14-130-75-75-p-70-jisx0201.1976-0
mona7x14rI -mona-gothic-medium-i-normal--14-130-75-75-p-70-jisx0201.1976-0
mona8x16a -mona-gothic-medium-r-normal--16-150-75-75-p-80-iso8859-1
mona8x16aB -mona-gothic-bold-r-normal--16-150-75-75-p-80-iso8859-1
mona8x16aBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-iso8859-1
mona8x16aI -mona-gothic-medium-i-normal--16-150-75-75-p-80-iso8859-1
mona8x16r -mona-gothic-medium-r-normal--16-150-75-75-p-80-jisx0201.1976-0
mona8x16rB -mona-gothic-bold-r-normal--16-150-75-75-p-80-jisx0201.1976-0
mona8x16rBI -mona-gothic-bold-i-normal--16-150-75-75-p-80-jisx0201.1976-0
mona8x16rI -mona-gothic-medium-i-normal--16-150-75-75-p-80-jisx0201.1976-0
monak12 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
monak12B -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
monak12BI -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
monak12I -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
monak14 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
monak14B -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
monak14BI -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
monak14I -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
monak16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
monak16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
monak16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
monak16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
monau16 -mona-gothic-medium-r-normal--16-150-75-75-p-160-iso10646-1
monau16B -mona-gothic-bold-r-normal--16-150-75-75-p-160-iso10646-1
monau16BI -mona-gothic-bold-i-normal--16-150-75-75-p-160-iso10646-1
monau16I -mona-gothic-medium-i-normal--16-150-75-75-p-160-iso10646-1
-mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-i-normal--12-110-75-75-p-120-jisx0208.1990-0
-mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-r-normal--16-150-75-75-p-160-jisx0208.1990-0
-mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-r-normal--14-130-75-75-p-140-jisx0208.1990-0
-mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-i-normal--16-150-75-75-p-160-jisx0208.1990-0
-mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-r-normal--12-110-75-75-p-120-jisx0208.1990-0
-mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-i-normal--14-130-75-75-p-140-jisx0208.1990-0
-mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-bold-i-normal--14-130-75-75-p-140-jisx0208.1990-0
-mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-bold-i-normal--16-150-75-75-p-160-jisx0208.1990-0
-mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-bold-i-normal--12-110-75-75-p-120-jisx0208.1990-0
-mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1983-0 -mona-gothic-medium-r-normal--16-150-75-75-p-160-jisx0208.1990-0
-mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1983-0 -mona-gothic-medium-r-normal--14-130-75-75-p-140-jisx0208.1990-0
-mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1983-0 -mona-gothic-medium-r-normal--12-110-75-75-p-120-jisx0208.1990-0
-mona-gothic-medium-r-normal--24-230-75-75-p-240-jisx0208.1983-0 -jis-fixed-medium-r-normal--24-230-75-75-c-240-jisx0208.1983-0
-mona-gothic-medium-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-medium-r-normal--20-190-75-75-c-200-jisx0208.1990-0
-mona-gothic-medium-r-normal--10-70-75-75-p-100-jisx0208.1983-0 -elisa-fixed-medium-r-normal--10-70-75-75-c-100-jisx0208.1983-0
-mona-gothic-bold-r-normal--20-190-75-75-p-200-jisx0208.1983-0 -kappa-mincho-bold-r-normal--20-190-75-75-c-200-jisx0208.1990-0
EOF
echo "Updating ${FONTDIR}/fonts.alias"
cd ${FONTDIR}
touch fonts.alias
cp fonts.alias fonts.alias.orig
grepv ${TMPFILE} fonts.alias.orig > fonts.alias
if [ ! -s fonts.alias ]; then rm -f fonts.alias; fi
rm -f fonts.alias.orig ${TMPFILE}
echo "**********************************************************"
echo "You should restart X server or do 'xset fp rehash' command"
echo "to enable this update."
echo "**********************************************************"
exit 0
|