summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 810199d29ff69e55aa1fffdf44de30702d7b31a7 (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.2
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'
            'e4997e2ec4ac9b164d0f1a0e69c539fcd62f4f3ad8781b62bc91161d87244ca6'
            '049dbcbddd71bc640a192f0412660b49b9635fb3c95c69bc6bc39921efc858b6'
            'cd8551e2217b018ac4b77cf7ac556b0e3d337ada79faa05e8b433d82bfce2563'
            '4ab6c8a349b84c80a60093dd24e12e32cd3674cefc95a7d7f4399b87c7e68f43'
            'b9bcf4ef2bc5d55a5861de8efa8451174a420e4032cafe9fe463c78fa029963b'
            'a812abe6c44bde6e39820bccc3c7448a658ef9d9d7d98639ad7fdf39229ce6ae'
            'ed972e2fc9c7aad3196b5db6c82812acd37d08bb83c1b9f276cb73f99cb10e44'
            '5ff30769b04e5953c33cc9f64c66d8bbdc0ce8b0b1929910ffd82071964e138d'
            '11984db8c70e3bd49a96c3e893c3681108bb9e9f698167c91f221799c5b26c23'
            '9140e4b831f42d17d738515a104613b1632c6c39cd7165514e99dfdd561fddc3'
            '7d6c277c61341ecd01d154a0c63e1d6d6d30139b22efa4dc050297194ef6ee54'
            'acda7accd57dd95b5a48ec7baf25b29cc6938027e5bfbe9dd4ce999a31e448c1'
            '69accf3f165f7feabdc3d3d59ef19af4b01811a89dfc3cff89798f71bb1759cb'
            'b409e3f6d3359fbe1885bed346d04f856910704258be6235ac4b8d677ac87e8b'
            'fa9159287516e9c84f11fab742147c767c405a5ba51036cd8251af9f83dcc295'
            'ceae997c6945d2bbcda249433c72299d42e7798c19b7f2c71deebe77afc0ef33'
            '1fd06e46a5cc6d4ae771fbc148b71e9e53e2a53396a44097bc9068714e94a805'
            'c8fe1d4d5fa996f43c4ee9206fcd0519725d55221ba53017c482f8dae8880b70'
            '5bd6244175c8cd96a0938eec42aeb470bbe833d25c1f1745afbb9bb3e66eb814'
            'c9be692a527ac9934ca28bcbb6be3a1c1a7a6d5471cfe75809100c3941d55a37'
            '2e1ee6612d7ed621aa5e43843de253b5ae3b31185e3d9d2607bb5518e27e864b'
            '64c001b0a31985485269c870adf37f0652898f22774a1042030faf8a9af5f362'
            '7c830511020b3c3d941d6b699b569a3a7a0897affe70ae4f55229af657b4696b'
            'd09067757c1d240253fd4a28c41955163677f2198b9ca8967120b876bb206109'
            'b9f4311f6aabccb3abb87198a56e34ad6560fb2802e227a557603b7dfe811cd6'
            'fc5fc1f2126c2c87757efcaaa90d4cd5e5d1ce05af4c0e74cca1d144589416e2'
            '2138bc886d134a7a3c9511f25acf984e83f05b0940de4ccf1ed5c15b5388a2d1'
            '880c74c8994f4353f7b5149b88795cb84b6b66f26ee3a5fe181bc3cffc48db9a'
            '79cb2491f93e1e77710b7f946e46ad2dd1d2ea1d99353ac513159a5ea05edabf'
            '321d33ef3bf6faffa2bc5f333ac247773742402a597017b07cc6ea02b6d0c564'
            '55ebe6b49e65bd84c5d4a7dd54d98457979d9d58abfe7ebc861ed16bf1e23957'
            '4adce2a2efc8d02fbeee08fcc4442ca9bacd2ee4efaac9ab5639cc39dd7e0441'
            '527edbec7d942e34714f234509985738125cb751011ed781e17a8888a40e2b29'
            'e51f8f137b63cbac65bc8d1a63e301f128b58a502d090bd05838320829d28eb5'
            'e6c47c559b647b9e2e2ad7b7dadbd9c92680bfaa26a706181d7d15d6b3b80189'
            '80c291b1e480765fdcf012c460c172297e25bb022290f72c3e742cf4a0113fb1'
            '8f575e976a6b2580344957ae13809aaaff7f64f29722ff7e339c3535ca713346'
            '5c78506787b4e207f2e5cfd9a387d566ee9d964b2e29d41c9c1500171b33d81e'
            '24cc04f7de1401540069fe12231c69d53d72bf48b21ad0158a57a199e324a97c'
            '0cb1ba780dbf7e71dad2182dadc3d157261e479d2eb9ac847a5eb93274af83b2'
            'bbb0c993585759536559ce2cca98827a5915dbe3880507a8681bc09a54e44901'
            'fafc4772fbb6b96857d3f42402da2a556c20a0f291b479ac66e0c53745d29abe'
            '978e0c8cb2985aa8906f35bb49fb4e4e2bec3492bc9c7c5b0a66cdbd9acde794'
            '2eb787c77113156ab23d0986c234c12142981f73486af8474d011f1d89d03e7e'
            '6d5537e0b83586d2561030eb480c21f9560c764c5c9d53cff6a109ff0e4a0849'
            '363848557e54c141f7aaa065ba9fc658217b85cac901e71877d912e176004d50'
            'c36719ef55557538fec0d7a011adda063494428f07495fc7cc3a592ec3c28aaa'
            'ecdd58c5c92133cc92e0c3cac9c2e3de06e4ab5520c031ad74a03813e3ed0fe4'
            '900a1823028928d24247cf707f98cfa5226f04cf5045b7d50889f68a9c35f735'
            '8723506b966f04413dd5b20ca7bbfdf82373637b9d791e4eecd36f6aa0028aac'
            'ed1f6920353721d64167b93b85bd2119c370553ef914aef1f18e2f01739cb0b9'
            'ebd1b1bbb217a1b93726b8fd720dd63680d28fa76b9fb55768e87f7b9565470f'
            '47105e123349f68f071d748fb2a654fd2b8445dcb9bc1006a83401d759a5d71e'
            '7504d2e8e224240aa1a2d0761fec7f36c6c6427a529021f5aa7f33f35185072d'
            'c5b950cd3fc7b1b2dcfea70508da8f8fbe327ab4ec662bf4ab8e9796482bd109'
            '114e741a4ff2c75863ff217b4df778f4c2f4c3307bbeab6eacadcb9b0b2821fc'
            '8d0a46effa9d4dea17ec8f32538494ef903dd6f2908fd7e4d12cf89b9f514dcf'
            'd6d97b8381806d315448eae8ac3071d57aae58a2f7ab89f419ae21430e71736e'
            'c1de5e657eaf33e1336162c06e9a643de44cae2083c6d8f7dfc026852aa2c33f'
            'a6720e6734307e659ca989b3131cbbc51ac3cee8f75b40da2748ee4b26ac8bb2'
            '0548e9b8e574db76432a231fc9e6bb281328e22413bcaf73be79ac0d815cb4cc'
            '9727349fce8a362e83acb24cf403dff55dbf788e77d367cb236db8453b3d1e7f'
            'aed732d507da43096c2666c7082394382b57d8f5db57f9469819c1c461ba1eff'
            'a6da2ad562c248b922e9329511d649a7ff30edafba512585ff9824a047fa9b5c'
            '29278b6bb2f86c00b47bc1555bdf39901fbae933bfb8da332c6fb4d9bb98eb93'
            '85b542b1df86fbaf5e72dcbdcdb1902cb4c9399bf9d8358864189748bc40be4f'
            'fcbdaca8ade333dcc6a9907d25826c96a3bdd38b738d767e8dd0e4d136cd0a04'
            'f11ebb89292b1f6ea4b23aa1ebc9d2cf06eca70f74e3716bdf212813fa27d1f8'
            '62f6b27b921403b5eb66ed6cd756ae58158c576113fdab7e22c2e0d6addeee0d'
            '51add79881216d6b0b6b6a0e542312077c90a2f4bfecde7cfab50c021922c255'
            'c50223c03c0a988592f6ff6faf988b0decd20ffcbf86a4094095795aae1a191b'
            '3363080d6e6f3f64f0f65fd5dfbae135afb9fa7ac581dc11eb1f6b1d729c3419'
            '122a54c218fd4f0968815a4bf5211952225194c1cdae6c87d5236f14775cfd08'
            'a287438f5494388161055e2cec97ed4656423431697a244cb35c77ef722655e9'
            'a99b89dbc7cd74f212edc93435ec28f8ec07cc09b815a07cd247eb5f9db51eef'
            '481f65471392779bc115b78e9b743092e807ba623cfdb7fe1a5f0c6ef140c790'
            'b25dd55d5d046ef80f5dbabba18008a53074dfb5b10694c3a1ef0bfa2ed47768'
            '0aa9b90d9ee33055fd45ce508906231efae349a7fe902dff42d8f52477d9d572'
            '4e23b6888f767ce131b440679025cfa523cd29673985b32e4693233780ddc1fd'
            '9a5bb0644c00fea4eaf1e0cc5491340769a011a64ad106b2fd0c6fbbffba73b6'
            '94bdf395d5fc7650a2af468f011b937f8fdf60d5d3803985d557978af1f8310f'
            '16f41d29b8afabb32e7e488c476fee2bc84bcf0e6fb348c1a4c6a8157f465cbd'
            '333722711aa715f65cd79b98f9edc109d151706b71ccec052cad1c3f55530e0b'
            'b1547d3a366944f2f2eb2efe5bb2140d5be98590983bc9a5375bf92516835df2'
            'fb8ca50c06430e851aa7f27812e223f80ac46770ce243b8fbd0785b574d9f822'
            '0cd211ae333511fb7047b0c9ff7643b1b34893cb6255139c8058ccb267c03a78'
            'fefbf5da1b82dc13057c322d1896834a44663369d849468acb1338fe8d2c0009'
            '3f42f3473a001ad4f04d5c0adbccc9a1eb467dd478d13577ac508dbf29da392c'
            '30bafef9fc22b8079e2ab3546a2589ad6899e9b5e45a6141d85419dbde0e86e9'
            '2d3cc8579a83f5992e3b53f0f4ba1bf941400f075aab154c85c889069970cef7'
            'f72a755f23c77fbd7bde1f150d320ddf3516baf26131a795c3227f85a41d1b43'
            '07718242af2d00df88cde15704e5af63149eafac507eaa903e9f094f7796be70'
            'e996e2042c168ec26fe8310343cb1d32fdebceecd633cdb403118bf679062526'
            'd66d88d278fc54ff0081f83c0b15a4b2f47308f2bcb340332f6cf13e85dba160'
            '9b669d4dd297915657f2d8dca25aeb51d49e9138d6d6c542e82256dfc477d696')