summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 35dc5e2cd510ad74d3a4e6e31d483dece978d20f (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
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# 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=57.0
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"'
  'be     "Belarusion"'
  '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     "Montserrat"'
  'my     "Malaysia"'
  '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"'
  'ur     "Urdu"'
  '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'
            'ff5bbdfcca5270cf978173eb13ce10bfb4b51dbd1faeb9b69c50f689a1eb3dc4'
            '65459a5914dba1de876bee7d867699ff033a9722a957675f973b5cf1213366b9'
            'd24b77cfdf3d5badd492c04f5984171bedbafcee31fb447930925e2c911e5261'
            '06b0d8f7f34eb661f8f4944c26ddeee81e84bb00dd07dec4f1f06e54f1cdbe6f'
            '8229d02b5f8b88dea2a6e8f83db6c335c951ebf786f4d73fe28dde8457ae4d59'
            '0f46b1d36c23ec86656208241e692f2f4fef6338285dd54621939a53672d497d'
            '68db90d2cc24227407dc20cb8721b5f89ae875fc3e0248981bf5349b2348030d'
            '9e9c151874180d2ccf6ac1e7e7a59a5d2e72f9543bb6c128416fad177a2f01cb'
            '10c386468c1d34676a7d4e3992f14d853cd29f61bd1d12b04f3f1b66ebb8993b'
            '11b541a18a34fee16337dd8648a36e45b6c5371e9c17a845985120e6a7b1997d'
            'f8c912705b760607456a140506f3120e9d7c9f0ee17508d4cbd1eb3e18bc895d'
            '4c76bf9c4b39dac467de391527072ca6d81c83a9ccbead46dbbbb76a8ab7c252'
            '4d3c483b4e3a20a852ddb5fe6a0d1f447366310dee446317017ebdf332e129c1'
            '21fc2934acb751e89badbf215aad67085c310cbb627e44277d9592aaf213a837'
            '95c3cff1bd43dc2f14e99a0c10d8f101beb4e940f810279a2912571ddeff6326'
            'c579929028397c8f93ed7193cc4f2a6511a5b503d59d02d6599701d7fab393db'
            '3442262d271a47173226ae327be47524ab0237b0ebaea73c61c61177463f81fa'
            '538e9cce1e72af3ce6c6bbfe0a310529099dc95100546974e8b0a228860854a3'
            'bb4c883efe6f393ed47d91712901ca0bff04951db9e83ab5c981811e60512461'
            '51ef0a8a83770dab060779d6b34478a60d080e743b8c446b791a89236161f29e'
            '2009672fb40a593061fba725ad6fb5c6b52b330a7724e3e5203c8885df5fce81'
            '404f4dd5d724ceacdd49b63f303ceeae4608f8e989992ebca71198251023fc7f'
            'ac8b76c6ad2f10b62c784cb97b30b7c8cf0b466102a3732199a2ce5f355aa0db'
            'f1d21809cccea7d4bc649b7337ebde96f3b42185d154e603dbae241e5d8876d1'
            '599314153f217433a53671ac0c118be5a6953094bcd94fe8230f192ca5d8995a'
            '6f6d9805f9bba0fac0afce20bdfb1116c1c441cb5463fc271e8a3cec2cfe2bfe'
            '141b2502ed61b7ac439910c252c6de9388ab6a6783fb290e77208367317b4fdc'
            '73409303fc344d642f2343fd683694b534291c6ca5a8f8c63ee27b13e2ffe8ab'
            'dd136cbdbe64a77341d8345c388f6ca63e5acbf65ba2f7ef7d61af52bdbcbf61'
            'e5683bf2280fd070dad6855af2f60bd433d9200af66ec0976f5045d5d44e8e30'
            '562f0ad72e23e6b37969c6b75fd7343cbceb67cfb3db570525b796c3a214b2b2'
            '39891a98174cdf50dfea0a69e896049ef8aa66be1c694149eb7da3ff421045a2'
            '0b9a56e8b6378b13db3011957c9e040c3b2e74afe8de34d0333b9029b15d3f38'
            'b81be3f2dd15873dae20b4eced377e3e8d3b40de59d7735c72444e87dc7f476e'
            '59578e90b9832f216d01755cd52bc5956fa646bc420131f3b00ce09faa8d6271'
            '529719f9de24ed1a1573d8a55f91d2cbafdaa37d06c65ced206815622668fe8f'
            '563933a54d94fa031fb309157d806b50e694ae42e6723d9a5b6e442fd5d53f21'
            '69089bd588762270bd6592b544ed7886b4d092b915cdabb4ffee6c9c499ed924'
            'ca5195dad2f043d4b530b414061c92f835fe0f9c2f0e8a64de0e3a73079e4e6d'
            'a118e4b81c47da417fe79af3d95788e04aaf42d433e8984d026851c41cd5ee11'
            '0cf3579447aa63d495d5ee744d7b7dcd16eb6779c8e398f75a3c12841c1f2461'
            'a2c770fab1787623f9a62a5579e7e2f5e8561ba38f8223ef11c75227abd5c7f3'
            'a07ecdd23d74ea5ae916b4a94ad513696e4000f703ea3e06cdff9c579748e1c2'
            'f88a0964a4e55a4b904e3e466d78f853b58f99007f920277651b4176f48c1cbd'
            'bbdb24808af0f07be665ffc8cadf687ef30c47075d0b1ef78a58311ddbf99f7f'
            '23767b357e4ae9a470605a7bf5e5231301ffe3d65fea8e11c07f82f53e1fd9c2'
            '8106177a21fbfb382dfe26b6106ba35128a03fc25d06b492f948c7a661303add'
            'a3cce07b6c2369bfed1c47af5fd3de8254603efe8b7d3e3929ddba32d824237a'
            'b608ebb8f34a93968fcef85d1c463e32489e999b92197f9b21b094d76db29767'
            'b035b10133444b23fbef2c66c8548fdd6703ec304d8a854c5fbec42e79f9778a'
            'a7e3af1bbc6bdf3ec139e77e3cc1e39b072dd68b0a434ef96cc288e7424eea8c'
            '09dd38e2f51b0228dd0302e4afcc6ee6f6f2d89956172c27518cb9c7423e155e'
            'f673912bcc909e9046008803886cf4322653871e7b5b121645566c2b92b5fc39'
            '4d93c3e6f982f4b10d614f6d237f8fac8887c347f1ce11aa6728d0918d552a87'
            '11cb79e402ba96e678fa27bdbd39bb7ec48533eac89f884334b65ad9335eef54'
            '1230fe7d27fbc3af7196b7258bee255b4d85dd232c117a0a4d515ddef74328c9'
            '1d992cbc4f30bff88b40d46c55ceef223f7b66ad489e073a859655461edacb28'
            '4e9e6e0661c4bea860128dd870596154e68c3367624fd6cbc690e2c341157f21'
            'ce3bdff82d4f6baef44d2913e4da76b83e50dd0c9e3102e444425d379e2347f7'
            '25bb6e484402d0c7909544031c2fe84f04b8cb0d563c902427542ca8b0f0a996'
            '7f3dafefb77ef7d5e73dd9a762b9d51f05c7c739933561b3a0d53c7798fff9d9'
            'ac348da0f832916715da5111083a4e2b72a7d16b9c96c04a1cc4d5d3e6c862a7'
            'a4be2963a72230143283d674ddcc3c28c5f09636524af145f5f53ecce0322572'
            '410200d49c82a8ba5a0ecae914e1da3f04798506d9625acbc10c5ed3b99cec9d'
            'c1b61b1325581a5c2d927a675b19e9d2e34c708bbc45ce5f6c03f386de5b33e5'
            '512cb14ae373275c4755c478ac1dce4c51be15cde0b2aaaca5b29c3e45df0a5b'
            'a57311847934d5dcff18066ff7bd323f2c2406fa3df4c8e258b8d9d0939b1be8'
            '303f6a0b8379bbbd6db4ac45e6eb5397d725259ac67eec50a15b32686916d000'
            'eb127fad8c44a4721fc1cf1d901d0c2aff16041b8bc54d2d3951b03bfac94600'
            'dc0f59099e8d0592b3e61d8d5c88ae22b9a1067fd89911b7799f8b43d13a2f6b'
            '33348a739ae6b01c3629def78a855ea6ea816e0253b696e58ba9ccbff3fa37d6'
            'fff4c80385e9eec79ec93d4fc35f84301fa28c8a527591196d719f675c9ffe2b'
            'd50347c7a26681e87fe6b5978a8fc05f8d7a885ba440cc51da03b66875fbd76a'
            'b77f50f7b02a78dc24dc32e9bff82b46bf2e37a62f978c1fe5ac172f6bf63f26'
            '695b5483ecc003296cd25b0b441c73c73c475457466fd7cff3f39a8491a44910'
            '591ecab4f6e3869da69e612f847a832a802050471655565d29aa8c76febe7b7e'
            '3b7355af69378f3bf0642d8f93c2c1fb6a9665ddd5a2b6aec4865baa8cd7713f'
            '3392da245426ca4480b478455b61b6d53fe5741e7c0c3772a610e622b0248715'
            '5ac2035fdb85fb5bb789b6f2723e69bd23e6a15f6a4dfb184c08100aafead6ba'
            '6c55623bb30635ac67abcd3fab3b4cc30de5fefea2ae0bbb99f15be7c7843245'
            'ac13a973cacd9e4c84401cd11095c0a0f307d07ebb0719174adcfcf957188316'
            '2b999472e0e6550b63782d15aa713bac47b3ddcf8a212673a30fd6e55090215c'
            '75849a57f9b44b73445b302279dcb626389670a20dc3a404ad5db774c3ceaa00'
            '87ec5cbe45db203cfd1fd49ab7d2fb78df72fdcd4867e2dcc16727463100bb06'
            '74382122b90dbd76d128d5a860d40ddc839f315ee7cecbcdb73c2fbf20169199'
            'a40de1d2174392d96bda8cfe65c8e374f4c833add0e1719d6c44616b571e6855'
            '9d7cff5544312d33d44a2728f095e095e646ae2cd904e014fe69ca8016440884'
            'fa1e8613954cae82fa460eb840af561df5857320a33ec5a1f8b032e3ed558dee'
            'b477818ae7061f7523625380e93fbe9bdfc385279e7e96cb06e98e6ed5915d86'
            'd9b3f9e18241a5abb31906792bae33c6b6b579631678c97236291e388e8bc195'
            '4d4fe1f56e5c86f779753eed44f1b5d3f1cceb3a6f46950d175ed31c9f7ff39d'
            'ce81dbf85ddd901acb8c9cf7cfd331d2dfe6f4a7f5e4d799d664ff867bd5d40b'
            'be4d359e06a8a10cfda658a6e7c1e13ff857fd767d76882bedfd1aada3a6900c'
            '040736b596b614e55ac09aefa3e9f04211f16cb257ea0c2d274ca0df99b787b6'
            'fa5cf52246a289bc91d60519697977cbd6f999f5bda7eb715cb8303af543b752')