summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 3fee86fe82d644711d59637f12441453c43f3928 (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
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: 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>

_oldname=firefox
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n

epoch=1
pkgver=53.0.3
pkgrel=1

arch=('any')

pkgdesc="Language pack for ${_pkgbase^}."
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"'
  '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"'
  '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"'
  '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/$_oldname/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 Iceweasel."
  replaces=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,} $_oldname-i18n-${1,,})
  conflicts=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,})

  unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1
  rm -v $_pkgbase-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@$_pkgbase.mozilla.org.xpi .
  mv -v langpack-$1@$_pkgbase.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

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

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            'e6a116ee56fda449cdd67585161147cb77dd739667131576d95c0aee94e5ad3a'
            '1d0084d8373617e25738a7b3462935369a039d56f82f64527ff0415c3db9e3e7'
            'b0740572e813b2ba281c190c50e8617dbce274ae16607cdb2f06f42a6c1e49af'
            '561d8baac858b8b54d34fec81781645a1faf4b75923095380ce3eede566ee4bb'
            'fc4f5bfc64ab7bcc0776317ed1a52d5f0c6d612f945bf8ae436a797f745a286b'
            'cc31c6282534e067e6b09491bd8ce86e84b4c46d5c217a1931f029d9e746ff30'
            '9f55b5cb611c95672e90188ba63a1dfcdeec3c7998688821feb0ac7ef435320a'
            '6ae5117b4636b74e6aea42271d109a1f295e3c5f2a1c13d935cccfd8e793df25'
            'bbe8e57e339423e88aef9fab8fd186ab3ccdf5bb3ba3828aec4b53db24feace7'
            '1bd46b57948be279d93b82f253d749e79919654374998ca814258bb8ecdf36bc'
            '231a3bc39f30ca1990deccf7da656958755d2639a97e89396eabd19ffb91d444'
            'cf14dd3a7cbae9d247ba8ae43bd8449a758266d768315ac27ecaf790a7775a24'
            '96c7f00088e2c758071d95c79ec474b9d56ef34c7d11c83b62e069e6d0e15d5e'
            '232ca5ce0105c67baed0ae7695d879621830595131ee5cd245149917bbc72c2b'
            'fa3281d69c9f2dac9eda8e96157f2b191641852562fb713dd104c94412112e7f'
            '632866f99885ac791216307f403faffdd36782b59ec4d71e5b80239a3f78782b'
            '85c1b80c5a0d4f0b0b991963ddff203624486fbfe51c5012ce656f201449fd1d'
            '4c8a3bfd1c4fb2975d5a8510a0bf1f15eb1d0bedb583aae05254954ae81c65cc'
            'fa0e95bb08506b4978bf57829ab12b030ba995fd49fc6ce6800bad20c1de2b6e'
            'a647e41baafbf943051c6632092074f6c753c303698aabfba075ef7e131c5ac7'
            'f1d6a52496f690a5588f7e7ed6e494ba8dbae32fb11a51a27885d442058fd5dc'
            '193c492ac1473bc3c776d6eb36672eaaa10846882d71222d5bb0ae93eeaec72b'
            '06fbcdacf39b7230c6ae7f97a6b11d61c649f0db5a48539cf7ac8da194bcfe86'
            '8d65c14c9946b82f3de6f06ddce3ffca2b8eccf6f8c114c77de5f37fe090c851'
            '1cef38483eab7bad50f814e854fd78b3aae5e94a4fdf886610d0a874c8a3c5c3'
            '68f738ae30690751e37d290ff4dc45d6464e659c3c24dd95077e44d5e70af42f'
            '4b47102f9fc36e651d7501d94e36da372e7e71fd89eed8c13b0b39c64e645a04'
            '31992fc3284854d2ecd15c8c05ece2e6912ce8db48a41cab13249604fd0033d9'
            'c3d9c9f96826712ef327ba273e43bb628e6f1cfb751ff12719d1be659e3c8c7f'
            '81481d249ac98833e51b0d847f8fb4091dac80b1ca613303f0067d3b0ae9b677'
            '88f5a080963cc08d56812683636e8b939c649028822a6c6ff1a2acf7d15254fd'
            '4d335479465769e31ab9d315d1be373da2306b78370a2ca61929f1dce746cd1b'
            '62970f8b0bde16afdb29067887c74ed00bc74d317621335683243a780d30d29d'
            'f593570f85f3aed79f99038f93447e41a28f025c5233d75a0b8ca232fcdeec3a'
            'dc0e43045727efa78a152ac0398196540cc17e1bd7c450c43a71484131f82701'
            '04e1a50f8030162244523f92d9cf0ba7a195ba742d292c64b78c88fc983b7584'
            '0d1890182a95cd2adcba8ed965e0553821d6a9597f577a1197bdcedd855aaad1'
            'acf0716f7f771d73cb21055428128d9498d633fda7763c3db9d427e8ba6e4243'
            'a115f95820f4d653053fec02b1c1400ab957a819722d5a29951aa1407c2024f1'
            'a62119d72e4f8e4b3f00a429ac0028fe6ca53f1294ae2089415ef2050c7f87a6'
            '263d142979b67853d37f60ab29f984b8e14a0609a6dd85da927383d9301e5499'
            '2a450c9aaf941ba8f9c0ec12354529f3dfb47d9de66685066634fd2e5359cfea'
            'e931cbf3ace412f860dcc7e0b14d862459f0c54e6f8abffa83825645910f11e7'
            '9663469370dc0a6ed450bf4061f0bd491e7766740aafbbc79057534ac319967e'
            'fc28470f937ab701a6262425a01e725d1c12e9fd5045750019608f00434ba93b'
            'eec34716ad97a2fe2a1a8449c4f450aef326c2d13b75ec571dacfedae918ee5d'
            '25df7f7d38327e8ff8388d9588ebf29423723f76f99b890db8d41c0d6dc6655d'
            'd929734bc994f3b20f7c8cbd4e25d98d9081afd63af81e6fd5318688e6b57eac'
            '4f8a8855b2680e8bc2323727d3a2d7aab0cdd9f718b1cfd3586f6b93430f88cf'
            'fd7aa5fa31bf8160ae1bba834bdf43129c14978cacc775d3625bc42555844f2e'
            '64b359537bf0484808f18dcd0338ac8c45a48bbb1c4727d1df7af34ecd8ba310'
            '225c329d738f295078a95330fda73a9f9f24f5a0ffc812985fb0a3f25513497e'
            '085d618e649720ab7a8649f4b5ad0e576aa5dbefee4ae0f23480f19b8dc48ca2'
            'd2c3dcede1bd71d85877b8f9b4b6e300275baa9e9f266d65066ed49ffd970fe1'
            'fad69dedf7db8d0ba39209dbb4a6e759c60e541c253101ec67b288cb2fed9ceb'
            '7f0b62d524629a037505f8deb1e400c3da5fccf78c0de975655f973e79231285'
            '54454c19503de03176a98e7a9c1bae14bdc40886bb730b7f26e7b0d38d92a971'
            '1861bc9a195ea3b0319a8c1b8b664fe1e4b5e007ebdfa4f7d1784631da2f8c0f'
            'c00e2a8254107817c1f2d27947bc91755629fa734035099693c04a7ff9065d90'
            '25665e8c4a73180dca5c6b271c4d89b8a800261b019ff2728a61954af10f5de4'
            '78868c7546daa620f186c72c84f51d1ff30fb007e3b3dba4dfc194c109525682'
            '857d6e655c21deef2c0b1010d911c420175e914ec2793239e27b849939f388e2'
            '56367d182c2815d059c41bbac11825a0b7c72b9b30a5adb57863c42a97fb6624'
            '4ceb5646daa509065fa5de098600d4b60160052240772d33cef78f8b6a34e697'
            'b812e5b4f681d38dd6ea9a707ce5297e79f25d7216f4436ec22ec580f0880b6e'
            'abd34f2c16841f9a6159b4f6de967ea19f1920b941f89802ab8c34347a073932'
            'e42e3197753f83bbda085fad8f7b1582ccc0af48a9b4189f8987d8314ddc7e38'
            '7bdc757b4d74430d0821e6e3cfe6ae252655fa7c1f82478a1140b32d794f5f60'
            'a6a94c7bf40c3d50112284c704bec10db14997913d5696b700b78b7e5c7bbc01'
            'd7091eb558474f63d12ac1e182d397c708264f0465444d5bbe06340461409621'
            '34297b6aff54b29803c2c534fc31405cbc5a34a0ebaa1e2bd5be01674dec0355'
            'b7fd92c3e4bb7425457d1de0a4d0944766635bb984e6d31104704160e465c3d1'
            '02c74fc48145cc3b40d06c94210313b7f24975b45bab9aa877b392bf932713bc'
            '9d0dc4348d0290b5308cfb3dc2e15583188ed457e5ea3e82e08974eac998519e'
            '51d9943f124ca27928bd2812873b234715b038f2b1cd89cbc1faf9daee0dd0c8'
            '9b20181adeaf5e8a81f0014612d280b80d2d43b9c3da28b45fa2d94c5c16d3d6'
            '3d394c7bcc143c59fb9bebc8309f8ddd4c13ca35fd44400957729b9146b99879'
            '3f328c63bb70243cc2e74a6a4403f8755354c7b85f6ae87a74853de037a69a26'
            'beffa4c7fc7387a04fef9d96ad1cba47c4a4545e6f25d2826c96b11d1dbd8d36'
            'e7ba6289dd07bc11df9481bcb6dcf9159a84f163efec5ae92d25a294ef1f6cde'
            '5fa121ca8cf3c8eab17332c9f43bd94414190ccd2827fe51b68946ed04856e77'
            '71949c2ebf794037b8bf4bd2452a8aaa72f603012fec0a921aead50eae2ef27a'
            '391a6d7622d216673e5f2cf6391724ceecb257aac6089ab290dab510bb5ff92a'
            'a80e1c178f1d27f2a551665faaab48445fab20238212ae5c0dce9b9cacc1247b'
            '6357bdc635568f52b9c03b8785b4cf86b656fae69d2393ea7b53fc87360803c5'
            '12e9663e2a591de9b4eba5d689f25ff98e2db45781ada5877d8d21f093800eae'
            '966d51bd93cf4b53721357770fca2c4bbe064a067bc044b1ba0e269213b442a5'
            '90d44b439af4204fb022e99e045540268d8ac078470e7a7d756671161d79d5db'
            'cc67e32dc6aa0f36827e4a9f156b8476950cc876bbbd9668e7f928dc7c90aa9b'
            'fceffdd06821fc224e5a7118e54f4ac14d73b175784f654646791878899ea385'
            'befcbbe52e769631c3792555e4e579684762c719696fb4c0e0d48a98e4a5d599'
            '32e697c5f5188085fc1bf08216ca8d562cd2c286ece23e61d9a6359ff6e78061')