summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 84aa862bc522b8d8213ab878b2053f131bd31ecc (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
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_pkgbase=icecat
pkgbase=${_pkgbase}-l10n
pkgver=60.7.0_gnu1
pkgrel=1
pkgdesc="Language pack for GNU IceCat."
arch=('any')
url="http://www.gnu.org/software/gnuzilla/"
license=('MPL' 'GPL')
depends=("$_pkgbase=$pkgver")
makedepends=('unzip' 'zip' 'mozilla-searchplugins')

_languages=(
  'ach    "Acholi"'
  'af     "Afrikaans"'
  'an     "Aragonese"'
  'ar     "Arabic"'
  'as     "Assamese"'
  'ast    "Asturian"'
  'az     "Azerbaijani"'
  'be     "Belarusian"'
  'bg     "Bulgarian"'
  'bn-BD  "Bengali (Bangladesh)"'
  'bn-IN  "Bengali (India)"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  'cs     "Czech"'
  'cy     "Welsh"'
  'da     "Danish"'
  'de     "German"'
  'dsb    "Lower Sorbian"'
  'el     "Greek"'
  'en-GB  "English (British)"'
  'en-US  "English (US)"'
  'en-ZA  "English (South African)"'
  'eo     "Esperanto"'
  'es-AR  "Spanish (Argentina)"'
  'es-CL  "Spanish (Chile)"'
  'es-ES  "Spanish (Spain)"'
  'es-MX  "Spanish (Mexico)"'
  'et     "Estonian"'
  'eu     "Basque"'
  'fa     "Persian"'
  'ff     "Fulah"'
  'fi     "Finnish"'
  'fr     "French"'
  'fy-NL  "Frisian"'
  'ga-IE  "Irish"'
  'gd     "Gaelic (Scotland)"'
  'gl     "Galician"'
  'gn     "Guarani"'
  'gu-IN  "Gujarati (India)"'
  'he     "Hebrew"'
  'hi-IN  "Hindi (India)"'
  'hr     "Croatian"'
  'hsb    "Upper Sorbian"'
  'hu     "Hungarian"'
  'hy-AM  "Armenian"'
  'ia     "Interlingua"'
  'id     "Indonesian"'
  'is     "Icelandic"'
  'it     "Italian"'
  'ja     "Japanese"'
  'ka     "Georgian"'
  'kab    "Kabyle"'
  'kk     "Kazakh"'
  'km     "Khmer"'
  'kn     "Kannada"'
  'ko     "Korean"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Malay"'
  'my     "Burmese"'
  'nb-NO  "Norwegian (Bokmål)"'
  'ne-NP  "Nepali (Nepal)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  'oc     "Occitan"'
  'or     "Oriya"'
  'pa-IN  "Punjabi (India)"'
  'pl     "Polish"'
  'pt-BR  "Portuguese (Brazilian)"'
  'pt-PT  "Portuguese (Portugal)"'
  'rm     "Romansh"'
  'ro     "Romanian"'
  'ru     "Russian"'
  'si     "Sinhala"'
  'sk     "Slovak"'
  'sl     "Slovenian"'
  'son    "Songhai"'
  'sq     "Albanian"'
  'sr     "Serbian"'
  'sv-SE  "Swedish"'
  'ta     "Tamil"'
  'te     "Telugu"'
  'th     "Thai"'
  'tr     "Turkish"'
  'uk     "Ukrainian"'
  'ur     "Urdu"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=('region.properties')
_url=http://ftp.gnu.org/gnu/gnuzilla/${pkgver%_*}/langpacks

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$_url/$_pkgbase-${pkgver%_*}.$_locale.langpack.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

_package() {
  pkgdesc="$2 language pack for GNU IceCat."
  replaces=(icecat-i18n-${1,,})
  conflicts=(icecat-i18n-${1,,})

  unzip icecat-${pkgver%_*}.$1.langpack.xpi -d $1
  rm -v icecat-${pkgver%_*}.$1.langpack.xpi
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
  rm -rv $1/browser/chrome/$1/locale/browser/searchplugins
  cp -av /usr/lib/mozilla/searchplugins  $1/browser/chrome/$1/locale/browser

  cd $1
  zip -r langpack-$1@icecat.mozilla.org.xpi .
  mv -v langpack-$1@icecat.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

  install -vDm644 langpack-$1@icecat.mozilla.org.xpi \
    "$pkgdir/usr/lib/icecat/browser/extensions/langpack-$1@icecat.mozilla.org.xpi"
}

sha256sums=('fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
            '9a9b6d35fb0a638ea219b8192527a66f8cf66848cd5f8b1331f157178f129be9'
            '48c11a9bd62752db6f68b524fa4d644b43874701c263c2d36420f96f5764f000'
            '3af73f794928c97587a4c252c46a4e349d5a7282eb6f3dd438ee95fae5826c36'
            '74fa9bc3283fb0297032f9ae218338e9ad711052e6e47d8f6427b6b336594132'
            '76949ae7368128082be3d2d1563df86ea73fce9c178f15a6fb3c043ec1d1e010'
            'cca3ce580abfe10ca609c425967f332321ee240b61b4c8743f86a17d6cfcff46'
            '021d135144081d9aa600eaf0fdd95e2809a86d55e131c4152da58815a8628de9'
            '11ef253ae441364993c3ebb9a5dd2f549dc781fb1150bb8e3a26f51239497e65'
            '0f24b8393232d4bce775ef5a128289f65812288cfad275797bbd388bccd9080e'
            '3083645bc62f03496e3ff0c0ba6bc519dcd1f9484382f0bc2c9e5298ed9ff039'
            '9b2f3167646827b5b83d012c5416ee20ac725c512699cdefe3659189da492d6d'
            '0286b4bce1effebd551b1ce59e796f9a19915b0a6af4866099633d19869bdf0a'
            '3dde627220a8662a04d0fe221666d3059c7fce7c460c47632a37d13d17faf406'
            '31eb8053dfeb4c6a7d4ba58d982636b6fe3285923d6593e6064f6d598ba614a5'
            'a10a36b50ebf8b4599e92bfb333c5f69dca59af2aa456475f3446b22e61a6fdb'
            '2291bbb9e60cac937d579b4018382f2a441e84e3ae4821cd676360285de6b350'
            '5d71dce5a6f470c2bcac2b731d76935173f4807ced3d429cdc42fc6fe88a80b8'
            'e596290831efd70ad0b72b527b30eee4fdc63c3fe286a6dbff39cd80efd184e4'
            'ea9e6584872df5355e53b6f5e81092cd7a96993596613a950db190137271bcfa'
            'c1230554c01c11fc17456b6cff617ffa822606b2805b942972e9c80a00107d28'
            '898489924471a52c312cd484a79dc6cb1e2c5b502de9259e1a8b1275e846b24c'
            'e8aeec5e9582428261165097b3cddfcbfc51dbbb5966dd9c863ef490fc9a3022'
            'a18d88e58c5d144755753418d2d87bf7733519b5bd8c95c553c1acb3c5ba11ef'
            '635e4d3ccebc91923d63512fd4caab42ef8064662f982e2ec0acc123ddbe5dd0'
            '3fe7bf905151d9a1520821aaca563bed3d7efbefbaaa5ab0f90d3d6d03dfdbc2'
            'ffb7f876877e2a9fe9e16e4165c707b44f7eab34200f912221d7a3b5174e1e4b'
            '4506b415cb6add080b6ebbdeeff45ce45438a9b9c43c1b5896bc2200ca9a2c48'
            '80e6962f8c24a618ef6920c2e9435bf94e2c66dc26c169137336f89c27e24fb3'
            '42dc6497feaee68bc35ed6bc96dda8a8c0dc2203e7af7f76bac73c6ab789d57b'
            'd672474bd87025bd231127adc420fedeb861515e9c6c91b61de3d0020abef571'
            'b7ec6535b3c1a3d7311f337a3ece5bf12fca98b7706e0eeb7e639f3fdff0917d'
            '0cc87817c615b4287063fa4cce6aa2fb7f1d8a6f15260484badb4330cd647af9'
            '899eff671b85d9adf3a6e6175dcee8a383d465555a592d0d921df0004040fd50'
            '3ef016345ae59110a5728f7332b6fc74844e2541a8542a1128a9af1310db41e7'
            '27f69bef39bcb1a1e52d7b16384dca2be0ce1b98fb3a105454bacf774bff21b7'
            'e54f304d2ea5f5a3833dbec222bd463acbaea29a1f56a92fede342893c99da02'
            'd097af5065b52b9d8a90e73a0148a825a49c7b6523c67a222b28362616219ca7'
            '0dc2808a9a87f2b0b583b8f174f9ba3ba3708d869b99f446158d8abbabd923c0'
            '91bf7e454626d118ff54df707f9b7ad79535d1a6b041371200f04ecdde1218b3'
            '9ef3b79bb9b8b7d1c6faaa8b4a6437c7cf828f7993b85c95e4b7732b95498dd8'
            'a89738d6670ef75dc32e09e3f65295ad0a72523f0ce8ca30e798029d06cb2341'
            'ce00fa857b3f2ca17003a589c03e6308cad52842e0f7b83f1a072e2843f5d525'
            '6783832dcf2991091d3af5579a353e3b9d583d2cdf927a72f6019e7b1d488b85'
            '885a9b2e7bd4ceaca992d954ed1c2bde6ab216eb89551143dd07944c819ee5f7'
            '48bbc1d84b40f3d0abe65ba9e102d822fc2908d213c0cbb3fd3f6aec17da82e4'
            '3d8563fb06d85c1b4bc1cd12e5f32d0e2109db727d0b310e9d8931de64242ad3'
            '72a24a87ba3f6be9b1bf477ab4ff9a080c4db1eaa46986db79b4cd3569351501'
            '050bb58fc5257d1298f2a86280ec2bda06ae7038aabe4ebfa887b968c44b4618'
            '4b9eb3fb8ef8a217ace829d30342f06ce5cd1ae3657e8e8b3515083f140af1ef'
            '76155e496ed81de0832a2df80458a806c4ec7ad9940bc591f18ad37570871ef5'
            '06564522121b92d9494c24b8613e4277745682295ba3a28bac78b44b390a472f'
            '086ff730ed094ed7b0c3f42ea229813e36b6ded6a600d45f4bc01c2a31e9f7a8'
            '41d08badfefb329f6c209714ef7dc0ed7105c9093ac0d1a65e514d02c67bf4e4'
            '81ded864c7840971a7a54d045f10d4b58d7a80426f26c3d7f8670cc70b349614'
            '74b56f680e0ff0c36b58e666bf4ed2357d0803cdd7e70f867e85a6da9984ab5b'
            'e3658dabb0501518fb7d3bb038bc6200a52d4903642b8197eb9dea473cf14041'
            'fc9334885e944d4e5d51ff3dee0a9ffc7b4f06298667836e6976d7bff5fbbc74'
            '095b0e88c2cabe83e0b0aad50d86fa73e2b69748a5126dd8c2dd0272fe27a309'
            'b0aabde2e7ccbe3e6d5d9504332b06ddf9585e7f1ab002cbf3ac4b4521aafd45'
            '315472dcacf3899fe7bb416e2ee1ad91e03b2276e4d46cf257fc685def4fb174'
            '67a13680ed904c137418c69eb9158ac2f0bafa1a6c8df27d015368ec6a5d171e'
            '2dc2a6b3185fb7502dd4e18ff41fb4dc347d4d841d30d0f25e780d3e0d514a2c'
            '18d438cdee2ae9e6e738b72cfc99df110056f1f96bbf4a7ab6e94e4f128f7810'
            'b19177c5d188450447218590fdd8f51beaec029bb451ddb121587dbf55845ae2'
            '75344634f06c5162dc22b286b0757c92db1d939a4019f9361e689b416807fc47'
            'b1944fb9e5f2ac82bdd49ec91dfc0a3d32123999372698f811dd4c1355c9e8ad'
            '83e8f60649e05aaec28087bf8ad4dacfbd2c988edb198bed5fe860a99885663f'
            'a05990781b7dc8d24e0d501faa32522210a7c78f92ee1fbed8ec1e791c5b91f2'
            '6d88e79c7a2b5b2698cc2b320cb22d3343bf3519cf548109aa1f4cfb01eaf187'
            '2ffddf68c4e9b3f5bcf5ff0f55dce634dd677f300af9b8895d49326e2cf9f4e1'
            '6e79034d279f8dd6b968548814bc26479d0929a58904e4105cb095b2b07565ec'
            '354e7cb2cbeea065e9ec7b2fd9183f3d235d78200ded728c2a8dc3d5ac19d18b'
            '0518b81c66ccf151fd33ac7ec491a75050ed87f7e144859c25536ffe677201d6'
            'f40d211bbf9f53100135f7d5d911c1c43e18868c50309b869e9bc5124aed60d5'
            'eef9a32902da5f5edd1bfd5d68627f73586351dae599644326ca72c5346f5546'
            'f1a4623dabcb691bd71a720af799e89fd14e694eacb5aac3f4e8b5b8b455ab3d'
            'f9003250d5d68beea2d9cca93d0798f1bba8c783b07a7347157730ae9fe0fdcf'
            '04c46ffed03bbc8f2713d502a91b95d1ec08649de3b0d5b0dbc7921e4fc01b2d'
            'f68967761e8a23ff1f95dc203d3b44f47e782965aefc8a4f200226cca82e3cd4'
            '36500af53b77c03a633df02cef3a7cadcfd8f4deea6963c9cb26ac42a3eef462'
            '331bf7b540162dae755cae6d59ae77aaabffa5ed50b263e776238fba538c1d78'
            'eee573b6047a531c5cff11a0989ced3e96f3705717e6ae31b7f3ed0319c7387f'
            'ee42fbd12c901edaefddf639157bf70d67d986a75e5cf4b8457c2052c70947a3'
            'c2d73fa042603ddf2a26c771ee5220d2361d6569728a15a1643cbb875639101f'
            '1a8a32b1939afd6d2faa8440cdf01e8906595c953d088bbb5bfd54c7f5a3a17b'
            'ac119f500802cba7c8e32368c294798df629685bf2b4088e607dbd080c075027'
            '6a6a0e19c11332547a809babb27ce22d5ac936e80970203aecc2b0ea85922bc1'
            'f46e212b79012e403ea69440f54ae73dc01e8c8faddd79c26d946ca310598fa2'
            '46c14eaae7a7dfe168504cbcc316a1b9390e516a50b5251d6b03632ac4f7c74a'
            '33da1b92b437cd2943697ef07170c191b67fbd110a42855807f91fd4126329d2'
            '7c7b61f59f5def94e24de32492cccccea36844fa0a6d8646d3b38ce4f4b52073'
            '2f1e32bfdd23de0b725468361ed254c4ed043e120d2f3210f9aa10f29a943982'
            '94302bcff03bc4d45714160488fc1ad112d414987da8177aae2abd3d9f48260a'
            '9c303e87c3719d9ec5f10117cd690b777918253a1800c2dde3d4bf23c6167a1b'
            '05cdbd4a829a74593ef3f0d32f23e285f0dd393ec29b53a1f29e4ce7fe830b99'
            '9c9a2e33e0141b9a5d393da747ac45dbf841d916efee880324e7574ffb41661b'
            '446c97693782c6ddbdf3dbab9b91ce8faeee4770f1beb1780fa6cdf31a34b67d'
            '268dbe53ea6bb1b577cc064e245d2bc39d48220bfc3a22c528da95908f13995d')