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
|
# 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=43.0.4
_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' 'mozilla-searchplugins')
_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,,} firefox-i18n-${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,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/chrome/$1/locale/$1/global-platform/{mac,win}
rm -rv $1/browser/chrome/$1/locale/browser/searchplugins
cp -av /usr/lib/mozilla/searchplugins $1/browser/chrome/$1/locale/browser
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=('81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
'3efcb78431fa95a7dc0db3bcece87c305c10a1dfd9994297370b94e8f037539d'
'50f7b5ab52f885ee699d2a232455ff266df07c5474c4a6fc1253129e16fa4a78'
'4a1567282c93a69b0de3120bb20ecaf726672608fef0fd22d4b71c267b544cb8'
'aab607f4383e48a363a5d8a9b3a8daabb108ed6cb8e6e5d9ab6461944f507cb1'
'71fad04bab8330761c8c4110dadf0bcee2d4655d19f2e540dd3f861fcc4b83f2'
'6187d35429be892329c2c05204419e7d524544cf866f6bf75d66ce88807af4f1'
'504bf6a52ab6620b2163ec0950babaa3feeb1c04f525132282e7c60f596edb8e'
'3f7dce65dc4322f01290994df7cfe9d9b6352a8ed8f76a7c69e9c632e5d7ada4'
'9f0b24a1c4675a0158fd5206b5e0d7a05c6f59b15b770ac631e8ff0f00a9a544'
'5c59d996a2e29f2eb7096fd7c2767d6b6a05dafbaf9c5e88c8b7e2a6b853041f'
'ea00cb820c464c6f0c5ec7db4f9a07f4cbc40bd4e0786f7a447a322b8be1df48'
'06f30f4c2aca42547c6244931a18cce55343d30306516e9aefbd763b3d3b6392'
'9ef024d46266aefed4540259e7411080bd862347b99969d5bafaed09fa4f3de9'
'914931170711d42e2538b5a830cc4c6e2996df87904497c8013853dd281b2b40'
'65257f7245271e2b1b5a00dc83a0e317f17892efe50f0495d96d7a030ae534b5'
'9d85b5a556b1c7b08c36afa928cc63622985a7c71e0a193dfd83d3d2d1793d32'
'0e488c28697959f26c6bd7f2575d1a1ab7a2f33be06ee03652b7027f5227ea86'
'a38643ce0b84fc45378483993e141cd4712f70cfaa84d5a2161fbe08b898b605'
'bf398e18af5b34dd583bda517effa3bdcfb8d08b063922cebd5e643497ff3047'
'd830acee89eb7849361a453d3bc6c65b15e2ff6b36efa0b6df25781e164bea69'
'08b5469c612b4443e9c6f2f28d0bc7ce471d12ea402e9361608da232363be942'
'78956c8d1f38c130cbb941f92e826269e7eec59736fb5dbe9101ba5f72515af0'
'2f76a7dc2afa41691eb2cc3120508c20116b7c71cfff414dcb706963bac3e55d'
'1a7a983fb5aebc36e99b08e0812c3c3c74cbb6a40651169a1800f2f50f607695'
'ace4fc9082545f7be8f373395174e73e029fda487c043255e5e9011eb1d23e68'
'767bcbf6cb801c3c515d5f12ac25cb22dee819b275eae2135b7f8064b608a5e0'
'1d4863f5c4b1128216e4ab57bbebb1dffd5c1a56f9f4b681bd3d78f3d22a83a2'
'21e1e0fe7ddd4d851fb5aa7f69cbf2c6fe1d7acc2a6c1b9bd2875c63e00b8973'
'9fe83a49aa62fb38c7064400d666abf120f68487ae7121ff7f3439dbbb2be535'
'c8d64a37518b564ae82269a8272476684e878f843448e7ffd7f59426781e4258'
'c1a421005689bda803e50f828a5a43ffb35faba5ee54db0803c1fa90553b1f16'
'5d950eccb3ba7caaa94c2b70cede587c7af708b306077d8111eaa00c963d055f'
'a50630aa8a6ccc23b49bdb114759c280d546675aabfee1b1cff0c065d9a52d64'
'a2e042fe454516f70fc34677f639864ddd40fc4e576656cc7c2b1350ab07de9f'
'5ec1b6954b08695ae69505972b52c2e405b0733b312331c0a51f13780ceffb65'
'7d638513d99a0fcaec741aff0d516470e4dcd6b874cad5d1fd8459efa2679961'
'720082943467ffabc5bfc905d22c7dc19d5da7af9164ff3d85ff961c5b55c688'
'5cc145301fe1ae73c88f8d2baf59a98b412465694d81b3baeb39049a2fe2b7de'
'28c0298f4884e7ccba30b11d854657bc918b50a4479973853b837ff05d82ab75'
'79726384cd9872ecd155e5bc25f2e8a42472b98380c7cced2718239430f2ef3f'
'8161db5dd3708eed1f7a3a245589a3e40918ffd4c82c4b319ef7efab9e22437f'
'75ceb2941b1b01b12b637efb80883b669e063268ff9256c90252b6810d43658e'
'22f80b78fa4c8d727e9ae03e7aee319e2812aefecc77e4973c7e853e48e78d55'
'287db90d3b3f60848c5f0fa8be6de23ae06c2b772fc811eb8140d295c187527a'
'ee5335f637e388f73ee88dd77d0e6e7053a1892e2d00f8f01645e829c17d7fe2'
'8277914a6d7e1a97083320ef258708125ee75978f5e81df113cd988fe10c41ba'
'ecde3ba154e4d7c7154967a07d9a614900b89cf43bdab3c641f1a27df694825b'
'0647be621666f671fb451064bbce566b6225bd1271c330829a8281c90867282e'
'155d1d7af5c2504022988ae3008abe26a5476570815a0e80e69dafcf30724e08'
'e567684909b9bea2718cfeef568c70012ded4d2293a782152106c5f3a35a66ea'
'5b57827a0e1b5bb86af8dfde952d86b0129ef63acd24e0f79de9721580156d11'
'16e8b1a9cd44b4a7a209f0b190f24537903afa33ee4bbaefae2d3aa295276989'
'89eb84e1a1b1b83245e26325c9e9bf863220b6cabfb3214bfcb165b2f1be93eb'
'83e9008ef27d577cdff354902db05aec39937569a09bb6312e89518c655878cc'
'866d71bbd891d6f5ced71d3806732e68ae3ecc3db2de279bf3f0ab90efb44063'
'cc25babece66e9ab1ed0d905a9047151085001405ce997d5145520c1a58855d2'
'0720987d6d69ef2d215efa3598b7d6a4ed19d09d543844bc988eb26dc7fff634'
'f83d9f35111cebd02523cdc1d7b3c7d3381793d58e8fabee8017b5a4ed1d59e7'
'3a277c979ee6eab914c7f42e859dd8818fa9c58ddb183e09f3beb5d68c29c3f9'
'dd056e6a7589637261ea59e247a7dc4a985013a52c9ef72e2f1448226d73f1b4'
'd75183cb85e8756fee00a03682a5b4c6ca6b7739d8e04b0a5bcc2db80fd3461e'
'cd03c4f2acff125090432ddce5eea921cac7d4655220654dd12693c02d5d2a31'
'79e8f172f6c0bcc80b37da3140633dae1a99357d692ecfbbc62dd042287fa469'
'99e4bde94b49831fb05380a77befef999663302ff9e35c6ffc496743f5800a72'
'8f0fbef268b81ab04d0ea6016f52c6263baeb6029fc5d6541159a71ca663ad92'
'c9bc5f3f31c059b3a0b9ca0127398738f947a6bed9c30ccf6283a0add5939c4d'
'7d5330d2cd91b7eb8cdd35ede0095dea35a9861814f8b22567f3512479862f02'
'aea65c002c0f61a1607608654cab8b6406dd2a0e3d4cc6b66c1eda320e52d95b'
'38daeeecf6bcb5ca79904fc0bb5cbe15fc0ebbbf1c6847e0ea592ab9856c8100'
'4927f47703e539253bdef39b83631df5258b52ea8045901025aff72c93081ac0'
'8b02bb13433f17639417d100ef78b3cbd5ad9abda267addaa218fc76bd17cf10'
'52d8b0bc55a2beb20ba515b6b35c450ff73c70315548227f3e81ecbd0e166207'
'e4766973df89f3eb7485cb3628d94dc37238527b113b25477d50c8cd3e3f4a8d'
'5cf3e2664bbbc4e6bd0db6f48799901d196c9d693f9d7fde471d4cdd6d92c7c4'
'7d42c37f5d414bf85e505f2b9bfbcd39242867faf4fa17587710726ac4bb522e'
'8bb34cdbacc628ca819e131447e1b2ea5db4970fe2ea0be9852846b66a560284'
'b8d52f9454365e8e3ee0886c7195b3f749f5a250cce7a6507a3218a1a4afbafa'
'287f2754274952523e6b679d94edf1f5473e042632f0a350097814fa43ca519b'
'3ee15a65ba2c70d450e01eee9e1a119db33a548a5c5c48313e43e05825550711'
'8dde4d330771804e2dc5fa1f8b3b7779e4aa5b330c422fa851cc01ad9817b3ef'
'41fd1920d9f1368ee2f25714a7ac0accf6597ca741e5ed3e846ea9dca4a79783'
'4f7ccc9ee8de1617861818dd7b664e94166a32ecea475f2d6402a206203fc4f1'
'417abc49a53ddb5ad35f9c65b2d55ea530ef1679b90502a304031a060dd17e7c'
'9388dc0205c8eb88b151caa82aecf245d4c0d78faecc9ca39e5f66903159cae5'
'ff95f1fdfa484a4059bb9648cb967f6b754cb9eb209983d43dea30e5601eee2a'
'f48fe9b922130c8c1a24fc976a9553666eb74055afacbc1a6f3440a6ac700cf1'
'563269928258d5acd1e2e6c9a45800e6635d8142f3c64e19588e94337c085c1a'
'9a3e029af40cad3630b96084945e39e1375e800b643d5200442428e1de052858')
|