blob: 30d80f975bed4cb662a529a54df0051920eee3b7 (
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.8.0
pkgver=38.8.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=('fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
'4a1131a9b5e7a24153f1a92207523dd9fcfbe5085184d4430be331d5a6fa2e5f'
'0ddc2e4d74d82944912a3c79425186efba274509aa12a87e559af80d853e39a2'
'c1b0fa0a63382290e5bb82cc1bec0008c8c107bee11187c4eea749192c42daf2'
'a0eb1fd0781cb26196b2cc2713cc115de0a8c877708131632f712aa687cab37a'
'0fcd35a5603cc78b48ac9aea1ca5490a20663372f8ce804f443c136bc121cb92'
'390dc0de53fc4fa5ccf7a694a7980205a2e5ec5fecd9a7d3789bcbd73a667f82'
'b3b10bdfa0a2e22ebc8579a85d150697bf75b99fd81e826d0bcfab3fb9f2fb0c'
'27ea31e03281b5ddaa415074555466802d9f7b3b0fa70e71f80e213e1ad19118'
'542e38db2fd85990979e6a71ebc9bfb237b375ed18c356f83864736de3a73ea0'
'4868e2fedb64d8edaaf66ae2a7e760363b5be2ef9bdbba86fbebb91e7aa7774c'
'097f0da1aac1ab9bc4df5ed9559644ab64e17cbd5d38b40934954aa6213a22d7'
'e56a2b9ac8b5fc32d6b9edf38e185b2283d8ed9a524a8479c87a2f0bb659d2c5'
'3a9fb281d8b7dd32b491e9b7a1a63de98ff16c610bdd0a63cbbbf839b195f552'
'f5c18109a11232ebc3492fb336b0b8495eb1f87d487b169d105ff6d9c2ed2f6d'
'07387188952ab082e4ac7a28b6014631cc4747eddbd1a3c5e65b5b999297c60d'
'817228374e514ae84399fb3444df0cfd87900177fdac5829d07ce69a210835da'
'f96e4dabff53ab8a004baa4788302e92a50f4c2b30d7a533307a70349b58dd7a'
'cde41da162cbc4266105e7d2b46537f02425a4e4e58606bfa73437980b0d598a'
'35395d803de271dc27f50027565ac51eb0bf1e20e6a6856bdde2aeb530345a66'
'28c18fa55090496646260d3d9ecff2d752744dc18e320c0f34c9a5af773cab2e'
'c8dce0120232f60080c2451bf35a9e948b4bef1597c2d1e1702d534b6c6a130f'
'a65b7290f79088eb468973550547ecb4b827cec3f80517f81e87ec9d3a679dfb'
'e58e3c25bbcc020bd5490a659bda9227b502dece69da930fd4812935c90ca7f5'
'109791df15b79fccebe559505e6d5e1717769e543516b135d66818dc044bc584'
'3cffb388bde0955bc10dfbde69df04a4e0848326ec1d81e8ee9fc7fc8003d899'
'63ac5accdba13a58494725ecaf15c8a018e4a1b3fb2cfb475f8908ccb8bc1b2a'
'd718f0c86759193c0a5e122f813e71ae1aa3b7edfed70bfeffe81a0963443317'
'4130ac51327976bdf7fc2e0e6f13352508e55d005ddae3e13b385159ae48eeb1'
'03669c1a0d685e5aed27118ef3beff0ac424957cc46d9e91cd5b176f5e8eff3a'
'7806edc6586e29c2a94d292b3088630eedaf81c60310afdc992895fff7b1e3c3'
'18cbc885553d5da706527a197625e44912a73cd3577566263b3dcf8fdae62dc9'
'2159e08ceec7018e6bd6551b6d8fb5081b50c64c8685405b2455beaabc39fb07'
'df97a233ce7db08a80c7b3b25da13c1b3a88fb14a13d4dd990888d2188f0b58f'
'd98ae5dc58b02a0738f4078720d6ba7f16fbd693ee51da08cc79ad3b3339e075'
'7b55b7ad21b1dc2898e2e538b47a7580d77aabe07a327c33dbdb6cfedb324085'
'952315732a8ef3d5acd6fa0eeae50b3492dba8ac805367694d5e23668ff839d7'
'02412a0e12efece1fcf33f811760db846b39e60fd6872a9fbbd65cfc0a2f3c9a'
'ca36c694f1ef25cbe3aaead97b7a36cc067e2a6bdfdfa59f6595d387f1cca4d2'
'4555e7083f4b5c39bd25dc1b7bd2f5a6cfd6a98b7175b33575375e97150aa937'
'4c77ddf8e8ac633671c0816dbcf18a8c9477c12ca5c6d88f552214420dfe0cd8'
'a097a4a52d7d9f7c59e3278c817f3a169bf87f0751c4f5b58115cb703b7298ad'
'7815f557ee2fb36382ef9fc89ec6bbc826979d7317af601af020c6cddf0b29c2'
'd8b7086828ced9aa02cb4761f990f0eb3d85ebf45790da335a0d0c7521c9bc04'
'bdcfec735e338570266a2daaf2f425af7e8090b4d46ec72510f7cc80cfdb5593'
'9efe33da9129234d6a933aba907a0b3ad239478a5f96b777f367bf53e7208b11'
'bf7b782aa10b62c4dd527bf8cf7d887ccce56d65a0c662102f33ed0f5dc6391c'
'dfd5c1403811076b580107a326b3e02bafaf94b2c9134b34081c76074bdfe093'
'9b0a59ec2fc77cca8f42fffa74c198026825159f704323f3d2c3f7bae3b56f17'
'13e7c2de81a177e640985526c676773edda4dc7ca18991c5253bb7bcf9455f07'
'8b8406828eb45330f4c77e4d406fa8a70abefd24412776a618f63c889aa6a605'
'8a18afcecc5efe9ff4366ed0c8453c2c3ff88c9261bf77f0fa34a89b31f68838'
'2e6d620cef038ea20e1bf39fde03654cb5b1a06e8bcf927b2527dfbcad83df7a'
'e1f14bdd0b42e2c6095742612cc6c94f18c27c020de2dcdfe794c407ea75ec0d'
'c9623157a9f0aff98296e6415f71f4177933c9dd5fa5b70ac412d7bcac986af1'
'796880b9cb8aee27a18871c61cb5f687d11b27890da92087fada5d72e0b01244'
'e6b0c606221b4074aa1dfa8f7b178c2305b074497444402bf15915faf956bf99'
'06051c8facefa3e03a5f8216841008b849f7728f965abbda421191b30501f2ca'
'7b6056500cc8e0cb7d38cc36ea883d952ed608666a45a77753473d020c46e9bc'
'188acedf9fff2d564027a1c3f7c5303dbb56a97b27024ffcf3a574305a65f917'
'589d74bea7de0cda9ae56ea02bf4a185b0151baaa119fde432a9ca684757bc05'
'f4350932ce3827e5cf0acb051de4a1be198b5fea0d8629fb162c58c0b6fe3398'
'e11d6a0fdf0967a00abb184b3634993d6fec80ed96b0873d1e9ca68e736c52c3'
'd634c90d6fcffae129ac9fcf3a795f20f88c6508914030badc4ea77208e00ec3'
'9418269a2f871c257dda15194d53e1c529d1fef4d95713e0ff56adc1c8d69774'
'473e25fe28b919e54362fa469aeb102efb4a9338787bb63a7162cf469ed3f9b8'
'75c21de189c74e5dedd1d01cab0969d6bf6ecf14c6417abd0cca7d6021e9d922'
'1b8894bd0efe2c4828d87e8d7fdc01641dd232daaef17e4d871458c872aedafe'
'c62ce754009cda30242db362231ee6794f243a3b9727c5318ee02006283d1c6d'
'89a665c6f1cedb94660a7e676ac47ef569600f01c0617ba297f02bc2049db8ad'
'a593d6db60613bcb19363006e9aceffec776994c9069bb535eb61d9bfaa5f99d'
'2d94faabada3615a6fd313d2a3717329a2116780567b5b6d7b5259225df015a2'
'b25985162e811751b45ffa535a9f3f83ce2854ce95cdb172b588aff628181a3d'
'403a6ddc0bb6c1dd361fce09a76c995384f08ed8968f26943a4f7527e073620c'
'5501e498cfb300d4c66747cfe50b8e4db9fb4653339ea7664e071da0d4f27215'
'd9c52bf0cedc0ec8fc05ab5f82260d4c158e53ab065f26f060ac8d5695c0ffc4'
'1c05c451f56785dd8f506b77f0322c0ea11d04c85266f5db8b681c0119730a22'
'7bb9859bf49510a3bd58d6b528b22bc36a6925af1127c95c70bd4e24baf5962b'
'bbacc571f1b0a665851f4ff39ae8768775a0de3c63ccdcda3ab297529b4183e0'
'ec0fff1f5fee7716930a5837432585931938266e035d64237565500b9f263952'
'e0fb21c843989ee5dba3c033bcad74cdaf848c13e03a3949acc0f9e163b9fcb0'
'894909e490d8b6669c30c7e5eede60e446c2e58105de163fab6982a5206ed6c0'
'2493d227559e3703df2f95e9533ee752b3ce17a7c4561096ff45972ca0f6d83d'
'ac1d5d3f11dac3feb82f7f574e941d64ba7ceda02785cad1c9b9cb774ff783ae'
'44bcff54d282343fab3ab39240fbf78bf1db018a788198f2697ba7e299fda4e3'
'f96a196ce543e02f08afc974af4de75f782bd619d7b58144fe87c45923eead31'
'281fbf65eba624eaa3b96561ecc91f7fe111207b39c9e274c563af8763009569'
'01c908a172b8f213d7018b0f8de863ac94dd10128542537b840b55b0d9300ced'
'1bc54b126aa4135048d2e1c6dd19c686998e0a836fc77072e5b8960e7c219179')
|