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=40.0.3
_debrel=deb3
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'
'b73a0376c3d6db3deea5485ba19c66ac3c5072ad62d358a92a8ac4d9784ed572'
'5ddff9fafcfa04e196458c733dc2598cec0c680662f2ab1557e1aa526c042d06'
'677fd5e5cb767071d3567bd4fec3e03966675aa670b1195a084d8026b36e68b5'
'998ff0f1c3277c627a7dfddbfb208c2daa1370f53be905fedac465b05bb6d104'
'63dac19239079f95c8227e73a4621aa3f36c58a99082232c89f563b24405e29d'
'4d74800e3b9c184fae3d14338be302ee3efd4bd8df84130d2b682128b1b9ec22'
'b6b9d3f22637cab07189c4cd1d37382917e375c232bafc83bf2869b949b258f7'
'094cb2b29df361c49658dcc300139c01be7860df3cee43476bd79d9e1410db34'
'db8558f4eb5285d18a68d455fa70a083a7f3806b218f4eaacc2757b9b4eac43e'
'c05f00ffc1b0989fa0aa3884a572cd8bc9851a77f5cb2c6d4f1170c7beb7096e'
'78a0e05b82b6e6f919c8a075c67ce0206e68a388d65d80ea38d2bed21dbf3b10'
'e5329aa547ff1b9c762298043d8444136af77cac941d440df60fb4ed82550c31'
'30537604d5e85e12ba718002794c47899cf99f4fed393a0989ea1f3eacde0740'
'68cf2d9c2cd844257c0e377971ace0a723b8f7ecc3d343d0d2340c89c4266489'
'8866e8adb4d4fd250089a1f6076073c9161204d8f1d9ea3c0102b6ff77a7b4bf'
'27b4bfbf8608166c17bcce7f2b1ad5595ec20dc4018eeb536d9147a270ded7f6'
'01af7e8189d9ddf35810749cdcbadd026427c0e4f2c7b1db7593bc81dc48b37d'
'9a26fa1664a79ae084c1d4fb5c3b7442c5989e693f9be0aec905b53a29068837'
'd6c5e1e11f9ab7e92712e928a4421ee3d1cf4e03448ebabc645a0b5168c19615'
'829a0ad019054cf69d7e7c71a3018581a771ffeb27235d24528af4ba6f2672ff'
'04707b27d53e2bf7e47ff833268c2fb6eb78c58c6219b0776f8d1c43f8c00935'
'e51d840287ad7749283c0217b222bfe198b0bdef770c1462e87bd05b6a814828'
'a46a45b193157e5a0d68a6bf3c26dc70c36e65e02e984f065142fe0329ad9ead'
'd0162d715f2facf449840875d15ca1fbf15d6c587c77f32a0581c398585c46f8'
'53736bcf55980f9efdfe26d43294bdd44a507677c892c191b6ce0f51a1127288'
'7d77b56180351a269b32eb093eab5028080b65901ef06e25f8e431352282f668'
'7d40554c37ec1c29df96458f81e8e44417f9c5a114e84dfd46977df1389bb71f'
'eb1e14abb14a5d6ba39b8fbec44a121b06831ce3299b59eb1b5dd50a5ff57a5a'
'5ff12e02ddad007135f47eadc4123d619c93bc9214dadae4e49a13a04439ea19'
'14389c52c995b4e478830a7254a600c0f442bf0133fc135d2192a9eef6d09adf'
'6f71123c90bb2f5ccb7ec6c4f362b51e273418304f7df98365fe4003fe902e34'
'1d7f159b53d2f5ee527f499f53f98bf506f46269b4fa72ba4404cbb54ea43996'
'113f7d3c598e018e1329cf3f30a4eaabb1563023c21c5cd5c975e0becfc3e695'
'7c5e424c18de113d5bb5668512663f8993cbeb8644e015b272aea266ef5e0ceb'
'3b58ebc7bdc15ed1652486c05b2e9e8d768d7cbd8b861fcf50140b28e9ea1411'
'abef557d07091439d2b3463f49d4f10e77e10504aff933a1ec016b50f336b67b'
'07c01a5c6a86accdb6a9c68df3d251e7d8b9ea9bd3573f7c392b8b0e0bac3317'
'db4b59aab2793b3d20c41c256eb12e7740735bbf57ef1d27dbd26e8ac4d3387c'
'4e626913bd39e254b6e99ec9280081bf82e7e4bb22bf3116852b24d5829a94c2'
'ff9e2bd0e448e1f3e1e18df6eace8b6d94a2ed3ede26797fc2cdb16aacb6055f'
'3a2bc2e16035e86025a68bd1bb8752c75854be35d1e78ef09f15fb8ce1ea118d'
'c19047882a9a119f3e9491ffab5cf1ed5be44c32a7838e5ed2c30bd589b63325'
'37feae54ba0b4800daf38769f7cb09e1710a6555c996fbf8b60277bd4063b60a'
'cd2687dab5c8a1721e89445262ef42044908f80083502f6a2c9f9e70bda6c603'
'2015f8a36c579d07fca931c91c43959d48036ab8dc9ce0ad10a8c4459a4d9bf5'
'b34e63a1e250e92d444b6be4106683a824530e165987a4f0b3c56d9be90f3570'
'5d6cab7977a8ba4fafaadc0997917c30d337726bfe077e0beffe4446c7f54ce0'
'83bd12050cab6367c86a0d4f81212b4b937daf32ddac11aa496ac1f87f28c826'
'20e9e59bda42fd3e77f564634f801127241b7aa8f5ab20b7ad130084b4cebbbb'
'77ae1fef0976a42828d84ce0f2e8d960c72efb07f8c80740988be56da1fcee6f'
'1d20d228a1b359b5dba9653e49ef2110779bc973220b761440ae40829184429c'
'664eb67249c2efa28f082ac8506b2a851fe1e53bc13c3f70f1535dffdc759c00'
'd6c456f950645c6f02b2357901b452d09ff4854d21b9bf27fa2330ddb297c806'
'9ee84979f18461b838cc46e5147d0c405bfdd188e6e703a31ffbfc2a9ff75978'
'992d9d0d0a4ff43585373e4712f6377e0d05826b7ff32f8a6810d326a49c7fa3'
'e8b69bd285a833f108a7d680b95803482d6190df326cd188456d630ead9140d7'
'596d8bf7cbc886292b768bfbe2c4edd8a44ab605fcee79da5338ea34da092d33'
'3ed29683e697d300d153ca8e75b68dafde02f4b87eb3d7f2b2d5bd5238b0502f'
'ff3e4d8eb082ce02c60aa9a980d2ba759929782b34ea15cb41647a844d471f15'
'e7849249bd143dd32188bb3976ba2cba9e69cb75a8e01a450802662c4d88e509'
'990d7fe0b62db74e2558da860d2810b75dac8f83aede4bed1a42497e70b22189'
'a38e8e8b093e7a3a85cf6e57cd3e62bd7a781266d9cada11a42d5c3b9cf022b2'
'9b3b25d32e5ed83eb30dc304331805a64b1af5bfb81cb934a0d5f0bfe32d1dfb'
'eff79b4b9d38faac4dc144c4d4fe2119630a8da6037e30ee63ee60447a6006e5'
'873130ce6a71e3beec367ca1c186b7cb1bafd4ff944fbe2897819e9e40c53a4a'
'5ee13525a0c8cb9ea98b5c950cd747187e5f7fa3d4a53898363e910bd9462b87'
'4c9cb9fdd3a617d83164a30b7b729a8461354f06feb4b5d8d364c9d180fef9b6'
'8edd1588f2b004cdf7adf4d40b6db818c14f83da47a53e87b7552ce30d68c9c7'
'6e99d8177ae201c16d0c6e1e8b75ac95a81a9b694e97ea99fd0220ffd43549cf'
'b59b48b5535170105af328c37a77781d4aad6bf75945ee96efb7bbc4fd3d8cb0'
'206919f30d1ca4262c149e6d9668e82187d19720e00e8cb580f6775ebeb89b91'
'eb74a26935d7ac76a507e7ffb6f480ff892d34f86a541c4a7bcb13390a11c489'
'd03df81789620c837218ec5ce555c8d399cf44f7802a261455474417d8686c4b'
'99f7091b02162fe102623a4e3f68134430370b0cd115edde0df47a341b725ae1'
'f89c03e3ca97a199b2493cc5e67796ff5aa0226a56bc28f28d75d13321e55612'
'ee3ceb494a3f15d889f25dfc1831bc73b856c7f224c88230b69f246d1e0d1f3d'
'96257dac001cd6224f9015647329717ba3bfec2de433040803cb234702807185'
'2ef46931509778989bb03bd63fb8b3ae0066d7bb99dfcaeaba61bcacf43edd58'
'8b7f391a2d06fe3e9a86aae546a53ce7e42e8de08c0cdab923d25d6c4338aba5'
'6cf9ca28884ad6169c27015b437897d995e3380d7d6b87e8d0287270a5382172'
'e6b750e18fa1da399891f77ab491367e0e3cfe5d34eb8bb188e7e33f2d8fd4ed'
'508ae80663f860abc1120a16754b18a560c6252539dbdcbd69a104b764e7a500'
'7510f5155265e82d4b14ff52e1ef86822e89224ecf4069489481cc11ee156130'
'cecd846baac8aa7ee47caed58e5f0a4c356ce61fadfc7cf7e49b429345fc11ea'
'c8ccbb4152b0a5936fb8f551835ff4ed906c5f4234eec293cb5f8341e026d9f1'
'42f45506fab973cd0c68484e2b7de5bd8c094ac5b042500b05d865d2aa46d54b'
'0c99aa70e2fbb14e30c4b2827cf3b5e44fa45635f32b943036bb1ad510c37469'
'bee740bff6b97eaca7b299c22d28852f66e722336dd6757ea95a96d7d0b5377b')
|