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.4
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'
'0db61e82a56775653e8863cf46e92d7791ad855b789c326ad58dfbbf996a3880'
'018e8ca7b2ac1ca55f53bded94cb979d0872986ee494864330b97457d9efd7e0'
'2a536acaa8efa972b4a74bd8a786607eee939f97ea6c5aa5773f7132f42638fa'
'cba589fa5e88446edf0d051e80c02f1a06224ad0b8d66a2de81cde615b78f01d'
'758d4830417c3fff4cef797c12afac34d915e8940061e907ac68083f1c46c592'
'fb8b1c0c67bacf1cadafb43ffc639038a32fc5318be0dd691f8929ee2bd2b01e'
'17f7ac16870d6ce48ca02d45ba9a35bc42b58e85f2e86767f211fb956d2a83c6'
'b55f05cbb024c897a1f648cbc111a1802ad60b83531ebe3f9f5453606bed471c'
'b715180f7c48239b8d3404f1cfc102c0142e22f2aa7ac19877177e7a7f08d46a'
'da35dcf4bad2ec7484a4c9f0ddcb1424190e564e69801fbf2bbd94ee1d0c2a56'
'9093099dbb01f46e6b1aac94f401d1417985233dba072cfdbefecf7031756e81'
'198aead2f677fe5185edfc2abf3c83735e5b7f1cd19a2aaf7362b57003974eb4'
'6ba5d0950dc28aa070f32b2d613ce0913420ce2022004b1c189f253b2b17847a'
'6ef787d51d1bcd2426d3426ea57d0cdab244fc49b93f19226291cb6b7c06b30e'
'099d5847c14fdf22dc81c1bb581d136d292b01714d99de2cdadeac3c2988e561'
'ec2f172874be86e1c3950998e26cc77535ca8121db63c96d34068c58c3179d99'
'71f431a351e93c74c10f569601bb32ec990ea2a16b6bfb5f724966d0d7520bc6'
'5a4a0a5aa93c19c4f5fb5aab3f83765ddfd2f993d1cb8278de1366f5626fc925'
'4370210b943ebbf8b814a6e04be9c7e99416c2ff4c54c31748f781f44309e36c'
'5170e4e0e160405dd3ed5515e35fe36dae70aec8f48102345619e5c75bd1488a'
'9d2e01e55e1fd7d39b8a0a923088334dc00dca0547fd5985aaeed6319cce5095'
'ae4e8350e6a36cdeb8bfb31341bef5bba1eb48b6915b99a34a6cde2fd838651e'
'3afb8de6b06406aa92c2b7c353286823c06cdb45218af798278c04ab67d85032'
'92c5c01f2b5513d49aca2c453721026ac006cda7b1ed260083b8f101197dd9ea'
'b71b76d3a61b243bcdb71e02ed3e1752adf35301d45a441c21faa770799ce196'
'0c9ffc8db2fba0359bf69b6bf82b3be15b939dc834bb021cfaef88646abc9e3e'
'3f3af7c94265797b7947a6ca5b3868eab036dc2562777ff9a9c65cfcda9a5648'
'04edd799bfeb4a7433a80320abafc7d0c1c7c24982e1d53976638e5f2ac243f9'
'7bfee1ac67c2a50fca910ecd21aa54592774aa49ce11f58ddc64de1ccbdcc5c6'
'37ac8824f08bfd6d931bb6d325226a970adcf4a8b3fb9ad651ef6d965f8784bd'
'7b6df791d0390b4cdbe92811c5bd5e374958ad242a3bbc7a49f1cbf963aa5b36'
'7be55f40579f970e2682472fbb66e8f182c14491f67127991684e45968fbf3ed'
'f3321f6ecaad8d0171741fe91420492d09515b25cc9f7be764dc258b06dc7db7'
'71f29805ebe1f46242d4e01846880f42f310a42fbba22872014d8d45ceee29ea'
'a959c6f196e6a26d0941a336cb6b1183a8e5af789380f249f7a2e75510bc2610'
'f4e9632af6d1850a8079b12e2652de3af69fdcc2c9db06f79c94b3ef5d1de0c2'
'665ce3c813e280e821a1311c8ad3a7744583fbed821bb23240354163bed13ff1'
'20388643eececf3e1687b7deec855ff5ae094bf852c0d22c9bb805f344a7404b'
'dc3bba2acaa91c3cbb9a137d4ba76ea321447f1a935de45c81e9a7ac9310e2c6'
'6138f2080bab839e83a709307f443b765daa8654a2bd40a8b93c1db9e94793bf'
'651fbcff0b9b94071695bcfc2517ef2a151235ebd609fe55cf7433771103e6de'
'004f5c836c007157851e70e27b9afe690b83ab6cc3358d5a406961fc504b62e7'
'2355ad6a0d3ed332068e619d2f159111b80327989c6a4ca7cb4eff87ff77f753'
'aa836c086e743f90807db62eb66c911a8ed2d48e52b99b649c446832d399cd96'
'49ec24fff47910b9249037f72e14252284c51cd0e171259128ea7365bbe68844'
'606bfacd3bc3ffceb3b431378f66c49db6b6a37c5eedc84128dd00b15a8fb3d2'
'de5d81269f2293eedb3146150e49a2b48a5729d1a09f092be4c66bf4712fe267'
'5c3af12deb175399c67878856850eb7a1794bb6836dd1f3b072489dd8b3a6e1d'
'7fcbefb0ef86f4416097042a20a9ff5ebb08cab09e8efeea1d446fc436bbeee8'
'6dae24cb5e0d562f6521d5ceea3f79beca5ad4f7800a6883cb32429ee02e4bec'
'8e861ab62866d82798722c433accbd94a7a20ca7701fa05ccc2458c7d2026f8e'
'162acea7cd9df51ff0481d90dc239682f8cf834ec37f51a714b9e38d4ffa338e'
'8c7f6ece7b746c37a407bbbb22c79961a9e0762e7aabc8f945390e1bec515ebc'
'f003d5f0db4c94c793b0327f3ca5040d9a420cbcd03d6c717558c936c6aaa4a3'
'438f20f6ff1f24066c91679dcbb570ed814ddd3090cbba06e1d975d542916931'
'21e92623823811b62852a14a61985151d2a4dfa1c2d97592b63338eb63b354c2'
'9e26a3960988d1c79a60dfe1cbd9221f754f3e9cc54984f28660ea729012cc4b'
'6bb35ffb667d942c548086c82717eb29b6a9c18933346d0f47278e44fe68ef76'
'63b12574a6bbb97619f1aa0e0d585dbd57df3a2582989eaacd7520c1cbd13adc'
'a15d7e0641a84b914257545ae422b24476bcc536378fe15626e750ebdbddfa95'
'e990c82a2b92081fc064813db8d73da71ed0f9bc611a79e767a0d3a88928e9c0'
'8f15d51c621e877314c68e4f11559b57556a22ea74e18b40bdbad2c906b2d110'
'ac1b73452a2818a80958de7122e9f653bc62de3408ac3207f60cf1ad6f033063'
'fdc5bbf4e8b4ce6bb2039c57bd28a2737765a97995794a338e123e31e64d763d'
'64dbc7ccca7adaceb6b960ddad0d03b3b5cd220c691c79dceef5f89c0f3e6ba4'
'9dc539ef7641fb881f66d7b98b6bc0a76972d8e8734499ba6309d904436dc684'
'efe347ea92a21c9e1f9acd34eb0e05f19ccafd62b10a21ffa09febcc7584e8ef'
'0d8ab0fdda99f63ab21b482b7351409715a2cd2f41cddf6bbe5b1b272da74bcd'
'223d3ef52c3820258b49df7f42d9d861ad56f756860778b0ffd01cb13c453f1b'
'0e72f2fcaacc58de0031c4f4410e5b5f2cc0eabe931a26f23e74407b63b27aaa'
'870ee04109bceda64f6097eb64d57dae741cae1b3f327515a6ecac6c87253974'
'0d91f5bdc4dfaa9fb6daa20f771148e38f2d9e4399bf30fe244030e276c9ac89'
'4b2d43c3b949a37cccf71b71b45080792e2885d834a4e276fa7df5cf6a74dcc6'
'2ef8b8664011c26508cb09b136c45d9c9a1900a2300e097a5f230ca814a79780'
'37e0a1fff509be32a6cc359eed53f56e06f207c8c2e85d4e1e6faede3bb3b4ac'
'9c5669d219007a5a09fc0b9f813edb63f152a85329698e534a18799dbc8e9b68'
'4a392e7dfa9cc7e28f3e9a0d4ce5de24f6531d12bca17254d86043c8172acc1a'
'd124a90746df53a94b6dfd0f74b7a0e365ce8a36d8b5ff6b5022d557be801651'
'beabdded23f975d25273b4179933d8bfe618cc49de46a356bbd8a8d8a0b632dc'
'd0c419d071c43f139c0467f643a7619a333bfc28733b2c5c4df3bba1e1aa94bc'
'f0b8b5450dcd145148ae5fa4f4c446a623014ddc0f8c8a69b7990db667d5c32d'
'2f08696a618b027f3b5b866abe42bba53c1f37d89b0b2948aa4c3f893795f537'
'd1418c1a1de6b9958917d3ae288eb794a463139c947d2af7d8f758f37b8865ff'
'452278c7f1e5ee9f23d126de8f3659750ad5a8f5c87235fc089ffacf19348e53'
'642a0c33076fa02ddb624c5aaaa7f4892151e902585d6b6f72460db5923f1548'
'8e2fd00f5eb274f8dd8fb51101ddeccce2c755d85cb4054d682ae2c5981a48c9'
'f50f501e4eecd612b4946d9db620009012b3ccef5bc7ba87b3bf47c92204068b'
'5706cc11ad164057b7122829d15d3fbed85a76fab1f6ac398191711084663e95'
'163417dd79a964730dfd1e5e673679d70d0537089934a8ef4c72ef305becb830'
'4782235ccb58b4910eb41d9e40e09e596cda1028cf250006d6baca96abc2231e'
'a07005793b45fa437374f28007d2e2cd38a87c3c143932f33c9e015450fa7b2d'
'5579932fc28c8032a48a5a0bf79dc0c53e73455037e8e1263f7bb0601522b18a'
'b311b001e941a9e4065037b77b846132482ad711de4f214a4bfe8e8619a77d49'
'eb826002503363424f93a516623382b887b1a5fcee96ef0e610d9aed53c744cf'
'e24b8dd7a5953bbbf0dcbadbd370d2153fb9050da02acd0709a6ea7b629dbd87')
|