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

_pkgbase=iceweasel
pkgbase=${_pkgbase}-l10n
epoch=1
pkgver=65.0.1
pkgrel=1
pkgdesc="Language pack for Iceweasel."
arch=('any')
url="https://wiki.parabola.nu/iceweasel"
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-CA  "English (Canadian)"'
  '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"'
  'ia     "Interlingua"'
  '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"'
  'my     "Burmese"'
  'nb-NO  "Norwegian (Bokmål)"'
  'ne-NP  "Nepali (Nepal)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  'oc     "Occitan"'
  '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/firefox/releases/$pkgver/linux-x86_64/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=(firefox-i18n-${1,,})
  conflicts=(firefox-i18n-${1,,})

  unzip $pkgbase-$pkgver-$1.xpi -d $1
  rm -v $pkgbase-$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 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
  rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}

  cd $1
  zip -r "$srcdir"/$pkgbase-$pkgver-$1.xpi .
  cd ..
  rm -rv $1

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

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '4882c755c4ad198261e32ee3a7ff10cba700c21bbac5b1a2876fde6e8d38345c'
            '53e0568f8d509a168d523c1b3ef451cdf6e5a905cced33c4442117073a606a29'
            '0375040ca1bbcde7f33f4aba7cdc80b88a2b2c257c8f581891ed4e737c7fb185'
            'b0e5c6c25e6ffcd6a60bebc93547b9ec7d4649f163ceed99548a831174d7f82f'
            '4900b4db3de66110b408908d08fe714dc5f8b06d1da2c1d60d1fb2470a8bc996'
            'c96755886065388dea39dd7227bcb5913baedaad1e95c1ce1b349da03f70fadf'
            '3d1b73b99b2d14e10ab70529df4ddfceac51335e2d9125714486dd6acc2f8053'
            'f470c6db76be0c234aefe5cc5c586bb5d8c8fed55301202960986e02e97f7c23'
            'ab6e64fb8cae6f7ca1deeb6548c071e584eb321049e3befc1b25db2372726f7f'
            '8e4b5eb8cb0deff740b92527a087d395f4a7fab7161924be746c267056fde96f'
            '7b08cef9fda68022d3466929906c10a53f2bacde4518ef7ea247a526e537ad5c'
            '2642ace02e559a1318b280955bd3e5318ed85a155c32a0710e8f33dcd7ef4d60'
            'b3bff09f8e10f1c4271a8caa67bbb0703dac07277162375156d60bccb9ff1298'
            'c298b2adbf585741d638633222ad7ec3c620fbfe7b0f3cb7739a1b1ed8bef453'
            'e4b71afab204091381c09aebe2cc0c16d1cc6b9d38933c14ccff80546812f24a'
            'b18e9b8e8909f6979fe09615d59fd7a9277364b535b1f0b7e70974244b6e8d05'
            '6fc4d476dea6a8405b1c184ab5e47453d55772c924a1e1482a586b8d505ac616'
            'ddd2013b41f979e4607455c25787ec813f8398a0eb091a3934bbf20f02bf277d'
            'd5fa265a898a1bf90a6ba87057fe2d0d8286ee080646c9b51bb3b9540334fb10'
            '5aaf8729b9000bac421aa4e4eb4fee82edd9e0255e60efbbb67ebaa6831bdd45'
            '1558148b7109e104e6e224bf8fa4d57f71d9b8d3b78048214692d785081cf86c'
            '8dc897ebe0659719b028b11dd1cf836524d91eff256549638a1a41c1cce782f6'
            '0bdec3e542f2f2b51587507441ff64063603dec2d579cf6a96466e4a69734cc2'
            'ae45e96f25f5e96d03984a2c8c5a3244da1bb448d952b24e1197cc7ea2aece71'
            'a416fc9fa89df86e93ac3f324a185e090d3f1396aa2cc7b13fc7d6fb6ccf1919'
            '82ada4666228d5e7e79e4f40c3c08c8abfde2308a93866344ea4b0c592a5ab4b'
            '39c3bdfd19db8cb41b7f075c61be9ce1847e649f251df0df559bcd34d5bb9eee'
            '6fbfbf0b637fbadc6ae6a12098f56340dfd642d3bf471c1779096a1bd8a662c4'
            '17356aabf310d802ca2749bc7dde31432cbae10b25ca6087107471477e7d72c1'
            '986472da6e7d20297a00ed70654cb0d42eb744de75a2febf584b34b1b2561294'
            '6ba8279a580f7c31a1475d0644e15dc2bb4a8086267483a217f3db4c0726163c'
            '1ef736e5826de9dd441f74ed6737e6e77a52e68c6b18979253695b71f2434bca'
            'c30601b1f429a13e311ad643c5281d19d29a7e7058d87db803cc55288853b766'
            '6bde4fc6b5031c13584b3e94e1dc0a9bee877c116176784d9757ac8e3d869392'
            '90c35ae5a4ed859de5a3ad1f4f407356ab666c5ac111951e89fd4e11ffc3e2ae'
            '2f4da92f287908b194a17f8e5e6fec64f9ee00c707aa0b4ffe5d938f4a535366'
            'f85a4bfe80dac0edcc9b31052b06e84976b9f68ef3502d694a095efafb5e2a72'
            '1a9a912344ae7704a8e1fe52ad8cb429c9d54104652997c985ce632aff87c4af'
            'bfdeddcce3cb0fca9ac6572e6a06bc6b64d0c9e2f1e8e0c64986fbd4388b7161'
            '33427142c8ad8095570c4a58963ba005d8ba79590ad79d7c61d6aba635c61228'
            '9e5972bd0ae30a8fd3c001573b35b3fc34f8451813bcef473b913192775f47a4'
            '06f4bc759bfac109c98ed1d9ed4e4d9c405797783b2ba072a681b6e4029f62de'
            '8234ec6ee77d4f23ed5ed6873125546e3f3fd305c1bd8325f8487d4ac0b1e28a'
            'e8ab5dabd1881430dbe9003e91a129ddd0dc79b2660853f9ff73767d0f72b8ca'
            'd0dcd8f2a610b4fec783bad1dbe9d10f3af8a5abf4ff6a2075fc8265d2a1bf59'
            'd298116c7844e11963ce8e912fa69c165106a2312abf7c42aff6eeda75535e5b'
            'cfb8602464eb169dfacb6b75e59200f3720d8b996e02abb281c1d604a0c4425d'
            'e5d643c7a108963474da0a9f8fdd577aee561170b35b5f4ac2a88622e20676a9'
            'a4d6758a6e21b79c4f8a2031bd3b66891277ec863b21e7573eb2f268d1b620fc'
            'f36bf377067b89fbe3615ad4a0be9e017c94aeea197d1515c3d449a452655bf3'
            '8eeaef2fadaaa231cdadc37dfbe15c0353024fd3ad870578b57497617ac0cd76'
            '506ccfbb56b2ebb81c6868778108c7187aaefad279200645d87e04c68641f79b'
            '34102007fd82a196b9eafc97f9c64eb7fa48d8b185f66d33cb4ce1e9d5239778'
            'aae67304cf81f1e2280bf8e470619783ea6deabe4901bbf9c9c82173dfb8d9ad'
            'efcdfccf23f85d77e13ae6a67199431dd7fd0627bf10df535e317e65bc2183da'
            'e3ee6c16a86e5a90b5a4f903ca6056406b92fc39089ca02f713550d05eb53886'
            '738be8424d441a8aea47dd5c550913897ad6b5dd86b033c19d9aa1b02c6e6bb3'
            '8f9005866a1145b1fe3cbcb4901524a2d9b23836a2b658a4b2448e960a285a06'
            '12cb240acddadc5da32caedbeaa963d61ced712e6225d21cff2be43019ab2ad3'
            '4dc7759e4c6b9484e49277f166ce92907294d0ef182d07baca3bc8255d1407cb'
            'fbfc8cb12bd5baeb1f0ab49fab412887d164bdbc8c3b07bf9021e67e48bfa970'
            'd8f1b068718f35cbdae53a6ddb34cb17e7efb532f974f019ae4918eae75d999c'
            'fb2e9556b22f20e5565c5c072f0b9cdcf0e60678f2365c087118292fa0db14e0'
            '13bccceaba758c9d3973d32721443cd073c359faf2efa2883b3f5b958ce21cf4'
            '83735b4edfcccb6625e4e83436010da94de31baaea18ba98127e4c54fde6fdd4'
            'd9fbd33c91fabc9a3af3a848785738722e926b9ed9d606a47ba94fbde301be8c'
            '2c5c71dbed8047f11980ffde599fead54234f9025ffa381de2b006bd9379348c'
            '7142b3b757abdaf1162033f450aa591653af070b140075ca6dcdf96b3877f406'
            '8879dd1c8c7e2e0385137352a9d07a7ce3c1bea912a58bd6db32013072b0b4ff'
            '26df53dc3898d5acc471450978273fd130fc918d1f1bfa55310e8454bfcd920b'
            '28a203a00e6817197c500856e8bf560ea2822d213c0c35b202a1ab8fa9286452'
            'e47d91a6321a41f26732c2803bc9510502bb2d82b0cfee6d3e514a7006c648a2'
            '012da13ab62b6da3b3cbbaa05007a4f55e7ed5f3b8ac92640ce6c55cc1d1376d'
            '755f5f616d95cf8933a50de79fb4b4e298286bc7afb8cb4b124b36fdd18239d2'
            '3f1b460b5aa787b83a792dd9892d507c0696ba19bd698cdb207352db51c03b80'
            'a66cbf9624aead19faff20fc97fff4b35b11f759091591b566151ef639a24c64'
            'b6f5185aa097cca1ff1ab2490843a2ddc873ff67bdc5b988cd07dbde76ad4329'
            '46ed195bf26133de4a4087eb961c90707c10d989b9336c12247f0a8a028f9802'
            'c52be90b021cc16af3a0449640c77fafdce833b2d7c28843df1abc178540a5ca'
            'cba7034301b5979cca882096f78b653c6a590a7e850d87faf19dbc094aadfbce'
            '87c4d3fa98b430ef65f9754763a5b029fd2e8925c0fa05b075f9981bc16af752'
            '3fe1c21e90701780d48e4a94db3dd37b5db873b78fe25284b05b12f4c3da13a9'
            'd1e5d7ec5e1219d65153ae089c8dacc5e373ace5f705522b5985f15d760943be'
            'd5ea42421d46e55fa5468ee6eaf8b2a976bcaaeb5f013786b37b18791f546554'
            'e531db675dc1768764adb380428d02c077ba3875fae7c841c51464808d900b2f'
            'a7cd381e8e2048474c2ea35d50b199b756e0b6a9eaa9b56bae9c339f87da7530'
            '5b444f078647de63ce8f3ffec341647d6493ed38bab84d0309f4cc4b7dc5739c'
            'd5fa947636f865ad16b0c6902fe6f9bdd450a9c888067f2e5f2046693f99605a'
            '828aa513c4f6a147670e360f6665aab1986f1b6ce158525b916f10c5e9d06b76'
            '96879d1aba317232aee1f5f6a273812a4b95ea79a0e06b78954dc7bdcb2e7023'
            '60e75b83c0ffc1302e25870777570319bdfd5bcfcff3a3123572f203fb06c00d'
            '465ff1cd24af4c2e297760b4133e0e0f8a527c90465b9577b7b549553d06ffc8'
            '255b61c6b23d5849530f51e96c341b140a79bf3c66cb05e37214ae4da1dd0fd2'
            '558452c79a98334fadb8a9668e7f5cd1b3ebf802dc43c62f1e044f7d0f2ab88d'
            '7a8e335ca797ef7daae387c021d643daf5ffdef197a749946bb9e0f87e9ac8ea'
            'e78e53d4ef5b5e360e5ef8be038e2e807fb4d3825afc06fd1d8c4dcf1f279be4'
            '84aae51d83dee791573b19440d92160b70b2face6a7a59ff6e193ef01c8df67a'
            'd379fe598a4568844a68e6899934e18e42ee37a34abbd12ff7777f599b6853b9'
            '565213ee9f2d0c73f1fe55503421f25e5db95b4115db9b24e8af7a1fd08440cc')