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.2
pkgrel=4
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'
'57c8f888c5109c1c45784572794a2b74b10bb9f34a5dda285bb58b766903ac1f'
'4d95208aaef969a4c85ce243a22561a3375cf14cf322328bd6a72784c3efc75d'
'a6d38b2bb58273b211c34e158340f74dc67d67e18caf4089d34159942a0dfda4'
'ba974c802b3c4d2042f654f1b8024731fea2e05e48ddcffea006d7392a7116c9'
'd4991f2678fb785b7ce3edf87329c21058930edc83ba7f10771cebc413cf4c82'
'c7c8b11b7b809ae17d2a0945a08bef4dcc8ebb7fa7483e4a79787af5b7279c29'
'5d36b5f1412c826fa19e5e9c71c2e22fcf98853d7e90e2979b3e4d7b802ac52d'
'06172c0b39d6a525fc25a54e17f271bce07b2d3bccef835f3e384a8ab0a7cb84'
'ee03dd568ea3c0bcf62d3e7952591b357e319e2354777532abdcb1f41ea0f084'
'2e782b80abf77135b3a1e77f7360dea0110fbb8be86566f289f7d6fe46751186'
'b002a5d6c595bed5c85ceea861e1757af2863bf396f89a28e3cf7ad64e45bdbf'
'd4ccbeb450813a9ca1eb7c94a2984b11662e78f4654900eaa038a9ad928f257a'
'7bf4aa4d3678814991d4b7b04e9bc6121dd8dd42777a5ac11adbc0c4f6b91c60'
'bcd0a38a100349318f320527e17e6b8a4cb8d33ea9d0e50cec0d82b701c62b01'
'46466c4c12b3111029249ce16856680c9e55635a0c4de685bada0061e23c70e7'
'9a5095ee5a004ab7c43c019020bb1cfdd95ce6e654ddd244e8a124bb93a77bcf'
'267b77dd8aace8dfd14f88a6a694a21ea9f9b8234fe9557a579bc9cbd2ce8843'
'93dce7fab3d847f26ea550de351f26d31ff1df94add3f21defc41a4af69064b5'
'2ce9e06d758109e3ceba6a0d2ff2fb574e5c19ceeacd81fac9ace7534b6cfee3'
'0b6b006908114bda2b977eb664802c1bd552b989c148a8e166d5555c057989d2'
'1fb3092304c2727c2c5f52203a8e6f8bf66095aa9f143c95eb4832a30901ef7e'
'2612776ad4b67c0f38cdbdfa2acc47af9dfd9785a59a80115e05379eeaaecd89'
'2ba80d3b42adbbc0f9c5bd632bd52ed46bea5d111f2ce623570aabc8ba2e82b0'
'8513ca05f2779ea8e04acbf46ccfce5ea0a1c08c3584086571b58ffebe4b6154'
'3f2f136754229a06d210086fdd827a9c8da9b84ef104b8856a61c0cccd02fbe1'
'c1e51e508ab65e9b95fc2506a23f2034bf32df5b9741e2968d01c70df02f1caa'
'b770da50dd5183ab9f488899554c2b6ea0bd4021d108f19dcb9f992495f26754'
'e568bf71290e9cee1fdca52dcca979af4b5abc7452bd1ca256cade23cbe2186a'
'674dda4378cf4ac3c58bff4397d919a3db79173828d380b37a5a2f43f5a2ddfd'
'3ab5f7e84264f64577e32a0c9e72cf8cce16563ba5d8d5f5c9486ac032351e53'
'094136aeb226e17f1e27e3a07f51a724353626f9168e2067c981a6a368dc257e'
'9a0b178833dfb5c4b3ef9530626fabe128abd9fb7a64f75c8c8076c1dbc94628'
'bff8d55342c37091fd89f10fb56c4f951d024375bac98770428ad216d275cd07'
'a7c1c5b13fc1d72356645c4103cce8b89eb3322a44a5a1d74dfd8f03e9848af2'
'9bc1eaa66f61dcb59b29ba71914ede3511756c41a3fba1ad75a225b763c76274'
'0a6d92ddc38f354cacce92191cf122cb7bfb8edbf05808245da16ae4bfa01582'
'be2268534a473bdf875d40502f5a6be18c00134e9fe23580173bebb666d21580'
'71fc2f512276903f0355c49249d82e985e47336b9e2963b2c19b5543142cab92'
'8733575b95476c5b508b2b548b84c7f9e79e90d67b439d9815fb312672dd6ed0'
'539bcd0893c4f264b99b519ed1f1c958579a419e1d23c276924dc71bfdf1e34f'
'fff73d3aaa21a7c76ac6ca196a2b8102b626db4d53853a15919604647a54811c'
'7179ee33a18d6b6994e71adaf41acefb60c823e0a7d8d985f83f5295a9c0ba81'
'ff01c58746b194c806c3a9925647d633e29eb6e0425837d142e5da1240fe1334'
'306460fe5618f498e232e891cc3c6e7988b119406de98fe924f346ec82a463f0'
'5776c3178fb0392b202bbc693018540a62ca2c7b25f2aa16d6adaa502c327d65'
'1ba34edfce543fd27a94e34df8739fb37d783c5e66352cfd0c22e6ef18154af2'
'2463d83abe03f48260ea6c8f195ff4d2800a2411f191c7abc5a0e97a2254c278'
'e8132940f19bf8b2853a7eb2036b59b249ff21928a6d43ba0226d0bc1852c76a'
'f06adfd40f8cb738dd8e71ba3678bed85eb5eda92f4715a15749100717d2a7bb'
'3e75bafcc69a5a45366e9fe28a161865531112f4e5104b5e02f40ef0e5210123'
'31ceb9a3f38afb73585a0e35c6eed30b35f748cae435e7e7f5c48a7f69a2c88a'
'f1965ae5780274065f72b2148d6297c71f91af85fea2204d2955a3187054043e'
'63b1fd9875d4a54445026aaef9355ea0e1f5079a4b1f66ce2d13ae341054c0a5'
'9a17f6f47ab582ebde8784279feb38f7f3b5b9156ea9e0535cafeb5344869fe5'
'ba5cbc5530c53132bcdac29a1f4b0bac383984618e1a38e68ec496725abe2fdf'
'2f34266559cd4fb7b9f0330c440ed41d690c715e00cf3c6e5dacba5225261e78'
'57319636af883e959011da403fa6ef6a6de722fcd45997fc5cf85e8f174b4159'
'cc191030ef2cfc5ea4f485721fcbcf3c058ba3be5b48eb7a36c1892c7492c7a6'
'99bb8fb32784a0ae4e61be10e16c2b605ab24778170653b9b259c1f84e6e4147'
'487a37504caf77b332647a349ed48e8469880e1458d4d13bf18cb7814de1678d'
'967adfc3e5dd7671f359acce4266c9221fe621eb5c967afff76eaf0d2fe2aa46'
'20923f6d8410b1348943831241c3b861824cd3f2a7ecb39cc7dde7757ea1eb4c'
'518a448cf4933ffbda3e530acd82859980f1a2c35fd4cc49bb0467e9391d8a69'
'62d1b4f77f7a2c3178c483be67f6dbdab91550862bdeea25978bb057c09b9c68'
'c53f8bc9bf15c33c1d9bff266b8ee6f2f92d7b95411a332bddf7318005146742'
'94434f919a61ebd7cff12a8d32ac9b36ac0b62edaa24c398d9da8793c85603b4'
'f7944456b7ad821d6a2e91805eed2e24f796bff7364d53689d803db606e539b7'
'3f4a1ca22105d616db0b07b7aa46e40e9ff705ddb3f594f123d2813d3a870f70'
'd38d9bc9c4fb0cfc1a6bc4960a338dccc32620ec09e022697e61cf6607b86871'
'582a7e229b1bdf7423be141f9a278668cd25b37459ec7bbb8b0b721758bd4922'
'89a8ff9dcfe46c320314df02000b7d66f721a93886cedd98ffdb2e80f8c5185f'
'508575d58c837b3b94b5a05f0e5963f4bbcc34ba466f9c14b842e954d39cba77'
'3dc06fb7cd7a5f3bbe141b68b4ee3034b81e93eb509c95b1f2a0e4aff5b5a2ea'
'7b40f8850aedaa33a9221e32747629de84074f807f93630664807e3214393975'
'b56427d635748fc7746842bceade41fa81c16843afb0d87ef0bcac9da3d9d6ba'
'b733edc4c668debf7d0eda9ddcc0c1bbd9c5d31c7ea90e94108fd39c62a2a520'
'96ccd04fb1df2ecd12ab6cd9ebb019f1c2a7d94e100b34112995adaff2f9227c'
'b6a994768aaef58c97a0aade9f463044300c07dca10c58c2be11c1fade665719'
'ac56d8090a8e039244e5707048201429562eab3684f3871a1af9247be85f9d96'
'2d9761c95ce185a175f5112fbfb24a3d53232a2f11c9f37384a93cd515f2b78f'
'056052c33435c69d1856116b296454638552229ba7b89ae7917be2d0af65a256'
'05d606dcf0020efde60c28ebd1b49ce55626005c6b94cb9af148b9370254ff43'
'13ca2bdd96e585d3386e5b825a1d0078c63874a67a9ff0e2c911000afd798a0b'
'5a935b8017503ceb33ee83ce576d94b58e177fa70026edd20ce479cd0d7938ca'
'84dddef4741566dff676d55737be4c59c1be1d28c8831de6bf2f3c00259425ae'
'22b099ef75d5c431fbe3efea9ff1051e040303120f0a6abb10339db873210548'
'ee75859e48a0c5ceb62ce9e46ac72035b280f4d743c9752e874b6df9d1cb956e'
'eac88ddcd6286476e3d144e3a662976d08206b576a8277cfb7fa60a8e2344abd'
'0bb35467af32fac2bbf056eca1a9adac33c77e4021baa562072215ea218621a0'
'4cc0edbbc43b525751436f7a1adac903f669e16ae058081a5f454c0f653fd872'
'c6da1d554094691262fb78bc9b2c256b00fb2f4d8b6bb911533632db9c8172ec'
'291335f845d203babd89a207cf7c3ac7991bb74364fbc9b08403b971027a59c4')
|