summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eaccea91c1410708710b58735a22fc5c84eae86e (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
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
# Maintainer:  Chris Severance aur.severach aATt spamgourmet dott com
# Contributor: graysky <graysky AT archlinux DOT us>
# Contributer: Martin Schmoelzer mschmoelzer gmail

# BUILD INSTRUCTIONS:
# ----------------------
#  This package provides all the Microsoft Office 2007 fonts for your Linux
#  system for use with LibreOffice, or whatever. Due to license issues it 
#  cannot automatically download the fonts.
#
#  You must acquire them from an Office 2007 CD/DVD/Network share etc. Use 
#  cabextract available from [community] to extract them to the directory
#  containing this PKGBUILD like this: 
#
#  "cabextract --filter '*.TTF' /path/to/office2007/Enterprise.WW/EnterWW.cab"

#  Office 2007 Pro Plus ProPlsWW.cab is missing segoechess.ttf

set -u
pkgname='ttf-office-2007-fonts'
pkgver='1.0'
pkgrel='2'
pkgdesc='Microsoft Office 2007 TrueType Fonts.'
arch=('any')
url='http://support.microsoft.com/kb/924623'
license=('custom')
depends=('fontconfig' 'xorg-mkfontscale' 'xorg-mkfontdir')
install="${pkgname}.install"
source=('license.rtf')
sha256sums=('096cdd18e26b2b3d8cf0b3ec6a1ffb5b0eaae0fcc2105e3c145f19037a42d467')

_fonts=('AGENCYB.TTF' 'AGENCYR.TTF' 'ALGER.TTF' 'ANTQUABI.TTF'
'ANTQUAB.TTF' 'ANTQUAI.TTF' 'ARIALNBI.TTF' 'ARIALNB.TTF' 'ARIALNI.TTF'
'ARIALN.TTF' 'ARIALUNI.TTF' 'ARLRDBD.TTF' 'BASKVILL.TTF' 'BAUHS93.TTF'
'BELLB.TTF' 'BELLI.TTF' 'BELL.TTF' 'BERNHC.TTF' 'BKANT.TTF' 'BOD_BI.TTF'
'BOD_BLAI.TTF' 'BOD_BLAR.TTF' 'BOD_B.TTF' 'BOD_CBI.TTF' 'BOD_CB.TTF'
'BOD_CI.TTF' 'BOD_CR.TTF' 'BOD_I.TTF' 'BOD_PSTC.TTF' 'BOD_R.TTF'
'BOOKOSBI.TTF' 'BOOKOSB.TTF' 'BOOKOSI.TTF' 'BOOKOS.TTF' 'BRADHITC.TTF'
'BRITANIC.TTF' 'BRLNSB.TTF' 'BRLNSDB.TTF' 'BRLNSR.TTF' 'BROADW.TTF'
'BRUSHSCI.TTF' 'BSSYM7.TTF' 'CALIBRIB.TTF'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ENCIL.TTF' 'TCBI____.TTF' 'TCB_____.TTF'
'TCCB____.TTF' 'TCCEB.TTF' 'TCCM____.TTF' 'TCMI____.TTF' 'TCM_____.TTF'
'TEMPSITC.TTF' 'VINERITC.TTF' 'VIVALDII.TTF' 'VLADIMIR.TTF' 'WINGDNG2.TTF'
'WINGDNG3.TTF')

_fnt256sums=('4fde694cc486b55266f7561c685fbd9153ea0003f0c0c39fc744b132051d40c5'
            'd672eb87a3787bdaf8f75df50f9ade864e2d5c9cdec5b07ce6de9d7d39433ea2'
            'ceb1338d26ec7a1ca56cf4097bc1a9ff3a7837aba061cfded19e0b47af2e4b26'
            'bc546e3e96f8cdd9e6cf02eb5c8ac5551ef20ef4639ff701c338ea281f56fbd0'
            '134a9f8ecf618660305d7d34b6905375c1d5d7838ea15cdb2789ba94317f4117'
            '6b00590bd7a52a94e9e90e35a28c1d2fa03f83f458d2f2dfbced70a9c1ea0c80'
            'a2aa71a058516435f4f1a389f403f14159ee629fa74eb333f0f7e3aff01b7c40'
            'dc7f1542fca0f52bdf53e24a49dbb6e9a733c6beeb5ccb27dd0215713d126233'
            'aaeb7fef1dcc8a0a7c355da23c58bde97c6518a6e0792558edfa0c788ec9ae67'
            '62e15117f7d314900949fe60b62c2e908c3921d0425cf26a9cf606d46ab96b16'
            'fe50313c37c2eca0bbf8cc3565b5ef32314753889afbe44cb275d65c3b58f0df'
            'd9352e7d73711f006a27f44e71808a74fec109e2342e680e054c4458569f0a94'
            '529c972a6d5c1992c76e908255f655f98989b74b146058c90555af6d925a1715'
            '0b5f05791ed5231432e302beed14f8dc4293e4df1c0993c72d6039c7ab0d08c7'
            'dcc8d42eebbab6822f736a7b99e1c9d6ee6861b247a19049bb33e5955d991dde'
            '17b6e7689e333fea42b19d817427cecf95b86a340bb0af5babba3ab25e6a1b40'
            '986a5b8bb70238e3c896e3113ef581df26204131f72d59fc12d2deef7ef89e4c'
            '8715897a451aa9e37353b6cce5f5f3d853ecbe97de87756838704eff47c8ce86'
            'c019f155a0004760f32079c22c29ef0ddd223d0c2c79e2487122e66d38a53b32'
            '9729e2ae73b15871db606a18a48b8674ce2bae35d76a511d3510c4a9db2385ef'
            '29854f6597ca7b46db601c7a2eb28c13e31ee0541c7a5a499581fdee8da1b1d5'
            '63261985fc00d6db2dda4f22da039c70f3c4c90aa0f087fc1b7a8c9856f2b551'
            '051b0031db491fa893feddd485b917b24a9d12f15a1e99e782c2420da0a3ffb5'
            '24fd78549262987502d83ea0bce5b47a3a0ac85c3941921b241a73fca08dd012'
            'f307de012e77219a25ef59ada33820a3e33f6865c911acdd97440c15058713fd'
            '37194e3c2d5b000443d23dc324b1367cbe2be40f28c2a6c693e6051210432ca3'
            '0f1f746f293e547f8189783c49aee22a8b839698f7493b5915cc5b432c65d843'
            '960458b4c0851b8b9f1d047fe50f7fa01ddfbecaec692521d262660882e9596a'
            'd0efcbb58042808781f33898dc0fbe5342da22d813415a4dcb394872b1d19afa'
            '17b06990413ab318b9e9f2c05d3816059f56d7a678f4712849a3318a9e5e7c7a'
            '2de5e34daf966be8e165bd5604ac0714a7946ea2a0a08f86ff04e687ed54d8d7'
            'ec95c7380ab7f92ebc75bba6c56a80646fcb450ef6cccc631852a8b97be75c55'
            'ec990c65df2ba6ead654bcb69f7f88bb76910b029f2edf663710cae3fde5f7dd'
            '8f2df7dbc1f2b790f6e6fdd24dbb6c2a96b6e554ba2031c3ab0fe34d322a1b3e'
            '1f7ad9e753a88da096121bd831a7df72868ac48b8edefc8c96c7a73303f1575d'
            '1aa27a3e349a8c8daf466e0f89e94b0dc5b9cbe82e0d7a77e04d3dd6e1588e3d'
            'ad7d00c413fe11ec423ff5e2b63da7d403049ab3babf13d0b2ab34a43f4d4a55'
            '4c50d832f4e1401e226566159735dae932dd224d795ac57772061096117e4147'
            '0b6044c72e67aaae9c2ae3c8b4bb06d066fdbc02779c68e3883984acbbe24cb8'
            'a252b1e5d460f1e0e4781146186393e5b217ab379db237c7bcb8d7c353943edc'
            'b77d119749b51c7ae5242dd093360d5b1c94117469e578cfdd2de03fdc55eda5'
            '3bd67d5982d259580a6d032f375c3b80e58c4496ffd8858b377dd69123809819'
            '5fc2218b5ef0ca1edabe1e694eb6a710f505c8c865a27e377c79d987a9a336e2'
            'fde29212db82cd4bf9e118863561c0295dc55c84cb617041798ce9e7363997b9'
            '8316b1b5c1e47aad6220e10c83537cd32704e99e7885aabf56a1d897b3d3f1ee'
            '7fb57eb4c64f249356bb62e2b84ce4ebeb46b89b2d119a2d0888362a278c07ba'
            '9e23cba751cdd44dd7466e019b38d29360cee1aca62bd4b75dfc5cca93ea4b7a'
            '56b5168f5b847ce0f3280076d6c0ed026681ce3c5141629f5d8eba92dd1fcccc'
            'a779c135081030298594ea50fcdf59bcf5cd341008137931e2fd0e68d4ca65d6'
            '9b9e45f016b013d92c3caf1985db22f85e39c8b1f208636f9ac21f9c135239ce'
            '1b3949401e310a5967a4c108bb9be49e28e69f73095ad088f783035e8f22d28f'
            'c7f699a3f94e57187ed36f1acebfe3e0460615ba368d14ed0aab45272844c1d5'
            'f976b470e19fde1971824107182927472cf67a08acc42f8e2f23951312863a8c'
            '0aa76048bde8acfafafa3f59ae94a7bfb6613a74d367b3fcb841cd180a7d7a16'
            'fc9a9a90cbd828a22733e1f61f089663b95c7304a7b9beef33e3ee454608b73d'
            '4fbab6e3f15a3fa7341a7630865f40aade9068270d3c75ef6633f466eb1a8f60'
            'dccbfb201fce3996776dfb28bc64c8fdb9d8d2aaa077c6964ac3326ef01fb66d'
            '507cf89bc137dd086b8dbdfeebcdc139d724a206abd2a9cc32c75e9ce6ff2cf3'
            'e9f66a22402b92c5cd9dfc9c5b4d93f1fbe4fa865841dfe031d33288ab3bb4a8'
            '48c036482be2cd50beb203a424e221a1a82a7f9cd60b00430233fc7ca131cb14'
            '5d5db8ae79e77adca68e52454088f3a456f363acc9f577cc6dd08b18fa996bda'
            '8209f9295b20a9c3d0f7e5163d7ef9946353e653c40f25e7ef9f905856ec246a'
            '1d9fec6f9b2b72203ea56a4c7e3b40499984829ff99ae8ae53340fd8d5f07fcb'
            '21be61ff5289c2125dbb48e2a739fd4dd98c3e58b37abfc22cc0412dd8376d95'
            '64327ea7bccc5583396d6796cbc535d27c0389906a36312e5811d9ec535c6a03'
            '7da22b3012c6071b7756f6d077ada0cbef49d66dccb7667ab74c97b3748675d5'
            '5295a046a10ef96b7050891920212295ee8e86e4dd8177ceb6cf054ec1dba5f1'
            '9de4ef7b2cb04285224a23c1b7725a80a3852d321a6006b1a22b559cd5450ae9'
            '5f8d58e719a7d724be036145f506acf38b0942e253a7c331887c7056b93deac8'
            '23b32c48f969e88e430b65a11311393180e2ab95be9309a5b286f473a7899f39'
            '66b7706fa9e94a9c2907eefe84a1560b081f5aeea624b73a43043d4a2e817ea9'
            '8aa9def1b2b1abf0ef3a3095daf11fafd9557d9221b2ff57e52465b24a83812d'
            '735808619bb3f40ea10746aabb2bdea275c7f2c8a00cfeb5d765fcca1c834adb'
            '37a083be091532f379dfdcea441ca3e3a3f4aa30e3d8dcf958fe18134219d5b0'
            '0518e37fd63c8b97d63a6ce678eaca254f0677ab94d420e99860772ecf348636'
            'f354b9e48583dd9cb2a60dcd79eaa787722396d768aac0608d2ac0751d35bc3c'
            '607520e814ebd77845cfb7824d0afd47ffff9ea4f335c8f2db356d3c6396a99d'
            'ee6d7fe208a7285cf93d6a94c4a172500fa5b69f98cc7e94898b120db74d2e8a'
            'deeaff659011f0357b2714fe184bafb934708c3f11c70c4a7c607f8809611845'
            'b899c4cdc0c7193c37d8d6720afe17b6e2f618a47a3c196e5598f245a1a6942e'
            '6778c7532967aacd43db63a495003aa5a7d1f0fc04eacc2429961ff50d94c9c0'
            'caf7d153d2860f395f846db58032173c3f76b57f9368ec08382f728742cf5a5d'
            'f9ff23ecb4dd03c511e5462d0b3563b733d4a924579d41c1df8fcb68d647d2d9'
            '327ee1da1a144b1bd7970a8715daf00159ee1d0a9a81aeb33dcbf02631ed56e7'
            '944dd47cc65586f54d83ed55d654c82b179111b2651e6e1d575c2f4bda55085c'
            '88d1a747cec854b6efd25a2721f250c5623f61a818a6ea5e219408485fc9a3bb'
            '9633185651dbec620c26f03e96e8d604a743c93d85e2b51e2f57c795a86cd642'
            'd432c14b62c70f4777f9db5901063b76d8db88b27aca46a5fb5b4a4c552c5c3a'
            '856137000a507908e4c289410917db83d19da88f6050af71675211ba68e9e0b3'
            '662ac854d07237d7d6a2e1c0efba28c6166002ae8cbe0df0f58c43f65b21c54d'
            '7407f0814d04a4cc45127933df1d6ffab5c90e5e888d33a7279cd82c36426b30'
            '2fc6ff3c5253dca997c68d592e8cfa066b516a782d4b2747acf297c6523f9306'
            '9ad3d0e5ef31c4a9a98cb0e169e4e625286aa34c712add3e001c0100138730d4'
            '4ab0f4d87991cbda91a625369e2804c4fb88969cdb1e4bd83b6bf37d07cf9cfd'
            '478e980ecfb423400516403cf49587f5b2e6a6dfc2c41cffcc51c109adc24ee7'
            'cfd1bb2c9b0e8b624952288acf9bdadaa64e52bc846e4720e2f0653359e5b8c5'
            'ac70b60f163536b2c0e2e2752262a6f8d1db6af43da73d5caab855d369f1da13'
            'd1a3a6e5937c5923d4138c1f622145f577ae2f97c7f2d0e899ecec4d0412b839'
            '1861e0824e53ca60a04ea1bc7bdb159131448fec711ed079ebccbf645dd345d1'
            '2e131823861483b966f87ca23063ba6f3c0cecf9ac5d785d71ed1710dab477d5'
            'ddeda8f737249e8a2ac17f3e0757525e20631375cbb8b78d99b1462a146cef47'
            '4feeeac17a284f6f45fc66bd28da141e6bd904f291290c1214d25d06e7c542bd'
            '76487d4b739ffea6d64f86d0e6a19a8d0031dc67ba2fa2518bbc1818351543ff'
            '9cda64dabb9b2aef5a810fe7ed231ca34c4cf42ae5a108c368ab6a21af2c4ccf'
            '6204f2ace1a6c196b95b079f10ded04af8f431ce8eb2cf3945acc89b594c3728'
            'cf70b1cf7b70913c7f2288f037fe376e159d9e35f0619a2b412e88d7f3f5ce3a'
            'e79f9c1768515a1844bd889092ecebf5c40f301e4415ad1238a8e2f09ce8543e'
            'c95e47d509eada17f78d730010a5bbb69f60a940c17df6e4e7354c62262c1ab8'
            '3216f7d3a15d3107a457b93b5537784108c3237b3fb2d16494d8ecee0a22cbd4'
            '5b81f2b18d3b19baa4cf151cd6eb6c49f8e0e58194fd0a02995cccdec803448e'
            '9c96a89a866bcc0b36d1d80f61ebb6ba9251cf9708e0060ac94546be57dbd881'
            'a74b5e4489bb98a96ff5f727bf33dd922703d0f3069f4ce95aa2c5d7f92d2253'
            'f6664b244192ab4cf3a58bb6a653700d1f345d03bb8879888bcea1b6f8f3f97c'
            '962ebe317bfba70511c4f04ceb3a7160def7e3ce8cfcb035fddce7ef202ff9b4'
            'f44727cfdef37b028ea00283fee7ffa09b821ce2bbbfa28d518ec48976468ea5'
            '2dc5949d57d2e172601fb6f5093c1fbf15a463e29ed47c4c8ff2434baf1c2b19'
            '90cb613b492874a560c0ff18a3402b1d24fb7e846dff11295d5c4644d6c75e83'
            '6cf57be6f9d0bd60bd5dc6eee7c11e87e5b19df210156495a524b974185b9fb9'
            '3a9cbb5d75b2a2b0d22dc94571608e4e9dc7b88e825374985880c5722c1c9e5f'
            'f3cd0e13e4a0ed77522b1ab29061da6658f449d1d89b56751cdcdeed86da47e2'
            '71d2d85781689de6326a229aeba2d143a5b3e8a4f0fc93b75af197fb63bf05bd'
            '380e2cd97160e14042cea52ff785ca92d966e29f873cf2b93e1746f3a582ec74'
            'ab475061e2479350a315bf3f72d65ae9acc37bebef4cf8df979f8f6ced659216'
            'bcd38770fd6a7ee06aefd84775d741d007e538dd7ac8e27d9bb4bff85232ea5a'
            'f482f5760773767d798c64f470c08c140588e7b07510094497e7a89c3f2f319d'
            '40e898e471fa4de3ca09a6dfed961d00d6395af20fe6cf1c6b83c795bea04543'
            '8f7699a0fd02de79d565fbd5205be070b777b790f028c1fd7e6090e34ed81bda'
            'd5ed7dbd872ae77e6e30cada5287dbaa1ba755f962d0672c5ed14bea08f08422'
            '9db1f3315d5c18572381f3880bd2c171fa1f49a1cd6e5f5f8d97cc1317911f06'
            'ee066d11d2933638a5d00c242a24f2c9b8bd68bd3ddb3b334123f8efcd539f03'
            '2934319d3c6ba08a4477a3dc4f08695d4b926fc81a316f7a278e780ab5c9609d'
            '60c4f425563b12a6c0223d5c65212fffb42f4b3d84789084aae44c42f3416865'
            'a298c30e23beb222a016afa24d4d8f389f30ac3b8be6763f9f94199c3b11ff0a'
            'd0d2d8efdbf07df506c87f9cadcd5052a6e446c99570177b1f98555661c6937c'
            'efef0fa6138c648f9b5694f11d3372cf2733ae6126c91dbc7b2327c00546a699'
            '8a9783e50f3bf892d958b7e61990d6ccaee65daaa0ffc246d3e1bd4fb0104b41'
            'd64b9e6668069915ae217548b010be1b52be99bc923e88e148a83619b0102868'
            'b2d15815ce8f722e22885e67562a66f512f6412399d9400ac01fecd718d54839'
            '8012eb0ec90ab1b7a40eec8987927d5764055e332bdb19ab5eeb3c1cf67987c8'
            'd347d9ae8a42c63ed7dc15bba992d00ee9e606e0ac499a8022757c275855f612'
            '736eb3bdc990636d283384cf6428b03a6632ae16e81dc72cd28aecd0cdadb017'
            '5c7e6c59e09c38c4e280504741bcfc051c95a9c931b3c92c03b7f2733f580622'
            'fd16af41073406530c7633bbf6976c1aecac1f4bc9d1882135cf58ec9b31dd07'
            '1a8dd16d0d1456923c5d3824943771e63eb67e6b8660e5c1c479674fbbba163d'
            '27899b1624a2c13245cbfd28666090e3fe9ca17ecba4cd6e19a615892f6c6db5'
            '25b23e0e8ba977da78fd0f6c13b76e561756010a73cb5a8187dd817496e25fec'
            'c5ab997a1c3e49cb0d34fa5a3f2c39934d39f2657dca224fcb3b480768676501'
            'eb2d865bdadbdd19dacd2aa6f1a0d4e93263b3dac13de536106286e809abc238'
            '76160ce9cd774532131cf4902b810a2d02c94f225da238ff8c04e25875eb66c5'
            'ca117345d190cda8ad6c7a41af1d6d43c475d0fdc99c97b8d325986309597f7a'
            'eb3f949ba0f1368698e69396259e667d9fb913ebfde3c742d493aae5dd57141e'
            '187f363e9c2e328409938b4413027fe8f0c55423913ba66ea66d3f0d7fd5c74e'
            '993b8ad78909d2b9d67ea0001112cac238fb65c6b31f6729fdb0b86c24e2b8ab'
            '980e0ce5a0f4c407e90c72a16da2a259b7fc2a0ea48d1faf048028b2735fa941'
            'b700d1bc51a11c77ca7b119b0677a9cd4dc1e61fe43a7130bc2044cd7dc9b116'
            '455964b4a07af53205ed705e0f40778ff203f2c9e7c72a8bf2c4d7a3a834e895'
            '8cd40ac425585ee56a4a98f19a1f646828cec1e9565b4a0bfab1d4ce9d7a81c3'
            'e334bf287bdf4211fe5958c4926c8ad4ddd3f44f5fdcb2d9dcfa1394186d8132'
            'a03a3a71113d44d7bfb98e9720264f72a05ba112e191fb78eb08d11a3f41e500'
            'cd7c7867a456ceae560d825cbec1d95b3de8cb62b00ce513db6afc293f243218'
            '2456f205a1f62f915e1c04787f48c70ba7a62dc6c4a01e48b16e694cb75ca8b3'
            'a6f6dacb871be365ad93fe1aab09332f768cd2aa35fdfca8e0053a38f5a2662b'
            'ece195c4b0d53ce4ebaed656341708180abfebdddadf219fb014a31e70410bde'
            'ee5f2638432efa7ea6273625ae2fe5dfa3d393ad0b51f8f5fb0f3d3c5ae65f6f'
            '2b058a75ff9336c703e48b618ef759906dc9e37712e27698f74aa3ec0b949346'
            '1d9d8d06aec3de7b9abbcdac2381f457d9d606b54f05e9b0e0187bf8565a1104'
            'baba81b90b5102d1e1807aed3a4f38ed8f3d0e45c2b12b27152d8101c4de21fb'
            '1cc072157711f80296f3d013cec95093fc1be4e35a97406c46e76b14a97f41e1'
            '13093d9642d540cb5efad5cad52ad703e11c0e1f5308bc23ff2cfd7737e7516c'
            '895fdea742cdccd53e8ce847a7d2d9c3ddbd7ebdbe0444e88246f0f9e4e2526d'
            '5b4a73788f013c252eb5877a7974e5836eeffc1189dd7319a219080fcc908f80'
            'f8346184d59314a919926dcfb60da96421781ab19c2e04c2f76f0f82ace8cee4'
            '8eb139cdeff99c8297c95bf857d94def798116d02fdcf72cefb88d43fe7a33d4'
            '2f52ec437a22912ec82c06afdde46c6b1c7593b44025c4627901d353a965b161'
            '1024c55e896123dad43b1a15f0c86640556b01e9348eb797e6d7c5a889178d6b'
            '5b90d215f586c91cbaceee9e96d8840431e6b4713909dd47ab70084a067d0b10'
            'f8202c3426b5c54b192969351f15ea35288de44e811e9514d923898214b94184'
            '673e9f49ace279c73711dd778037b5d435790be236c9e5892609794b0bb4377f'
            '1a98bbb22c3097e418a263ca80b63ac1264e8cbd03d5f0a7143bc598297a387b'
            '4bd22f9cfa8255c17ef5734964bdcea39f0614c1975f9d495576a0110f5bf177'
            '4e06cfa893f7e1e656709ac2cc240cf17cc82da9fb8df1afbf689940e47c0cfd'
            '7019d811b304287be2223f1667e0989f862951cbba660bde13a86bb103d97b80'
            '26d345f357d8213475eff6459ccf2dbc9d707e2f8c0445540f3bb183f717c0f0'
            '0f9cd250887e38b99ff7111769d249daee8634c2c875f49c3599017bd2586aab'
            'bda7c484b491bb10914d668300c6560621de1b091784010f2d4d239020b6e5be'
            '967465e783b62ce5fdfb10183753ddfa0ba6396036340fd3cc67f85187d57689'
            'c8a0f6976209cc198bc47ee287fd872fd86690f4d2893057e7ee92dd1235fb5f'
            'fc9fd442d2dcd719c88d42121d69f5dd9dda02cc1c8afa025d261ec28795468f'
            '6c52077681d5d1831b9e8f6621deb82de960418d24fe39d8cdc88778fbb19e30'
            '70af64a5bc061505e7a1cb1cd691811768a7cc84e53d48fcb526deb53f8c7a57'
            '0c61e5ce8296a55761cdb9d350d4c990be4cda8890cc70f2abdedfc357f96d00'
            '8decca6df27be6bb2bd15801dd9cde62502bf4fb20efd835038861455ffe763b'
            'a13c13a72c0aafc2be6baf52fd28b1745af6f0fd5fbd365499c7298f4ee416a1'
            '73ff30499a0c673440e6df6e134e0731e586112ab99a0553f7c4dbb28f84366a'
            'ebd9ca7dc28fee37c942b4084f377711ba571da5fd7154125abf8f81c9628ce6'
            'd35dcf41c1d5eb61146c17271b39e2f4f9526cdbf4bd480d9add7d9f15c92e3d'
            '9c6fbf48500d4956a5663607865d87a850a72aba790a00e4465a16d48fe8a048'
            '41b571072720f7bc72f8ab344c00e6f5fa38b7262fb290926061d064edd22a4b'
            '9f006360948fbdcf8535e650f3ece264432b1c515b5d1f688dbecfb03cd83155'
            '1712c07b9ec477bfccb927888644666bef333eef4cc260ae1cf60a19bd327e47'
            '80cd2486979c2c18f9dd59277c0fd800959afa1ce23820dcf7bce31f208647af'
            'b9e8a921cc54334132052f880fc1b8b236cb6f41b1cfa4618ea399014e6cea4d'
            '5d53b38fa8ff33d15676cdcd78b261681bfda861c449b4f7ddfd7574a5c11e18'
            '4fee7243ffb931f65713de0537a145f6aa1e7302c8398fea68c4864d41e7fd98'
            '64df8ce11b656bdda3e35275b83dec7c40fc8a0a73d8a921918fb99b538f62d0'
            'b068cd471c07907a772b6f39a415d33d6328d32d1ea0032be9a717cb4b80b254'
            '9e8a6af516706030b8536b2ea6535664cd9bea916fb15304556d8139a6945ff9'
            '73655bc3a86553ea1d76df8c8eed0e8d0daebc797aba885cde99833ffe9545dd'
            '3ffa539609563836dc5546f473f6e7a3b7e4c9f7ba5876522925a980ab87fd7f'
            '10df71cef84ae0d7031d7ffa072b185343365be0e59bec4ac231e7c77811584b'
            '1b20b818be881cf16e711daf7e3c44be66a93b581bcd7b580a4423f18595fb35'
            '2bbb4cafa0c5767155971e7bc578483478351a36e55d035450e50b468422a962'
            '59e1a422a986daaa64659b7415db304fc6a04a10fdfe00eaf1a93577819d3bf8'
            'ede635464683ba465c949d7dd6894f9dff49a76229618cb0b73e0c85b93e4169'
            'fa671b6fddedd57f158ab90b6aa6a7c33db6f41ab620db72b7ad1e57c38bda5f'
            'ac9ee085920a3d8b076d5e0c61dc9df42c4bac28d1fc968344f9ceddb3972f69')

_fn_gencopy() {
  # Generate handy copy scripts.
  #rm -f '_COPY.BAT'
  if [ ! -s '_COPY.BAT' ]; then
    cat > '_COPY.BAT' << EOF
@ECHO OFF
CLS

REM **** DELETE FROM HERE ****
ECHO THIS BAT FILE MUST BE EDITED TO USE.
PAUSE
EXIT
REM **** TO HERE ****
REM REM out or remove the previous 5 lines to enable this BAT file.
REM We did the hard part by picking all the files. You do the easy part by
REM editing the following to match to your environment.

REM You can use this to copy fonts from a running Windows to a Samba share
SET MYSHARE="\\\\192.168.1.10\\_INCO\\TTFONTS"
REM How about a folder on your desktop
REM SET MYSHARE="%USERPROFILE%\\Desktop\\TTFONTS"
REM How about to your flash drive
REM SET MYSHARE="G:\\TTFONTS"
MKDIR "%MYSHARE%"
EOF
    local _fnt
    for _fnt in "${_fonts[@]}"; do
      local _fntl="${_fnt,,}"
      if [[ ! "${_fntl}" =~ .tt[fc]$ ]]; then
        echo "Fonts array not a font ${_fnt}"
        rm -f '_COPY.BAT'
        set +u
        false
      fi
      echo 'COPY "%WINDIR%\FONTS\'"${_fnt}"'" "%MYSHARE%\'"${_fnt,,}"'"' >> '_COPY.BAT'
    done
    echo 'PAUSE' >> '_COPY.BAT'
    chmod 755 '_COPY.BAT' # You can run this from the share
    sed -i -e 's:$:\r:g' '_COPY.BAT' # unix2dos with sed http://pmoghadam.com/homepage/HTML/dos2unix.html
  fi
  #rm -f '_COPY.sh'
  if [ ! -s '_COPY.sh' ]; then
    cat > '_COPY.sh' << EOF
#!/bin/sh
# Enable and edit the server in the following line as necessary.
#smbclient '//192.168.1.10/C' -U 'GUEST%' -c "prompt; cd WINDOWS/FONTS; mget ${_fonts[@]}"
EOF
    chmod 755 '_COPY.sh'
  fi
}

_fn_fontlower() {
  # Lowercase the user supplied fonts (permanently)
  local _fnt
  for _fnt in *; do
    local _fntl="${_fnt,,}"
    if [ -f "${_fnt}" ] && [ "${_fntl: -4}" = '.ttf' -o "${_fntl: -4}" = '.ttc' ]; then
      chmod 644 "${_fnt}"
      if [ "${_fntl}" != "${_fnt}" ]; then
        mv "${_fnt}" "${_fntl}"
      fi
    fi
  done
}

_fn_updpkgsums() {
  _fn_fontlower
  local _fonts2=()
  local _fnt
  for _fnt in ${_fonts[@]}; do
    _fonts2+=("${_fnt,,}")
  done
  cat > 'PKGBUILD.tmp' << EOF
source=(${_fonts2[@]})
#Copy these sums into PKGBUILD as _fnt256sums=() and erase this file
sha256sums=('x')
EOF
  updpkgsums PKGBUILD.tmp
  exit 1
}
#_fn_updpkgsums

_fn_fontcheck() {
  # Ensure all fonts as lowercase are present.
  local _notfound=0
  local _notfoundar=()
  local _mismatch=0
  local _mismatchar=()
  local _i
  for ((_i=0;_i<${#_fonts[@]};++_i)); do
    local _fnt="${_fonts[${_i}]}"
    _fnt="${_fnt,,}"
    if [ ! -s "${_fnt}" ]; then
      _notfound=$((${_notfound}+1))
      _notfoundar+=("${_fnt}")
    elif [ "$(sha256sum < "${_fnt}")" != "${_fnt256sums[${_i}]}  -" ]; then
      _mismatch=$((${_mismatch}+1))
      _mismatchar+=("${_fnt}")
    else
      ln -sf "../${_fnt}" "${srcdir}/${_fnt}"
    fi
  done
  if [ "${_mismatch}" -gt 0 ]; then
    echo "Mismatch hash on ${_mismatch} font(s)"
    echo "${_mismatchar[@]}"
  fi
  if [ "${_notfound}" -gt 0 ]; then
    echo "Unable to find ${_notfound} font(s)"
    echo "${_notfoundar[@]}"
    echo "See the the supplied _COPY scripts for easy ways to get the fonts from Windows."
  fi
  if [ "${_mismatch}" -gt 0 -o "${_notfound}" -gt 0 ]; then
    set +u
    false
  fi
}

build() {
  set -u
  local _fontdir="${srcdir}/.."
  cd "${_fontdir}"
  _fn_gencopy
  _fn_fontlower
  _fn_fontcheck
  set +u
}

package() {
  set -u
  cd "${srcdir}"

  # Prepare destination directory
  install -dm755 "${pkgdir}/usr/share/fonts/TTF"

  # Install fonts and license
  install -Dm644 "license.rtf" "${pkgdir}/usr/share/licenses/${pkgname}/license.rtf"
  install -m644 *.ttf "${pkgdir}/usr/share/fonts/TTF"
  set +u
}

set +u
# vim: set ts=2 sw=2 ft=sh noet: