blob: 11346e6b7a4255f1964fe89ea1124561a1dec433 (
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
|
# 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=31.4.0
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"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'bn-IN "Bengali (India)"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'cs "Czech"'
'csb "Kashubian"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'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"'
'ku "Kurdish"'
'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"'
'vi "Vietnamese"'
'xh "Xhosa"'
'zh-CN "Chinese (Simplified)"'
'zh-TW "Chinese (Traditional)"'
'zu "Zulu"'
)
pkgname=()
source=('region.properties')
_url=http://ftp.gnu.org/gnu/gnuzilla/$pkgver/langpacks
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=$pkgbase-${_locale,,}
pkgname+=($_pkgname)
source+=("$_url/$_pkgbase-$pkgver.$_locale.langpack.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/region.properties $1/browser/chrome/$1/locale/browser-region
rm -rv $1/{browser/{chrome/.mkdir.done,searchplugins},chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}}
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"
# Fix a few broken langpacks
# https://bugzilla.mozilla.org/show_bug.cgi?id=832060
if in_array $1 bg csb; then
pushd "$pkgdir/usr/lib/icecat/browser/extensions" >/dev/null
unzip langpack-$1@icecat.mozilla.org.xpi install.rdf >/dev/null
sed -i '/./,$!d' install.rdf
zip -u langpack-$1@icecat.mozilla.org.xpi install.rdf >/dev/null
rm -v install.rdf
popd >/dev/null
fi
}
sha256sums=('0e638fc7d47c3931a3e676a690c50f5e9f6c889e06f12a8e0b19aff0c987631c'
'f16c6218486e531675f5f91abbb264a179c9c12274eca8efdcdb69e3a3fcd100'
'79dfda66e7e9b0fc4b6069eea4f1f9c7d6c1f9ab5b95797728a121da480cc8e7'
'e628786aa12310c46d11b1f71877a977b37cf35ccbba20f72bcf43deba32014e'
'033ca17a63687200104be2d9a2ce62d59ea7c828f24687ffdfefc66b01b553e5'
'ffb62f1f180d6f6e9b86423688e1c0372bc4aa186ae5da8e2f6f812b813150b4'
'1e973777013b99477465a1227f42e37d8ac0d235c02f84ec69aaa26d847fa249'
'cad3a753d5186539f42782394348305170a570a5a98e0c33949cd966032604c2'
'42578688e1d7116ed696bf3e181d24600a2060e431986756fbf7f00d6e8a9724'
'8979674c91c1e35b70fe70942eb6fa24369a6a679af3e3f006433d05f045b96e'
'343f54a1c158390ec1a2b5403971b8b66f19636e2943a3e83263fd71f43ee7d8'
'e32886c82030cd4c6a433659be33e2933165bca268782f73a40629a5e250f20f'
'0cab052e3dc5b9a02d609cb713da1ada2584f9e757167daa1cb75999db7e8d4b'
'ec01e7b6d3a34c27ff445ddf4d24415e30cd07e77633204adcc4fb0025526f9e'
'a8385cdeac58153aff3d205fb2697d6a87879baf8a91e13a89fc486ed3de3e10'
'a8815688647f5ceca3bc4891910cea77b6201698db3c9505b4b833f89a939274'
'bd33a5b744d6e0bb1bbff44031659ca33425e15d2dfd246fae1984ebb321ed2a'
'4ae0e6cac7248f81165d6789bcb779d468fb0615069d1ffd9063496e3db453b7'
'd21193066bbec6445fb78a351ec292b35ad8885bc52c07ee85e002f202afbbd3'
'd1ef945f7d54811500377f4cfc596f7a54e57a7aca4ae581ed25f6802b1e00ed'
'56039ef0d41761143a0b6ef00f9d487f4b818d75d749bf6274859afa7851f542'
'ced2c9307286c610b0fcff00256e7a3b13d06203f280feb2dbc371f9959342c2'
'f5898f7df2549db0c4e96377cced53d86e8ab5f72b748fbc1da2b8b5ed9ffb07'
'a705fab5da5777c145b7b288ddacf229597efa6c7dfd1fa01b73b82149134bb2'
'2cc59b439aad1b10a496eb099a4bdb3c10bb095243ea73199ea4b04ca97174c5'
'60eddc30eddff57d7f478825d200134977b4369e38965c2aafe779410906894e'
'4041644cfd9e8eceeb0fd4350381f879f15b5fd329639fb033f6418978c3214f'
'7ec7a9a83f6998430e636e2c483d4fe726f0d7e4e463c6e564b9a24a91d5298a'
'afbbfeeec9fb4662daf3fcb2483e57fd7b3c5c084e6e8eb717f94905d9ff5da5'
'aa38c7771524baebe861577506f8b7b89fe81ece9cbe9e08e16a34989cd03146'
'b94b116ef16c91b21983b9e68b4c1f5cf63ce17a44566ff3e95a350d269e0ff5'
'df13119cc8edb181abb270390f2f09b3f1cb6017895d9ec762ec71ed58e77ead'
'2537225b157bc26ab5766cad529c31d942c5bef3e3109d0511a4738a30e39e2d'
'94d5098ea924fe763a567fe5efbfb68de474498d510357b549100f68bef51193'
'4af710ee7aa36682e76860aa0c2d2803f125040e83a69986b8897b139c772176'
'd945a2a4ae9c20da41a3505b941b18477e560d17f5befcdced56121cbbb617a2'
'6c92c057dd9f3180617c015985dfd6818bbb131ac076a7fb91dc657dd8fdb6ef'
'6fff4cc8493fa683c55dec3a0e20afcdf5af62ae35d52dcc9970f82d238284b8'
'b66c9d9380fa8fd691c26e13b33a5c2917de9882701ae91deb7db3621ad50587'
'3efd3249949bcc007532c197580913bdf73b803f44276714d1a1e5e216352504'
'b47c491a79dba0c54f8322f2aa79c478f051cc58020289df5cbb941b1580f24e'
'b612518b19317c39cee09b23fbf5ba0948a54e95a43706e3c4eeff33ce36484f'
'efa3aa667cfa0b70ec7afbbe25e0b8ed6ad1156b04dacd7c250560b0553ebbb1'
'e5a9b31002b90d0d2ec32e809be13f179b990c7a0caea7501559397b1c18089c'
'7840f00764213b35f7c3689ac4d9cedc560c2a7d64491e2a8a4908c6348ee64b'
'806df25b6f83f66fff97b25b5fcb466ba301354c5cf4b5889d748b2bdbaddcf9'
'537dca2cd79bd9bc2d299ef69fb7bae6991a2b81c530a91ddcb87b255d9051ed'
'91c3492db220467b772ee2f18bba745098f9ef16de728f7b3c12b4c3ad9d63a5'
'0094cc051bad72342f1da26583564df20ad65bbe9efee2bd571e21adfc90f6af'
'900495810324de5b9f330db06363438e83d10e57e6a3a20045d5685f7bf7ba36'
'6226fd3aa56a8284386ca50d2a9ad790b7133f622e8f3815f0cfd4b6c236532d'
'1ae9fb004977ebb676ae9fc485a464861524566263d10d6c0353e0ce2debe861'
'0d814b2375f23f997300f981d360055051d30f19188bda029428d67ced277304'
'f4156f048e6f914cd878a78b45c564816d0c1fa788cd39a151bfdff8e4ac5d55'
'1ac373ceb3a5e8dadc76b81bea37cfa0aff45aeae76b2c98a27e5caac1759d11'
'0900603947b55627065979d5fc911bcc3ea859115b9061b242326679ddf20f73'
'5383ee89cd9f3ec711acf7d8b4fdda3ee4212956f955652471b273d4177fcf9c'
'f69e238f6a9803f0d313d47e87e689a54c5e83361c8ab00da88433667337aff4'
'ee6074fd5101f5bdf8046a3cdc7929981e1f6e6854a20c89cf070c6a0cb95422'
'3c6b66fdd7206fc821caaccbf8b067857b2e5c9c1d536d4e47a326ec78e27920'
'eb615a0cda57ed3387a832e89cb034484eefe67672d0cd75079f3cd44ee56511'
'87e26105380d5344399aacd0daf5f834e7ceebc139cc6ba9029c33639995652c'
'1af6742c896ad489d8cd5e82af8c4e3f4fa53a604a0df60b7149df9d7864d3c1'
'14eccc3276257d1dbece635b96ae57b2ee0f4a0512f64840cf724367442137cc'
'5bfb9303b3ddb34577888c1039e284bf4e62a1dd9f453556b0ad08877f121abe'
'788b43eb9f0a513610fc68e55f1611bdfcda2accf88c55852fed75e7bfb16d2a'
'5105c8402436018a24bd2d113c662768c285cc88ffb64b9acf4261550487d0fb'
'4f81e82b5a3597221898287e48a0c196a569c82a14d7824050978ce81d5c1723'
'dd374a60033f9c8cd5f88e80d88696ef6aaa16845850cb35031aaa5070a7da51'
'd6682c7aadd28c03797d977ebf5625e77c2496376f4c0ccece47951d863715cd'
'ae11ec89879388b347f6f4d28162cdec2cfed753a4fb6687626aea301d9792b4'
'd2a5032289cb207d884d4a0c8a4763549ef0d3392339a4c8607e24ad2848f5dc'
'387429bb8b139ccd13b4b3a8656f2f35b8d3606c1373d9fe2ccf85e9ef9321f3'
'c8f992484ab7984e2d3c6b791133ec5df7dacca7b2f66feddc0bc3f1100e3543'
'08a8110d96a9a1a505cd6856582bae9d9bda66dd02690acf2598883292a828c4'
'330aaa9a1e7b99418a586d23d9a71c6803fb3321a68d1d6fe603662b1161dbf9'
'08f264cd2f984ed2b34fb3a162b1cdbcc9fe44cbab73aa2461e11f12771adc85'
'1cac68b02f1059fc4e8134626f55d085aab452d2dd13e603a2962c40fd5f4716'
'1e45010b5f39ed2e1da3f9729067f4d5d9711d620977ddc3ba22e13c6d9840a1'
'f5e3291406996368bc96bd99e0e49a41df01f54b34034d2632a858bf0d218705'
'4cc8af0e5ac6a56283985b790bd494bdb72dfa50a3464d45e306535e97925f04'
'c19255a732eec9ac0071becf1153fb7c74c85558ef5971036da6d60611a89678'
'b8768e4dad22e4770b52f304f2da44d40266d63aaa2dde01157d0c281cd59508'
'2f0e89c993e2f845eb0bdb4b909c527190419ff8fd39adceb12c4f52bf239a90'
'a2f1d4c9944d3b4e1bd4ca64081fd91040e0acf5d1f130538ff8d18fe9018dbe'
'668448d5d39687c89d03ae4e62abc38d978a61fb94ad00e871a0144793174648'
'35a48ea550d93f5f3b18930430300b35969cd00fe7125e40deaf08e38c1dad89'
'1dd53edfe74f81f23ba87b55a09e1bb613ec20031c9eba1357e0d604bd02a17e'
'9083ec3b54d594e85d5f69a3572b0685f0445681cab7d9aa73611d8c5cae7a64'
'4d362983eef432b43d8f29eb4162ad50668d5a33ce162e0f3663d3ba0f54f4ef')
|