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
|
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
_debver=36.0
_debrel=deb1
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/experimental/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$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.debian.org/debian/pool/main/${_pkgbase::1}/$_pkgbase
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=$pkgbase-${_locale,,}
pkgname+=($_pkgname)
source+=("$_url/$pkgbase-${_locale,,}_$_debver-${_debrel#deb}_all.deb")
eval "package_$_pkgname() {
_package $_lang
}"
done
# Don't extract anything
noextract=(${source[@]%%::*})
_package() {
pkgdesc="$2 language pack for Debian Iceweasel."
replaces=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})
conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})
bsdtar xf $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb
bsdtar xf data.tar.xz
mv -v usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi .
rm -rv {control.tar.gz,data.tar.xz,debian-binary,etc,usr}
rm -v $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb
unzip langpack-$1@iceweasel.mozilla.org.xpi -d $1
rm -v langpack-$1@iceweasel.mozilla.org.xpi
install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
sed -i 's|Firefox|Iceweasel|
' $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}}}
cd $1
zip -r langpack-$1@iceweasel.mozilla.org.xpi .
mv -v langpack-$1@iceweasel.mozilla.org.xpi $srcdir
cd ..
rm -rv $1
install -vDm644 langpack-$1@iceweasel.mozilla.org.xpi \
"$pkgdir/usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi"
}
sha256sums=('652dddf407ab9b0e00ab8cba7c1ea9b3aff2a8f7519966010fd682ae182281c2'
'4b91ae5c9ebad50994d865bcbfa6d240fda336118646b1eddfdd91a831d7deea'
'2e409062b15cd1522381791a4988582638d9d7b5436c78f22ab69ece9e161985'
'90d39985b7433e3a4d1e002e5f9f826879e6d34a6e59aa24b8a27b3dbf0bf94b'
'd084484b7f8e5234b130ef0b0e7f8593a1e2ea308159acfa6b28ea27e378e9f2'
'210e72939d31cea4418d2beeee02523482fafec2ec7d012eb01b0aff14f8d626'
'812ccef87e9c29dbc26f0a61ea129f23a0088fed909260696590bc97ead5b997'
'19dcf3f1d1ed1ccab51da58eb52008795155d0461d38ba7cac4c2fc58dc1586b'
'b6a57d8f2a227a958be076b011adaacd21e7bb5fbd00d3da522a981dd004f110'
'0d036b8136afd1971b221a539abf5ac8c37b06671f0d04380da071da3079fe80'
'1d91bfe4926f0c7c7f5c2ac869aeaa4928b1e51e0f0e9debc3094f50bf5e3e7b'
'3c44c7d59d7da2a9fe12f5a080099e3ebce0bf305f7efc74ad52a89145d4f4d3'
'e7a02079a4de8369feee77af28ced610ab882921fb9e49500dc5879945126605'
'a70580a6f8e3ef42510d965f8f9eb210aea67321c16cd64bed6c3dad7a212476'
'49ef135950360acbc1eb8c60be0d09915f11270d2090c2652bdd6132672fcd0b'
'b8d1203caa35527947c2b20bb58a6d735f21b4c0f85916da0dca2a6f95861295'
'256917a417c12fd0db0abb77dfd7248a0db0a53de05bd5837369c8b439bd38ab'
'3e5f825490941f660027d23819a1e22da6ddfefdb302f651ac3abdc0dd476da6'
'acb44dd6b7cc2da8f928ce31a60e0fbac76ff79b172716ba7e0d3891bcdd84e7'
'272e1b8ada5b2a6efd247333dc722beadb46222f3848ef8ee5bf2edac84d46a7'
'9d56f97fa940e00d1dac7cbaeca628c3f8d7b63b626cf4a530d47a00ad6acc2a'
'e66752667da769eaa8bc270461226c0058679ec4ff88dc96062226e8d931e63d'
'22eff1e56aeece92cb932824780eb84020e7a988204df43887a4e056d98f2ef8'
'1805416c4a747c71f792a31642c7e7c0ba06a30e711da6458a3692bc7dbbe786'
'8b6219523552b2b520bdcd0d9713a05a4ea2e5ffeb6bb4a6e548e668aba5e6b9'
'534a48fd63a8d5a2135a5594f2eef21f39617a0de6583e8706513923d77f505b'
'9f86a2b9567f74bb5e6a63c4a80db60d74116b54a751579fd4b24d0f8611a3d0'
'675ec95efc44a4cf13995c576ede0fa059cb9c07134e9f05efa045670068a888'
'd586e2803b99affcc72addb2f239af8c050b462dbe8dd710f75460e27d8ead36'
'd5cb7cf3210e72c9ff6cc96740b006ce8568279e20b8bcccb336adeec0d85c6d'
'e17a71963fc9db94bf5790ac0cdb87ad514840aea41683abedc83ca36011bb4d'
'86b7e513b3620acd1d7a71ace498b90200a96a1bf3bb58ff5aaddca8ea0b7025'
'4fda58113a064156083e6c21706f6b449b8683aba825d35e40d38e1465ab998c'
'd3c4a2ad0c20588c2009872d22bab2c6c5803035a725d5b8093ff468b520e3a6'
'ae37ebeb7d81cf8ea63d31cea76b24e088d8fbecbb3377e940878560c8a54abf'
'e635c525b57cf744b4695f6db1d41b48e8d8ce0da325ae2d61072ec840e80f72'
'1a2f2a790c8053c996ea7272de4d320daa336663dfa9ad6580df0bf64bf62215'
'2b31ac17d4a6f58454be6ae7b701446dae5c670c662692fb80b02a83866597fb'
'4e0a2f7addfff336db88b180ba9a4bcf4800e508291138c1353b1f4b847b68f5'
'ce60c0a0ce77498e9a313dc0fdb3247921af2499c02da83118db2c8f005e4327'
'38950b7519568d570750c3fe9383bfc844fe4c243dc21f00073863b15ac04ce7'
'79962c986eb2c709ae2746f5abe46e1a0d0732ba48e4871c3858172f4a990600'
'0e550455ed7dc9540c0fe562fd9b66c61c2a13d0d5bd1e6b7c3ae74eea1dbf33'
'2150737515f3d438cd7b0ed14919bcd17d90cf0c588545b23fbe2732d1054f4e'
'c79850feeb023aeae832d568bcb778f2b64d71f97053c4832f1066873e01afec'
'e0785082944e8154d46bfa7e919873bc54195d2c22b52f92081f06073f8f5db4'
'48418f62a7f7649c7c1d4773f197ea623da82b5ac35cd981acaa9bed0ae99ebc'
'477d2069b9150b3c75c3bc6edba31fb9b430383e60de4321680fb380062e416f'
'51f39ccbbea0fdad6adfbbfd1d39256ec66d3f1ac471756a6d13e6b0103d4a29'
'dbe2d40922c30f7b70d12777b9a268dd2061746f5d9fed669a779ce3911f1608'
'7faa4a3f2e2b434521684c378abdb7b381503de3fa9dd7b14ebaef539786fa6e'
'0825daef12911127e6d16216dce00a972589807c4e1013b71c9a992986268bd8'
'b2b2c5438bc9278dd5f1d35a345572ffe764b00956eeefbe42a665b80fc64ccc'
'b6abba9b3c8777c97efe48136a6be8ea6718fe9fd2a4ed9e18f19fb96b260fb5'
'a6f76747bb9e04c210e32829156f88c68c88247af4992bcc6e8350868b02d8bc'
'8c1ed83af7f72b2be6e945d2ff864cfd63b6f55ae99518192a21641c5985b331'
'93e7a1c85312db588effd03302e5a898a128630d296d176ef72a02ab54671411'
'd498d119f43cdd60a5dd9d1d5d244fbcfcf449bfef77948745bc335b0818d926'
'6c351f2911d5dc1e8f384534d130461e36b19720d51f9bb74f2ba70119fdb6fc'
'cbb6c8b5b382cf4458ec5441db34a043321516d3f4683d79f4437346d1c83207'
'ee7470decf1b806bc1fddbbf488b4debe2109a54744fcc58d1bc30aa935c966c'
'115abd6f20d83507ec4bcfd056ff2fefcab33f836ff9b6edf45d99a8aeb78afd'
'324dcb32b189d9f35eed7dbf72d267394d91a14a8f9902e0bb5c706dbbee935c'
'b850d7179424b4972b783ecd12c4df20d1f04d4684af5ea42223887e8567f231'
'5383383dfc21c5363e6d9f479fe6a4016525c5ea11ef5a6f66fc0d5ad95e8fb7'
'b404803215c5e9f4e58497de9e08fb0c015b5a29a7a19e344259ae2c97527ca2'
'12eec94b049b6933fd30f85cb514ec08451b3ea7bca4db870f3de9d90f690809'
'6fd199f1f8cbb8a095d14719dc571f20cf2c9f64e297bf9696f3fc075c09f58d'
'bc0825b4593b85f4d8412953e91b8cc4e9ae97aea3a0387c6f61838aa62469df'
'a0f4a5fdb45aa238571e37bbdafca1409459f7d0c46f0bb29864f22cc037c5d8'
'a471d71bfb0ab12df1bd8dcf6250d612de10d784946c783016a8619169090c71'
'24842e9d8be191936a1e7b1447750c6e2d8fa08b25a463a5f1ca35989b81d876'
'84fcf4a63abf3fcfd8bf2f1db175b85838cb223824f8e5fdbdda37603aeff027'
'9c79969d8b4bc0fa4d20f4c6b69f4bedfc4ea396c0e08f9785a1b91ba75a236e'
'2f95dc73c2e29b47afe405d4731977562d77fd9dedfc93fee54b4c338e195fb4'
'de0045948de61f7af717ecf48e72fe786927d382be82418085e82ed5297e8103'
'e2322be20eeda2695ffab40eabdc00609fc5e68cc1dfe8d7d47a3cb3117dc03d'
'652dbd099d885cff085e4364330897f3820108d47008b18a549ac4ff14314cd0'
'ac327660339ea488469d2752da0022ca5d68daed8a06693206464591e2ef5a7b'
'5a19faa8bd7dbeb98d6679707c5ceb21620a4a9f19e166fa51baedb1dca1851f'
'bee522294dbc2548c26cb1f390c44fb13bea188da3c861c6a8e3543369efcd97'
'4244a3338b9aff1fce72aaf4d976e7eea081622d8784f5fb0744099599610634'
'b275ba9885447776a29cfca2d6d187287678573c8bfe061a75ef0f1dab61a99b'
'4d1f529b8b5986998d0169dce911c3a26312f9b117b139a62bf7356734da73d0'
'fbef774e381b3b2717bc44542a5d99ca3fed75b1b395e9cd2c496f0328f79793'
'0c4e809bc2ee0b8ed4674b4bb37cddf5f5ac34f4f4e33121d34fb79c5a399334'
'6d186b9476da3fc38733101816c4450231c4e719003d39e9da10dc2fb3dc1829'
'dd04ee0ab43f3d103a66e7d95b9578fd63d235d899aaa44b1b2ca3cb5c6ac9b4'
'ddf10ab2c1e49427b2d3696b46369ff8975e2f141f738cbd1599b9a41abe84a9')
|