summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 019e86d172ae64bafcd6ae72740bf2a4af7dd06b (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
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
_pkgver=49.0
pkgver=49.0.deb4
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="https://wiki.parabola.nu/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$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"'
  'id     "Indonesian"'
  'is     "Icelandic"'
  'it     "Italian"'
  'ja     "Japanese"'
  'kk     "Kazakh"'
  'km     "Khmer"'
  'kn     "Kannada"'
  'ko     "Korean"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Malay"'
  'nb-NO  "Norwegian (Bokmål)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  '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"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$_pkgver/linux-i686/xpi

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

  pkgname+=($_pkgname)
  source+=("$pkgbase-$_pkgver-$_locale.xpi::$_url/$_locale.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

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

_package() {
  pkgdesc="$2 language pack for Debian Iceweasel."
  replaces=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,} firefox-i18n-${1,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})

  unzip iceweasel-l10n-$_pkgver-$1.xpi -d $1
  rm -v iceweasel-l10n-$_pkgver-$1.xpi
  sed -i 's|Firefox|Iceweasel|g' $(grep -rlI 'Firefox' $1)
  install -vDm644 $srcdir/brand.dtd $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/brand.properties $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i -e 's/firefox/iceweasel/' $1/install.rdf
  sed -i 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
  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@iceweasel.mozilla.org.xpi .
  mv -v langpack-$1@iceweasel.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

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

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '74e77ee93d9806f50d3ed4ba4a2e1140dd2043dea21fde04f07f2d861554feac'
            'd4c11cf1f0b879c7a00c50e54a1fadb6e103cc5f3749bd9b5438eec68414dfcb'
            '18f91834bdf82d99a35c3615b2f212f425f1ffee980861c9a5ac143c3d64a44d'
            '8a6d8c5dd590142c4adcad9416bab9ec1290c77c45adbe1bb67c32eab49a466b'
            '20279a1e96b517010bbdcc1f53e8da7522a7ce7a77353b7cd05457c6ee5fc1f8'
            '4ee419fa0660c1ce125d4e8c43762ca0356456f793a1da62f5f330a8919a711d'
            '41f0bd1f57dffb040812d6348908f8326344241eaca47ef6d43e97f0cb5623ae'
            'd41263ee0feadf39935a0c80903b2774b56d9117393cd299583838f6fd58e0c1'
            '2aff7630fe389dd48a8d0e68c6fa4806aec5fc4b6d760fff978cbe2e9ddf5bd6'
            '8b22da03725d6b889bcab67f5fdc92f85fa9c331b9a88b395e7de4c9131ee14a'
            'f0d128f08e36819372d269408cef85587234c2cae739c3e15c9edf0d3e11eae5'
            '2d17b214774a5bc9872f2e628aef50781331933c641e0e72ac8d7eb8a26cb326'
            'b99a1bbcf93bad826cb34ce93ecbd356a21a33c64cf6877a7224a87347128ec0'
            '59d4c8249312a1d79f3ecca11523b9abed4023a84ed666aab1365e0b2d164261'
            '61833f11e37bcbb96de27dd30a0fe4809110d91f327742909fbdf76d32cbf838'
            '450c1eb6c34af705b22d171a0483fd8e847fb40062e3dcf822f3e4db3e423972'
            '3f72e646d51af08c1898662e3c57af872ed99a0210662fe48db91f4275ae2f90'
            '5adfa8d47a10a521e6bcaaa54d2ec951ffd95072bf054fa9e274d89017c656d4'
            'c7de9ddccb83903b0feb2122ec6aefbeee89a9a6bd0e6148f17ac24dabbc9fed'
            '040e499646f57440526b91d15ca3859586433341089c3186e50b63eacf252de3'
            '8bafacb3fdd32070d045397c5605bf67ec3e726573952b3424f367460fa9ec40'
            '9bbde23343491c723a73217da3ef7f53574580d9ac12997c2d754a5b8c33993b'
            '2465656bd1116c12e47253385464b7500f6056c7faf8252386832c89cd83cb12'
            '30c9ead203b3eb1c75d1d88d9fe34f4a9b5bec776b5bf83ff54572a25dd99e97'
            '7e401463d87ce8073e5a0784fd52474560bfa4cd8d7ce24c466854d3c4e601a4'
            '88b0e36cef41f84703dbf834f92b076ce3624996fd6d73b48546100131e8f175'
            '95408c71b561663b4952ef079e9e7754e4f1e10fd625eb38fe80641ad425aecf'
            '01982bafdf2d5efdd1f0ffc0e94bf96a6a858c1cb05ab84a110deedf566da8dc'
            'dd282ccd4b60c25c5ba8cf6aa18c90c87b9afba4fdaffe5d5a5f4f27f2715a16'
            '0f0782c38ac74f9dcdd43a64a27f0b6d3d89232e9fd907fd680d717b5efcf9d3'
            'a5382f4f8b4e66de993245cb3caa6310b769f721920cc8d2c4fea38d0c141850'
            '2c5bfd1e397f6a9e04609e51c1a80d98463646847bace47e63f24e18dae7b138'
            'b067901b0186f7830c1cf4f0f4dd1f889271ed602da3f5aedef143af8529fc37'
            '1223408b0d7e8d7ccfbb5e8fb5c46b343fdbf7d1ddc35378161600659bcbd932'
            '42d2691944e4d880a6a5513eaf8aabc529546abca9f43edfe4df9106c67f0420'
            '70e375afc1a508e2d3b734d1b70f15089633820f110689ca92039422061c0960'
            '60abcd3288be743dcd94ccc351af5bdcf8383606aae5e7d135953bc17255641d'
            '9e73c4287f63ed9040ed1d09d35f87d3e9a590483bf701af1b6416c91db31665'
            'e6a19bb050a03d3d8c938dfbf08418fcfe36ef89ff7632f1881d0159c2828d4f'
            '5d86e2da7e992f631dd0ae4f69a1e24dd60ae1045623fcf15d5a529352287202'
            'ae29bfd00fb1895a40e711956367938df399123ac8f3404a528c55acb285dbee'
            '238736c4020c896619cdd9fe159267a85c021e3d14d0c8b7f6db106e57c4c538'
            'a584848452be3e96ec7d9971abdca27f652a5ae2f1283bcfcaeee110fe02d5ce'
            'b72532c3c1ce3a001d468c601f8e056b360487a7cda83801bc85a26380b52d3a'
            'fc2d8cd3d4e2c4958b2f817321f0f1f72c21305a1f63a61fb871415ea50b56be'
            '875c5dd8d61656e9f2f49a84f6c8c57a274fb9a40eff9122f0a568fafa02d509'
            'b074c8fbce1ccdbc4230fd02aa7242839c47aa05d1eff65b2d2d6f7d4df5c7e5'
            '86c14a2ae4f5fea840760f17f0e5842124da26d5bb1a6654494efc53be49bfcb'
            'c03c21291bb939b266a5364362c68606881b442d9b5e666d98c75f291d151957'
            '166b704cb0cd351c0273126da1985a66adf9ae1b6d090153523e439c6f2386fc'
            '7958060108398ccffada4b0c3cfa729a4215d35460468273146b2e1ccd33c559'
            '2123476b1a495f2f0b050260cdbf55581b8e768777f5f4905b66afe6ae4be4be'
            '309f7a0c41f3b00f1f057696c393792fe2f6503548b78b1b9d3b2b152af93e63'
            'b0e840264f89df71e2054b8ff69814773f20cb0578c2a1ea4ae22b343081dd24'
            '1cc35f6df390a54f1b7f54c4b5dddd5d416256e4bb70170a2e8e2be028226095'
            '293c71b21c8e0933d153a2d82f50979d415e25c6f31c76b4df61dd4de2e6e44f'
            '4ee7a942cfae3ed3ead7c53eab944cc62a97982e14cca27f80132afad6bee197'
            'eb890f44e854be962a24b1f4b8ede2b7f96682dbacc886c3e0f5ee595901c0b6'
            '35390ffb43006544435cef05a2c6448dbac33a5f333d656d1bb05d6960261a77'
            '3749b6a3a7ca683dca2b7bd86b66977d38bb8ce1ecbe13173bf671982086aede'
            'd6580e2eba53ee39ae37f88e77afeebae87f3664b507cbedca21d92289f279cd'
            'ce7952b3e85d57f1e3c0f5315076386a35c389703803822f242ec166e76bdf2f'
            '2616b7425fe4914f69055577ae1836737e2a37fec50b786106028d2d6f820257'
            'e7dca01248fbbe82ddeda4b4706f290801d76085e9cb60da45946dd8973ea681'
            'ea1d4b8804a09ab421ea343fd1afa81af90163bfbb09feef046ef3cc4e9ebea7'
            'd872ff462ffc4b7c3c5bdf50da558b0c75dfdc8fb5bcf08de4c3df036279ebf0'
            'b31faaf8bb81837b084161dc6deab0135824dee7621b91e2a778638e34234ed0'
            'a7a129caa15233fe4b85727515d79a2e8a184afcb9940b491482f4ffd23cfc04'
            'e75e8fbb3b2d60ca4b459cd531e89914d70f2bee42eabee9e2425a272b1f624c'
            '77c4f4468c59222096eea30091792d9f0feb9fa425ef245e8d20a860a12b8a2c'
            '34f5d339ecffc9a059fe08fd9c11c1487b3c9d3480610c4e85c9091b7fb2f187'
            'f898bd1cb618f26e62275d9bfee1966492629c1b30fc88d1cdfb81575628b95a'
            '0efd15d38d73ff52b372150b62c499915e9918e6040485bd17396314c1d58d6c'
            '05054561d4a98abb55c0b732a290af7d7f2416c84056e70e122bd42e192da883'
            '743da09e1379a4953f1cc74acffa648fd214dc37a5c2504d40042fdad52366c7'
            '466ce533193f90964207d406c470591e5d8e818e46de48864586a4a9a4075787'
            'ae036066978340cd8eeca8d49aae5dba8afca4eb76c8b7a19d0af54fe3d85e58'
            '54018f51755e4fb715cf7dc8f2789747656b649414b4b0a46a7bdaec3658c7f4'
            '6f017079d428836515918c7f32a2c1acc9a07cc67e9afc510488d7ae6ddf9030'
            '76dcd84ba983e48d081faae04df35febad163c639d409000bad39d7758e344ee'
            'fcca052aa7d33a03293ea0d52b6e8d2c444453290cd57431b51aaa16595f1ed3'
            '3ba228585b296e6d1a6013e49e345ed994dd5a8f375cfa92a84666a5b359e1ae'
            '4b807f928829a0d1f59f23763b0a302e066b159fda837d024d868bfc82c17809'
            '9b1cd82e2ca1617086aabaf8c9c722d24b7794ee5f2588c1002f51b3901ed14c'
            '4417c9b248b1d02170accaa0ba3014eb2765cba7aaf388ddca3696c54ee21019'
            '5571d1b5c42fd5db1b4b75e1a84edf9c2b8138dac635b0461e89023c6b36bb4b'
            '85edf9733bd538268c74519b1aba4bcf79d3cd1983cc256f22565d0521b8eb8b'
            'a6844d3412f58347a22e3ae0b242aee6b2dcbd504a949c064c83398a40e47c7c'
            '1f5648cecfeb15503a320cf0c765b097ce220d01f17e4153032ef99fac3f6cf5'
            'efe84a997c57c394d1cc1067a1d63fd77719f015e8eb42bfa9fe8225250e8ddc')