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=39.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,,} 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,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/chrome/$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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
'e6c2ac5772f6bc3d0008c776106978a68e50c1e5c6e2316d33b9d4349585fea1'
'93e142b52b2a4a76b25f06f7c044ff1d38fb46694716840e15491d882ce9973b'
'596f42165799dffd0c2605fc290c20329f7b87c29f153228be2aaa39676c25b0'
'1e3459eb7bdb94b5363d6c22fceb27affad3cfbd40bbfe9faba1fb87a1fc4dae'
'aaf35c16819a538eca21b9a8076f060a1916280240ce4f8ce94dd0d33d4c086b'
'6b3433e0c7ac64250227bbc645f2eb610580ee322bff161db3b4ee228e4469a9'
'ce6dae7f3fcafba68d0a284ae65b72161c86fa5f4f5e9e41d8f0ae828eeb45cf'
'5533afa509e50a24268c518d79aad3468870947381fd6eff0eb4e04f642c1591'
'94dadb31ac1038ffc17280352771e6aea32f810d02c834bfe4ee8fe5e0a0eec9'
'41a4633cc3c22331ac4b9cc4dc08892246586d7bcc9bf8c3b76ad9218b8decdf'
'aa464e896023543ff39d0b35e44739a611e673c8a7ada2562cfe70fd0d6d8692'
'afb2d6fde8dda5bf27dca005aa6366e49b1adc8f4c36e17f8194c3d57fa0ae8a'
'ef93db33013ab70c74eb62a09b3a7756f199ee2b4a116d60af6b746eed311ad9'
'f96ce9e887c69ca3dcd027ba8118258e39d99cea215113e3477e8c73dd80ae37'
'03153e6124f0990c1555126d01fa33bf86eb20efa961598a9ed5be95dcc0b096'
'8c6bec5bafc13d828c3ea4b7b47635e60b77a1846d681530c8416803e20ba86b'
'd6349cb34e3c0b37bea352f2f9547623d836acf04e0fa5b902d6dc51eddb76a3'
'9eda8e33707e9e3fd057d1fa5c53c0b09f1e57f460f4b1a78e074a857f0e5710'
'977e194385da97261b5b246cd1eb9f38aa46ff0e1e1714c30ab19710741dfb57'
'0f6d45a50f7cfe9d9ade3a425f13510b54a524240e5488c7c20757d4c12d24a2'
'0efb29f04c37e608f9a2ebbc68937fe5bcdd7b3657c412e4c5d69e3e986122ec'
'9bef8cd311787e71a77d464e2517b41863233e3caad94022a86a2fed0910f5e8'
'f53022c61e8134e498bb525ba8ba8de7c28b82eaf0ca0deb0c9ccbd4e36c644b'
'0f36c4db55cc8fadceb4dfe0b178f76d88efcb6612cc9e5b93c4cd3f3570978e'
'05eb53037e83f15b7c89c665b7abbae656b94ae1ae4a42303ea5142ba40eb765'
'73a5f0a82b0ca90f1451d9e5c2abbde7551d44080e420d2cf12953dabaa7276b'
'eb622d47ee6b8859bcdc2c194c369254fa12ef07860ca9684f9d59962837bfe2'
'7e20c1bb1817930278cd4c14f34ad4e5d23340cfd810fa9a1b61333fc5425364'
'677d93e3d6a69463a1d971672d440450350b13035b7134eaa808c32e77a32a7f'
'993c9c74fdb1734ea4bb559d735dd26f6edb6e0572260c6789e692f13d556903'
'85fd7d206bacac7f1644aa8ac6112988feca9fa2095f35b5b20bab00b40d3f68'
'dfea46fbd77487058d3d6b2be114f8552f740f0f53db2ed1c6174664315ec122'
'998c77d6e21075019cc74c57c08af2f97ae6be7fae4ae5764dd6d71afed61501'
'dff9bf025db14916b99069273ae5f95515e99c704e5649cd5687efbebb400428'
'7021f3865364a3a870922d55d6e788dda6291900c8b82ac06bf12ddb9556b495'
'390dd613e457c82429f317d09aa3ee4e77108af08c5a5ad39d09a1f696c12ac3'
'72a1b4cdff63ba34864a940f8cf2f8f5dd7487ed4c3d259f7b9139a3f84d2d77'
'd0180772acc88774b4a4b527879930d92e59959a379fb3a04fcffa0c6e192526'
'242a6a3a238432098c7823a8b11ef6e23ff5db0cd2be9183ef0325dff8a4c6a5'
'a383cf3b9c7f130a96344c5d82333811d883e9a1bf8c02509be412c937dcd062'
'29bca48f9126a050bb6751367ecca5f3f079a958ad65fe7e50b9bdb37637faf4'
'f56ff60ebf96ceee56ff19da2bccfd8d675652ec31e9f889e5bf0afb088b8d1f'
'a1298defee40226970a99c83bcad11185d28fec7755abbd24cb8797a433b38b5'
'b445ab1d7ee325cd61aa78a675a6b38326257a008c0049b9d82ae834eef444bc'
'dd93a48d2ebf7768a04c0dfd3c866ada785e5a21520607a49841950615f63d97'
'366f1023aa18d33aec1f46c17190d8f66b9da91a0a96a2807fce19591f07139b'
'f9da737be9c3225b229b43694dce01c1b964e05208235bc58c6b19c52c2648e2'
'dc3ec4f7c97a4755117f887d56bfa1bdbe2be37a171899855ba852ca7fb63846'
'3f206e32e083f96c782b3b2cdc9acb528166c4ca013d2df0f0b5ae8a99c31101'
'bc98b17d35df812b059ee568817ea472856d2adf74cdfa868a48fdffe1884ba6'
'65549f2d5f09291a503a4382adaeaaaf38bfe613308853fc6214d1224bf22dbc'
'1d108034a2314554f4d726dedcd31318cc902f121f4e11ae38365fb96a5dd3f1'
'e81d5dc38b01fcdb158ed4b06f985137f72123e673b9f5f2028cff19f9cfef0e'
'99c3d86778d1fdb053bfce361397f1059eb51551ac9e8747b17589c40d053153'
'93617caa54eeb7a542f8df050e3f646619bb037a13bf82ca9ce52a8c86e6b036'
'7041e3f7731051ac5c4bf776b7d8e50ea6d444c08e8ab1cb88ee9f465ec7d562'
'b615dd350f2e9eee24db94329aba405f8fc74b01b499f50650fff41e134e7151'
'2cf1f869e250577a31c5bd78675a66ec2fed8617534498116dfc2d6426716e33'
'a246f548aa8c71e5496109ffc89c0439162556775aa1ad594099201b075635be'
'3292056f96203a135e47e98a20bce3a7302e4ff50e4e12f7ccbe143d42d12895'
'28d327eb3c47ddd7929ecc8fd77dd6893ba4b51bca5cb1f820e4bd8daeac68fe'
'2bb2ac9b157521b10aa78800adc4a89ad3840f9d271db524b95b21b4d5ddd441'
'4997251c409247664899c5c084262b891b044b5559329b43c184d25f29d8b059'
'92ee669e3622667071c8f4dd825e23d2e8d43a10a46935736d2e0a9f8410c517'
'8fa7b4dbe91e1e26ed5339c48b307a18e35e920014fb110cf1d5c0761790b541'
'e7138d6ec9cb7075f02298200356437fa8ea868e495740ce623bc78d07642c81'
'21de1b5c5129ec84497df93a022970bbdbcfd4c26f1e8dd593e01ebe1458f3d6'
'0867109e3a97c22c80e602be5affdaa6612b4710b182a7f5792b29eb0777557d'
'b2b95563f5b13ddf26f32a504c5bcd40880d7c85c2e6b1dc992eebfc76ec0222'
'3639ad7ef91cbc0ffcced3726d3589f6cc580a34e9b7f97e97c948c4c20d92d0'
'c0b03813b158ed07fa1369d1959393caab7f1533429903cfe4ba5e4cb503b173'
'930b43d34b39778fec4f1f98ed44d77f68cd67667016fee92c1e2b8f4aa9c1b4'
'ef2b3391e02d7446508d46fdc252800dc9d632025717ded1d5cceba4dc66e83b'
'5d2d910c402d78793dc802b86ab7251404a74d609259a49a659b7940ed8595cf'
'82278a22d69066a0b599860852b155a40d44b1d967a5ccaf1c76a3f0da8f9b9e'
'ff8e1c35ab958f6a3be116d171ca8416ac1ceab1748523c1c6323ed9bbd037a4'
'e8a976278b4b9f8ad39b92b3b8902b3cd52aca685d0a823e46fd8c3e45609bf5'
'cb056c8ac9d26b290c8c75c2bfdfc2a690129f7ba2cbc501a4e7165d40d3a83a'
'eedc93a55b4b99268dabf5581710cfe02df883303dba1c513cf3ed26babdcba8'
'5486ffe5bb9a7bbadb2ef6b284b5a4ca0569c659a4178b4f085e9370eb392cc0'
'bd318477e0cf0fb6f44435e43956b22fc632bde9c5198fd849dc2ae7c486fede'
'0e888efa4669a7935e0e387589fb6c7eb1f3893f0aba6e9fb7c16f13f5356232'
'ca6a79092b984b35932d1056b2b0ef82c6ff8bbebd0add8e4090a678a0af7c9b'
'21869fa16c906bfdc3faf844d6c9ae11d8263cba56bd4144fcaa6462242253c4'
'a79a6f702fbb992676d7136c85fd75344f3c878a36c0dd801f6bc819c7b7cf40'
'13c1c1815f6b296a6763b41a62444b91247b10bbd1da0607fdb26c512ac0a862'
'd724f931845fe47f1eaa1ba4ea5eb1fb883b7d6ce46dab527be889d3badba3dd'
'e527198ba64a771fbdbd7332034a97cf04ebdef735a59d8b045920dbaa2aac29')
|