blob: 60918d1c03efd4a39eec48da5390e292a8ba60aa (
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
|
# 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=1
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=('c57f9d372f056d79b074976a70d3f8b99ec9379eedd9b7a4ec33608b002b9af9'
'06aafefc434b69d7a5156033e83ce757181d8912812e579aea6b87c77b06fb3e'
'9f9a8b54932b3138d15fb050a6b04e574fc018d6acb2b7f23b1a9425513d416f'
'fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
'c255636e39aa7211af2ddc0135dac1d4f12e7d5caa7e05550bf11f29d1facae0'
'75312cd630c037ddc2e50a43597e1c0242634c40d6b8353e20c5cf6b3416f187'
'5038a20d58fe4673ac8980b2030a797543c6f9d09bccdc32e4bc2d59acfb3187'
'1d3b3f37f4c755915bf091d0bf21db7312d5d26bfdc72362aefedcd51d616e8e'
'fa2194dd7e6a3b7dacf813117fe96f901be71776cf41cbaaa49fa2922edc252a'
'8982310d306ce78b1b03b23271cac18757b06ac68817517c7cef7b35e39918f6'
'530c487310ebbbc5fdba19ef21ed8bac6014d9e384b91bf81c683d01b163fa82'
'4e3bd7e6a26a636e031a9afefcca6e54ba2a2c8ad5435d3471a9d41267dc3588'
'd25359f143a0c4dd23fcfe4804b3f01662d4e97206be8440881d39d15064c6c3'
'fa83a06b8b8ce4454a3543b13bbed40e92b8be87c3607b93d5efa41fa01f6d3d'
'987259cc1f6dedb91988c3281c5f26c5a07325e289df8a2090e44e408f8efb66'
'64ac19d617f39376ef338f13cb114199407ac77c939f6b909092c394edc3567b'
'548f4326b19b535d9925e51a87d63df9e94c3fcec475d330123cf2426c8a3abd'
'c33d6a7afc0ab3381103b098c180a6f648e5373f2df06fcd495b18c486730bd1'
'982fcc4c7e45424b68370aa50ab98dbf1770c55baae8bffc09e25b9bb04a6031'
'6c3ee40c1b326172a55866b1f21ede38d8b94598e85c9b6f16a6ac7f269d515a'
'375b9c390e90612e7a9e847ec2b3a71527ee4ad79231b70b2ae9c67ca1fd5a19'
'8bdc8b5e21eb9f2c8c5a179cc60e7e23f2b3e34debd5bef69201d6cb347f3b83'
'f9b41e8fa739b7c012ca5b4dabc24333688a1798c51f44108096ff27164fbc7a'
'f746ebe43d8b4848fcca795e753f4daa52b83e1fbe8b5148f460d7eed993f7a4'
'ac83745df0734e618b6a5b52166c9e2564c40ed16691da121ee0aeb7eefff506'
'288f473e35d4b682e45a2b82d2219adbddefed8bbe33d051ddd8d8de9fa9adc9'
'03dd766b490847583cbf2765b4cf81ff23da75739e60918811c406af846f43c5'
'c2599ff3ee9f099478427831f8f244252d16be7fc165f9d686cfe35b5a97cafe'
'e0cb68b939d965387e706f02fb5771fb091900ec392b135cfebdc3f1668213fc'
'a444361e1c0a3003f0f51285429096abea71309e358b3d308266a95773d7b3d9'
'9f78e0b078724d2f81e0a510c89388de42573086ca999c1a7b98af665761ef58'
'23d0b0a9da9d207775c82f3f0b4b99d1bef54e1d50e9ca8920748ddbb3bd17a8'
'114f0b7a0266d89545475d9e84b17ce9e44ef9430ae7e97dd8dfe746aa6924b4'
'6a1e3e580ed74ba93e3691bb25a4a1775975d13e6cee6c911735a942f1b78e00'
'9b9d0bee17df92ae143e1894f7fa3b628495c43263589a13a0c5b043c61a3ee3'
'c574888f1b30a6e360b4b1c1cacd84cbc2b18108fadcbd49ac4ccfd47e924b65'
'da189e63a07aa2d26784e5ddcb7041fb969dc63c3f147f566290e5f55581d083'
'ec064490e4c4bdc05eca33974878cdb079ba144f9dac4fa497296d030441265c'
'c009652b9800dfa3f38e07b5d89e9bc6b2f0e8056926420afbd99ec9aa322e8d'
'04e9ce1235b1fa0d726e0925472fdad4a9ebd8b6baf80392f77e9f7f44afc665'
'ef4c959d24191e6abd54eb03bf7848a08f7ac4f0196e219c6074bea377e87ff4'
'e5380052b2adae2e99e592cc28d9a1ecff4dfbb74103abe4432d9688feabe452'
'a9992a670f7c2412202b6c87e849c59d23e68f793770d06dd436ca274ffa921f'
'4e68a008b7d0fd078d239bfc417ea4dcf2f505f97b39351c3b74d4147f847186'
'34f86d16e2f1db465e44bafb53d23f858caa0f2e42f46b0a9270fe57c1a86fb3'
'194a7950be8a0062e8b6ac9205025ee5ea6394b67c9a8af7642878ea84e16161'
'c5423d6a3f9e67c6ebc5db09befee3bbccf4d9de16f52533a1fa08c22b5f2ecc'
'0ff3c6e8fcd716047daf002ed2b58254fccb82d22c5de1a7fe780d1eea7d771f'
'34fc6704d13c6bad38932eaa9c57221fe7b54e5c57acf2e49a184d0c7c4660e1'
'9a13253adc716018e7fa522915c2a9aca3a4d7daf5cb12b61ec77a7df4c2f3e1'
'3e78f0900b56104b61baab01e636256e8cd6d1241f142e2957d566b86ea79ba0'
'693b4c0256e2252077bd4b3823ebf1cd2fde98d145da0ecdf8824133e445e165'
'c9668fad6190cc7c7d1d71c8bf01aa46c9ee565ff0f08959a8be3a4343e68f96'
'78dd06c63acdd8cff52f2c08604f612bd98f2ac9029b6da11913e9a5053e0f50'
'fe1f07f526b2a4069e69bf746e31fe435058f8eb0daf24e72e0362af00e0679a'
'6be4f4e43fed606021d2218ec2cfe3712c63c737692b9116296a85ffe11650c5'
'9aa99d3d6db52466bd8fb52cad7df1e30bcf65ac5183e748dde2bbdf23783f08'
'824b6142ec3d13f31d4ea77b9a548eb66eab4942e745a719e197fa5813578ea1'
'28cdc44b46e3126c60091b664e9fe3c5ed8116372acd13182e46ef5a6024bfe4'
'bafb8f90a8162dd03f3d2f49aae061411e0b412ca15c85c9da82150bb034769a'
'69bb1d10e0f265342b4f4826766d0f6b13f3d777a0bafc448173f6441512a3f5'
'67ad0c3738ce988fd14536da26873519bc707e554e57e02e08c36a74228328b0'
'f9e656e45fe64f95a2abb818ddcb8e2344ea42545c59f8f6d29909f181933120'
'b0781182df3a057e95cf2397b686baaa8c625bf34044b669fab213d3caa0c7ed'
'd2d6e1fb4c126dd0736994613682439201d7f0b4ec25a64aeedd18ba5ce89c79'
'963ef9ce080aa18c0c4dac7e1192368025be95d7a0e4363ea63006a0950c85ad'
'a05ec5d5da615d06a060df9e005d1cc4ebc2c82bca7d8836c06ba9a138f3ce5b'
'526b2590f5b213d4b90d2e8a3a55723f3a551dc0ad98fbc8c40898cfeb82d58b'
'16c2d17420c49a4f7fffdc978e9a114748ae0cfe76ee0f8db721ceef8a9bdc94'
'8d918d988341c462b0b621c7d0cd9d77ff49c14b0e2b1bf134e99e9cc4469fb1'
'396e9bfe5192511c0ad67107dcd8e9bcda83de94d62095ca10f6af4433d59100'
'7968f2e7b2a5da76d82312230d5486f8c8b59ddef18d43d0c3e43581ebe717d8'
'7813fc4421fb3c08ec81e60ce955194f9f2a376662262da4a0f320db5caff342'
'7476011cb35e32f3cfa265621d830cac44d4912f5a5a3814c5c31e9cc5b899bc'
'145b4bef6d8fa5f644d3d1726bd7fa3d5679d3dfa1c456a0e39be3bb98b64ab9'
'1ba99487b2dba24c1a34f9cb3355492fc7002d1e15f00402788aa14bf1ea8483'
'b3cc30232399d25c130fbbf8476ef56013589b370ec44c18e76eb61caa4a457b'
'77982fb211296342a39d5b16e2d538b8d4cecf7ab5a8ef7d958fb373bc32dd63'
'0c80545bab1f7119067bafcecbcef0f902393fd3451a71dfc90122a6f0b8701e'
'6f3d9fcfff460a162fc3e0cfe75a8bccfbf5eddc8d683117474c99d07f47100b'
'825d25c1d7b7fd15919579e5930bc6d146dd9c39ba31ee544bb78da7ba1a9b5e'
'62c5280c5e49f47c0c6136c41196db112b220bbc238e8219b989805bcfe66dd3'
'57decfe700c7e047c10f39d8ef0a5d0a9f6f606fdbced530dff906cdba42bc43'
'a87f56bb7ebe1c01c0dd3aca66f0542d6c769e01171e99e6667a4f226cef2635'
'c0e6584c2265cb1c2a5c55547e9ac11ae09817e26e3dea8f6b00334c3262a60a'
'd05ea4e1f54a2356eb9062432280f85ac4733a1938eba039a01b5c7359913a24'
'f81f6f044d01cb8fe1e5e56fd80524a735d08dd6b75ed88b05980aafbbaa3c5b'
'eb39e6b9b3bdf360f6282a43895d3ce2bf709770f1c14169fb422322e04dd451'
'3c07c24f533e3eb27f3189cfa384ef815a55cb8d160e706e0506f9d676a9ca9d'
'5d23ed0ff61a1f9b7c4153450df002b3f4e559a60ed17e93d7b0f350f6130974'
'b1401c37e9e44bc01e2e3627ec82dea93346681d6259e6cf14079fb973ae20ca'
'e94521a7cabb0230dce0448e743c5986cff74bc4a7ef8ea7280e45e1d257237e')
|