summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 0d6a86d6b5a751f7fc461846b807c0c5ead72573 (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
# 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=55.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     "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"'
  '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'
            '57e804fe2d2ecfce6f57406985d74d05b1bb6a4b0dccd3fcee8c3d9d36ce753d'
            '4f676b98ab4198a36ed1ac3cb9f357e6b59110d1d86f756adcb675a86ab2069d'
            '33ac2d10ce013952bcb50e7f3769641d029dbdfe8c624a3a3bc2c8aa1ba70660'
            '0ee1a5d9b6f03a7b65840f1257fcabbe7637951d1051fb830820f11ac34dba04'
            '993d5f49b51453869b5ff75c1ba4f16dd8fd59beb62bffed33cf4fc7024f6129'
            'e969a3716c0659b3c313f73f29ce3ffbab296ef81734ff9f4410982dc4830c8a'
            '2708ec4d49a06b727e4a06d920b3cc4e68fcff0c10bf269ccba8a60f82312ff0'
            '846cbd821bbea4e6a83ff7d391d4e286508925bd7c0089c42026fd13332dcf01'
            'fb61c9008ba7b82230f925af5e37db806b1af20b772a5091558421e43bd6a572'
            '11cb288dbcf601403ca2dde29a6ac394b12cb4841016788cc5efdd7db1d524f3'
            '008ee7d4781834f7520f0b3459089ca1d97eb6518c670144279562094862dcd9'
            'dd243f01e59854112f48b8a3683d840173aee994ba532496ee2a06b10fada878'
            '25c6e4bdb355f6d116be23d241a62ffe7853a971e461c56a1ab586433743bffe'
            '5df85a9d3fb158eece6118ff9d6493928b4a846f6c0e5c8178dea6b5f878b8d3'
            'e5ba4844b9ced4c6a6cfd75853b6000fe2eabb9b33fffa73cc19e9562475d95c'
            '7a80d417cde600be304f1d7b59840ea62706509183515b5191d703ce59a668a0'
            '38bf51be7d418b67a69366f20aa1fe9b0c22fcf769757a0aefbcd60ac59240b9'
            '1b815ec21a24870acb7a84171ef7b64cff8d718c666c70b986ea8594da3dd95a'
            '33f12a4322495be14a67a28c5b9518d9757dbf39a733e229cf3b9f28b64a6ddf'
            'a6d1aefe768a046f9ba79b8b287d4e4656004556de9f2306af44b901c169ff9f'
            '07474847b08f035f977013a0c7a5e42e07636901251207ba3d21300985d0eff9'
            'f57cda45b8c6e177bbc705fb5db21878d5297c57281c8fba810c6cbb6b095ae8'
            'bf5e3fac34d5ccc83af7c5b60e6d2077c27ded688d3e37efcfbf6386459a3f39'
            '4dffe19fb6787d5b2795066618532bb4951695ac10dbca20c17ccedadff2334b'
            '1b4b1ca27e4265a7868858a9f9822384908b87f567808b7253cc49be7616c036'
            '6dcd97412618233b7d82d4f8b614da267010e2d5af3a736209bd0179c1f5ea35'
            '8f29eab7fcea76fb16fddbc6bc1505373b414f07e1678f231c8dd77fcd7c2dbb'
            'c5cc49fb974401edcfd58b114d0d4f7d2a528522f89d50d393677fab7d586fac'
            '155bdfe2c508b68c4a23a362158cd84d3be3080f3396b1fa060aed117bad89b7'
            'c32de1d149e2f33cdee8a58e226d00cff29a78d783e6360e7715a006e74aeeec'
            'ae990f77aea02c797fb14e2e10f736109888735cee39e39b1bfcec9c9add5c46'
            '14f8217883d80c32c08f38284f42e5978c3d6cf077dcc6065e8d2d954c3640d5'
            'd00ebd2bc119a6f78c29701cfaa9434d51a14d62e0c3be7e271c143fc87bf1ce'
            'a2ea34fa62fb6b83f77843d7284ad96491af8700aaa4f2df5cba6a5058ddc47c'
            '0fe4964412a415c03c09ef320e299a9a361a41c84f317dee795e36b7f5612115'
            '7e2e87dd6d25934dfc66d804531320ca71b53933245c361c8dd6404688b8ef39'
            '6c45c76ff5a0ae373f6ec8c0d81859f345cc31ad55471e702704c434797cca07'
            'b1b699a2f9134d951d704c1b42f6677004c2cede354881b9b96438323ccbcb33'
            'af4389f4028790c393fd9623b13b8ea9587d25918c2b1635743d18de09f6269f'
            '547e37eca8d5a45fce201c550a4aca379b9bb006d7ff83b71971afedb641a3f4'
            '451c0b7cb95accda6f8bca275f4d4a19c39be7160cce08975c6d751d11405255'
            '77fd9e88268d1bb3f42b99af29e87c666e7a1ebaa26fafaad3afa55aab6ea1ce'
            'd36986ce628ebeddc28a56713f1444ec8aa99ffa297d4bc1b3478a92c3e6a8f0'
            '0200e7ad91f8ae46cbd63e1b865f8fc8a58353aa189001b58a38da079bf9f02a'
            'c60d25907f159b1a59475682a55a8afa9f899e93a739c5f721b46c3bd7f63012'
            '2564f7fa81cc2d0e2fa87e7199e62afd3174b9f0339001d730da1a6255a8782a'
            '13ee8d82e28f13d6e29555dd261dd1bacf1db930889eecb594bbb0ee214a9d9f'
            '77fa1716d95bef9ff32e5e554df1a6f74638ebe3e679a8239a5209a7ad6c3551'
            '0bdd8bf97c9c3880d1f002d647450487cf21fc003067469f2b9eda8301bd9f13'
            'c907bbf1efde7e601ec2ff6fb528896c8b2c3b70783dfa309e7d8aa54c45e655'
            'ab9bec8018935ba426f04a96e23b93e0f0d633f26f84a34c6553b883c6dd3c17'
            '5e13da854fb8fdcfef8f760c9bb1cbfb7571856b933c181d41d09f36a7449dfb'
            '5edae7dba33d4369d529f3f965851798e31fd701c792c575de42602cf91eaee0'
            '8c741376968bc5145cf808c715c5dc92f7cf2a7134d3c1eaa9bc66e96d1b3ff0'
            'd387a3a29d621d2e1163cd6d1728861f6344c370950124cfce754f4ff5fe37d8'
            '524eca8be7b4ec0c04dfc09376d18479a9ddf677b006155b3b8c889f1d1c7425'
            '79cfb9142d836ffda39039205e72f52eba8d09a61d6d77382267320a3dc4d984'
            'b8c979f9259ce409ff26af1beddd004fa90420021f5d98f2c069beb362f92160'
            'd58361769c078859d65aba27d79a93fc839871a14f026d73e607facf49373a84'
            'a3ab546aad483b92e5d2757d46654d89b2593097624052a1638cc8f0c2caee41'
            'aba046611289624c02c1d3c81fe8a4ea50a96088ece2bd7fb2be40df882ac795'
            'b40dd990aa6b36924279bb9af0a0e4ce5c8497b275244794b200e5815ac42b48'
            'bebcf5b465fc9e33955cdf4343c479f7b998819667ba3a23e298d38f833d2ead'
            '06d40cc6207dfd452fb12a3429b0bdf85c4fc196d51e66e6197ede9e9e5c9a82'
            '48e005f6558c13ad0f3f73afc81489c0cb384b00589bf2b3cd03569e6bd2a82c'
            '00e8ac31e0597ef4a1928b05b4d199563fcb249b3368d9bb63b8539174eafd5c'
            '358bd38888586ae4498b41ea6bd7417939cc828cce78be80ffef3a32741458bf'
            '11dbe5bce47e3829a7b5d43c12178fc2ff750495f6aa0209c69fc7b6b96f6b8e'
            '64d1c4205a8e249bbb8604efac83b73251fadfc23daee75f40a51d9e2a9ca6a1'
            'c2fa26e5fe2400c6890aea2722ab010265cd7541653092d190e45a6805d9ec13'
            'c4973aa40a75f371d0c85a1e1d9c6fc5184eac38313ed50ea9c7189590a3d416'
            '3555d0e761bbe2ba1035f62960344836b9ad1b2cb55edc07b215d826385c8d5b'
            'be15f048d135f364a7605527b9569ae81cc819cf38c7ed933298b3d4c58b5eef'
            '588239d7468d46d5eae7ac832eb48ba3630fd9da4cc1d4fd35a2f32c28f62f10'
            '70b05f40b253b9fb63081db12e8675873fe45eda3a1a180e77e15ae215a62216'
            '0c0d0296dd9d62ba86203b1b21476ff064f9d74d512bb6ffefe6f74ddf549352'
            'f1f196f5523254940d10938c5c974a3d4128ec777fc1e8fb1399e24014b21fef'
            'dcdc24e7411113728f6485465493cb5ee4c82981823c83edebe3e43257d8bf1a'
            'a1e7c731478f11da9f6f9f3c6b4f18787a04bd62c1636cdaa60c765b907cbc46'
            '61cc16ef2218aee4e58b4bd8bba3dea83bd362c5fccbe368d04b325bf875cf9e'
            '61ee5ee3e418d4a5098e94c22f646555f8b69f3cd1042b7e50fe0b9d28336c31'
            'f2d1fc0ca15e814210306ce2b1777c91c64444f79ea1431e4663eb5476c713b1'
            '9a68ef76d1ba8b94238f7d724eb57ba9c94984e8b440f6068811cb8eb9853000'
            '8d5f997e93cca5083d7d7196cd8f1524097ae6c6471bd373717c87dd1a5d4f2e'
            '77e8558ae06366ee01252b37c756b42a77a013b85ccad1baa0ce69f0d7fa1831'
            '5c35f335847368570b196fc470de14bfa10a9a63c0b27facedbf7e9ab3aef436'
            'a2790b948e050421d209b5802bb388664b75ae2d5c69175e0c84ab01b2b2a0c4'
            '379ed1579d3f4cf9d149eb3906491505898f846f0e9476bd7562a07981baecf6'
            '5cb211b260f5a781e28ab841618423e0662b48742fec2c1a2156cbdc9a7c5676'
            '4c546bbf624f6416c6c094965a00db675beb014500b55cf96fba8d1f4c03adbb'
            '9c8eed4ed4947dbf6f6518f731e18a00cfe26d031f429222d5ae037814c4034e'
            'b5ce9d67f7df55aff43f3bb3bb2d8bf8fa7ea15c1c40f94c1a331e3082cdcd88'
            'dfb0e10364b058869bcf832b01f586645f2c3c0fc647049f76c3c14561b2000e')