blob: 0abe99ae97b1542cfdeb8a2eb94188fcbf6fd426 (
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
|
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
_pkgbase=icecat
pkgbase=$_pkgbase-l10n
_pkgver=38.6.0
pkgver=38.6.0_gnu1
pkgrel=2
pkgdesc="Language pack for GNU IceCat."
arch=('any')
url="http://www.gnu.org/software/gnuzilla/"
license=('MPL' 'GPL')
depends=("$_pkgbase=$pkgver")
makedepends=('unzip' 'zip')
_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"'
'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"'
'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"'
'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=('region.properties')
_url=http://ftp.gnu.org/gnu/gnuzilla/$_pkgver/langpacks
#_url=http://jenkins.trisquel.info/$_pkgbase/binaries/langpacks
#source=('brand.dtd' 'brand.properties' 'browserconfig.properties' 'region.properties')
#_url=http://download.cdn.mozilla.net/pub/firefox/releases/${_pkgver}esr/linux-i686/xpi
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=$pkgbase-${_locale,,}
pkgname+=($_pkgname)
source+=("$_url/$_pkgbase-$_pkgver.$_locale.langpack.xpi")
# source+=("$_pkgbase-$_pkgver.$_locale.langpack.xpi::$_url/$_locale.xpi")
eval "package_$_pkgname() {
_package $_lang
}"
done
# Don't extract anything
noextract=(${source[@]%%::*})
_package() {
pkgdesc="$2 language pack for GNU IceCat."
replaces=(icecat-i18n-${1,,})
conflicts=(icecat-i18n-${1,,})
unzip icecat-$_pkgver.$1.langpack.xpi -d $1
rm -v icecat-$_pkgver.$1.langpack.xpi
# 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/browserconfig.properties $1/browser/chrome/$1/locale/branding/
# mv $1/browser/defaults/preferences/{firefox,icecat}-l10n.js
# sed -i '\|firefox-l10n|d' $1/browser/defaults/preferences/icecat-l10n.js
install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
# sed -i 's|Firefox|IceCat|
# ' $1/browser/chrome/$1/locale/browser/devtools/sourceeditor.properties \
# $1/browser/chrome/$1/locale/browser/devtools/toolbox.dtd \
# $1/browser/chrome/$1/locale/browser/devtools/webide.dtd \
# $1/browser/chrome/$1/locale/browser/devtools/webide.properties
rm -rv $1/{browser/{chrome/.mkdir.done,searchplugins},chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}}
# sed -i -e 's/firefox/icecat/' $1/install.rdf
cd $1
zip -r langpack-$1@icecat.mozilla.org.xpi .
mv -v langpack-$1@icecat.mozilla.org.xpi $srcdir
cd ..
rm -rv $1
install -vDm644 langpack-$1@icecat.mozilla.org.xpi \
"$pkgdir/usr/lib/icecat/browser/extensions/langpack-$1@icecat.mozilla.org.xpi"
}
sha256sums=('fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
'b71ec8c6abce80dd2ab0411242900f8728ebcb6b5beae928e124c9e5601585e4'
'536d80b15e6b88b31ff8c2df4bb3cd45d98bd6d5e5155d9767aebc1fa9b974df'
'374865b97f3ef563884c1d883e8f25da5efb6ab4dd7a50bcf99c0730ff3ae687'
'fe40cbaad579e35a14b87a1458c96c64a5e0490d1469e3cbde1975596741abfc'
'5e3281f0508292257efe413a14d0396e3003ea054ebe1339f20b7417762bf9be'
'80156a3e9ac68517975214e629f1b440c7c69ba4c60c4c763b673a8f237243a9'
'910b4266bf2d78b6199bbd9de8cb42662c70d5d97056c93aeab2218602a23845'
'316b999436e490a1bf42b88ef15cb5ba29688a8ae6eccd06ee8e7f22e9fe62d7'
'b1fecb460f637e0098db61521e858d8b9a0ee2ec2fe6f0ed010285b2f55d939e'
'2394d490bbeba6aa7d0d9af01c41c25d67f03b5d08b4efb06da50dd77b93babc'
'524596d2f187aba83c6ea9900fb75c59108fc3fd2302842f75a6c4d408799bae'
'032c1923017281798a7abba6e382bf20b0a0adbf6b950499b3dc385a682d6e99'
'e9118fb5d85796ebc11d44483ae88b5a2a46e8c5ac627cef72c8bbee7cf19889'
'db10ef098776b438c16cba240f81768f13f0910c8e3174e5dde85f23d5f4c090'
'326948308ebdd41d2814eefabbb8cc8f6533b43bbce7fc503ff6c06d8d20d674'
'0fbc6bb2cf87f411eb64decc02810bee86589b01f2d7632d5bc262bc985941b4'
'61bcbf6bbdda863aeabc469d5a0c8672ba998d5a81904600e5c75c2aa7230a31'
'bf175a452220d76fd250b39a9120af02661b9931c4937a0019e3107aed79f80f'
'7722aa719678de77c9b57f711f24365c1ff77cf76d25044415b04424143ab928'
'cf86504cd1a79708541c894bde33a5f31d2c32f06a12951150bd4812fc8bc84b'
'1295a89d72c933706a5d74c8e931cf2f1d29d874acfddb9f1b501e3b2ef6bace'
'a719f6123fa94ff02c1ec30edc17a54c25abc3f4d8de6ca259af23e7de22625d'
'a1d98d80b8fda61333dc67ec4c6dc0353a75c1918d067b3b037dfd83fe1f02f3'
'5fdfdd4b0dfffa2947fe069ade707e7b2cf0280e6b7d3750c997186eb6100f3b'
'f6d8638466ab431bda27de4a3fc60f96091806160f7ac9319ac0413dc50d137b'
'eba73582a3daeca139c87203ab84d2e2a77975447191e31820c62d8e990d1f58'
'a41f1f2831d080cda0cc5c142c0b8d61ab7a86b787ac43d978ea934a92d30275'
'b029a782212ea164cea2085cbe49613b9ad179ca53fc270f9d4e1976226b091f'
'cd13ef4174a1121b8e8e7053cd9c4f1336a2380e44329066eab608b13e1c941a'
'fd97d079ad19012ef6691b8460a87c863a58d0eb28fda7eb00134909b6bff118'
'6f8f011dd66c0401f16b0783b8a6b5f97d82a49a11f77b16f19bb29f78820f24'
'193af281401cc694994b36a0c6149e91f319871b8c37c7029bd5577bd45f7b66'
'3d78ab2cf103d88adb1c02d14bd0e7b6882064398371a9626142e5710d9b6413'
'9e0e545cd7290af43cfcd2e7a7bed7b50bd98420b78c9b14bf148f2148f64496'
'd4d9a473c388daa2ab6b777f3581ee46838860eb36f1550da34067cd5fc3ce53'
'4aa6a9b7080666ad7a57a5b9c112ca1d4d5986df85dc1d392dc5a2992b292e98'
'0b97bea8c97da8d86c488f53e26691627acab5741baa9d3fd16f93f4b621a67b'
'53363b89327f01e1efa90f96f385cbfdad009193c169ca25c9b67e53cf8605e5'
'b293bf579e38e565fec991b70ba87678e1b0e19b368f92ef62a736ac99299779'
'ebcb8d29e5950890557307c2ab550793949db8380127b8bbb1cb8f68159fc4b2'
'e75a695b5b9f31f511f7d9dbbc99efe90472c493b60d6742c60f0f9e7a12251d'
'3f5834f33b76c9dbe2f717af2ecbd62fe789bdb656628f5f2251f3e12ace0b04'
'5091666926a5ba49960a367c04f141ae458a9810dd93f0684a663d48bbc453be'
'8b461897c7b764d36a346b72e523d9a486e02bcd973e69165cc8dfec09f931eb'
'29b4b756ad95f336fb36b9451c9326d4692452f82950d46fa6249cf41aff2468'
'3744db76f96f4ecd6bcd5abe4a61712cf2c1f620c785a94074a1dad24f0f3dc6'
'd19b42c15e8edb3e53d9ef70b35cdaebef690b2b2719b8021a3ce2729f3d251a'
'801eb3b77c20d8f47ea0b3a84aa3601a77a8df119560fd34eff796bdbec164c0'
'f69983390fb2fdd70af8f5c4bcf1669151f41b4cde20d0ed75a4f0e1a04b8022'
'0231693231531fb947c86be92a913884c964a2c6717d895c937a0465efe1ed68'
'88cac2120c34d9835a4f980a078d335a1bcc2a0d03be0c72ee40ca7073f99075'
'fed743ef4da0c3591a594bf4d20ba42dad630cd24b02ed6baff317736f10ae5f'
'32c356b1ad7f176bb016b7300446a965fb4a949a167aa90321b6cd5b6491de19'
'581606278935f226e208964884134e41f491ff2248e04f6788ff3de1d08e8fed'
'072379a881fdae4316860949e0bea96d442693a043b26f53f1818c5988bf4e09'
'14e44f5d596c765e49e48285d5ea772dd17049f22f2553b8d804babe11ba398d'
'c29e9ae73d3bd52aef7c708d2e54700a75b787ef5ac7f4183b12b7abfb90d29a'
'13b458944578307dfa42c3e23f3a7e4d8c285c5b3ca75b08c27a0b6d18cecc44'
'118e771d8ffa9556c50643d8c2ad07fce4cad61cbc44a0d0dbfa3ef9be00053e'
'd2e9a65da22fa2a4ed286aacc68a61aa35756180f0746383038331afd41d65a4'
'b09ffd624e20baef7ed22b5e7f11bea24ef51baf27e13c7d5c8de8cdd45ad2f4'
'a231ba816e4dc33182eb659c3752d863a6440c7e7a3adecb2d6fd5b86dcbfef0'
'6b1b9c44e6885821f646b50e46a87d8949466d1a6d7f589cfe7c8a2441b5dd7c'
'9f0cd95d5343985e463c190dac9bf021df1cf0989c1111ade642687acdbe725e'
'0818cdfbeee453e7a8517ff2ff822e60def5e7564759a5ce75a2cc6b1d49f85e'
'c5737af79fc75d109801705e52ac4893a65c8a74ff79250e073ad04169bcd4cb'
'e21e6e9d994686a1129cf80a00fe84ba8fcbd7560e02d806bc674c526ccfae13'
'352a3df9f6d0290960c141f5d1e3fbea64006e4877d73257eb74238f3ea0bd9e'
'5e4ce45de779b6d1a87b0ae1281a7ba0745dfd2fe5c0a242516026a2967fa638'
'3ff928f6a8c9db3fa9924f495d0c9f7533c92acfee51ecd1be6f0003390b9811'
'b1c19e0befd3bb70d6dcf68de3e8695028f6b68c4fe1a64d5d3d0d07d80392b8'
'34c91cd3c24d5df5473841664efb708f140746503f8718865e7a2eb032fb33af'
'8ae649b1e155e4b0b0277bc5d4ff2cc8432a2639cf3672fbc784aa17b6aae1dd'
'3d55f3971e972682123ee5c6c68241364e1bee404dd68c62aea8da0b7ac0a8ce'
'b1638af297d037aefaf187b9624c91caf2dbff182a778cc67d436e7a9191731e'
'99ce44fef7bf29c2e2702945ae0e285b334ab4d75f3b39f9156dfa2381239b73'
'f036a8999966a59e3d64ea62a7255dfc3e84500319e1ec9b62c262500eeda5b8'
'8d9351a09cbe1bd2d6a8566c90ea7f4bca147f289a584dda2ca1bb836059cdc4'
'b9f84eb2638fcf2f57579ea7fafdf465d332845dafe6bc23f2da06c92a34eb80'
'421569be6975a10b0a6323ce87757b76d89c781fa12cfd343eb8c2f008767539'
'72b1f45361c04ad3242eac460334ebb4a7c107015863c2d2cc00ace637cab86d'
'1b7c47f24234372c6d01c9dd203ce0b321790fe5b5d0fb9577a102728214b5f7'
'0276f0558bee4cdb220c825e491474a56af72de0aa581bf0deaf9fc8f68f14d0'
'0e92909d1339944548334afd79af5ef42a0660da0c3d00f730c0eb679f975b02'
'064dcc40e416f1ec99faea3b1cda1fe0f19d4fad99b32ba6aa38bed16d224f79'
'332ee24b1ca080e8b2bf3160d204ab97894316f15d218c4230f0201a50a01d56'
'34c112d6161da9de7a7ab022a30cb95c56ec3b1883a4cad17939ee384916ded3'
'28ffd05ab188c96753bdd09b30b10b0047974d7bc9e74c80089d97d4c66c318c')
|