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=37.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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
'011e8f10f0e4bc371666b2da4a5827129e8c6b2b56fa85c172b934db2c3cf5c4'
'19fdddda41d3a88161b0925dcfdfc369201229300f6aac1cbcd8431adaecf486'
'4d216e881aecad9ef9458b1e63c213140bc431b17eba199289bf42501f40b44f'
'f3d4df3377b6d2535e568cd8da624031b71929c0b0df52c82d60ee52cebaf65f'
'12701d7b1b94f8cbc087b4a55bbe68f2e7c9541846255892e58bd7eb02e7c26a'
'4c5164bf8af50f05d6a0a34fe280a5afe23b1433488643cff1278d129a643d67'
'07c3ab89c3064e54b38a45164496d1789a861e7d67021984d5e43c2776a0bead'
'a5325cade26dbf1ab3f1cdd954b0e80695a561db29575097db0be5f0301b78e1'
'696f45c9c42b1a5e04c844e4af5a87f359948933f23132b04e6fdcb7d4483919'
'35f2925797d80b4de7a414351900861738f363d8afefaad72bfec8f990d78f42'
'97d12ca1840c4a074e9421fdf7538ca42b426a67cf37f7381d0a58791f47d2bf'
'569b45f3b6fc10bfc4634de88d3d3bce21f43fea5b4c73bdd4e6751eb5487f5f'
'c4f6ce8f96485fe44620aae304c175b7bb742a31a97bae1c8dce7b202ca9d82f'
'41cbec71bb5410f22c06deda6ff374bb13aafceae95f589aa1ee807da4e656e7'
'3f182b79c9a074c92393f19d42ca66db2b7df3fcd3cc9d19df874949c31f65b8'
'5e8173194eca9565f34618614aa882e0a588e239480bc69df439af7d3bc9d800'
'10423690cd5f81e96d87c48ca004b618c9c6bc362adbeadff37e24f5811ba978'
'3d313d022ba1c6c47b74e1845a0a0ae94df29715116df71d8effcd752e2d5348'
'ab5fa4f58d38cb399dd6360e68aab3f4690cccd09aa7a790a2c070edd37b6c6e'
'6a9c7a63d1499fb6ab3a72504f0252406ed20640519df3305b4d475f8ecdc573'
'ed11369f7418bdbc1e59a678520dfc2353db5bb36fd8732221fcc9a0644efd6b'
'952e7e86c14a8918ab5e3da9c66b9bf3cc0384be4023a3b99a285049f3dbd16d'
'4dbdd4e961d90a32d6c567f3e44fd12b4489bf7251d0b98ef26f24aaa5948b0b'
'0ba07c892f80f9ff3c95f314e2fd70ea78d331b3a5feea0a6733f78e40c4f9f1'
'12652c915f93dd730d9467f9257ad0ee3114def3d7ca899ba19176253d5b709e'
'1e9acdcc8f2a9b3a90762b6a16f8dc0a58ef224baf3d44256227ced35819f024'
'17f2f5efb75426f53eefb1e20b3fb4431b975f83c972bcb8e4e3775195242b81'
'828b28f3add65933accd7075f9cbd924c8dfe6c29181e2a161f597a15cd798de'
'9a334d794cf5ea969da5fcbc852890b1f307f51b872f243f1407d5b812b6b57a'
'c3780b76cd29627954849ce95fef345090d35312ac97893e83c8362dec866934'
'1234f5092bfdf84faa92dfa753f1838928c078d956176018f9b0b97e421675cf'
'7c47746231807ce389a0d851daaf8770391562ce043389229ebc9e2bd0bc4132'
'd677f3668b99ec4d1abbd83082df7d5df2b10099391e3e58ff494746400fa454'
'4a548fd3a13410316633b2ef1b1eac3bc115963af1121bfead615a9afddd2477'
'd8237f99b26927cb4b37dd581b1b40e46e17f04146f24a3fab7f5f2c787a60de'
'eb562d70f527ac8ef07f0bdc31fa94f38c58815d4094bc847dcf737912800061'
'47aa690022caf0cea4e05a92c9a8b2faa782e80abf7b5dbb9c5f64bb79e9a310'
'3c76e6f834c9496fd8de024945b494879233a0c6d087eb56f1c4bca04f98f037'
'0d3585115f56dc760a6a2688b2f5c027efc750a32b6b876371f219c69f58c96e'
'a6e88047c59d5d624d99be3589e11a22fcc520f64854467c4fa24052d4288fed'
'3712c54164961d3a4a63afed035f831f4946b553deefc908e7eb6c965ff8e1a0'
'4ebe6119cd6b05a416b8a6c5a5c62ced110fb42d5dacc99f076ea29559fe55fc'
'b8503ce047273d6b06757b3c3697273aa5150520f22ae09208aaaadb6dc7c0d6'
'f640730aca0db5283addfe3193b26703791854697e78c40ee73d8dbac42fcf7e'
'd4c8ad42c4232567a610cadd5db74f4b64859e40968a27089d7b97f992cd4766'
'b4890479226591c04e168a2cfed2304012a06b9fc22d6228d6542983e52c5980'
'f62baf455381b8fe126f0f48ef911bc3bba5c13c6c9f681e319608c699514bfd'
'927355fdb71760912170b1f3a37fdf2ed9809067b0e7dc0b2faaea296e06174c'
'9dae4a959fa0f9887a2a7d36d77ec5089cadf6152503e3e722f91bfa5cc421ed'
'bae9f977ccae51e2f84b6b826c8ab4f950caa197a272f5fac152414146e9f547'
'7232615f1798c34c519d51a913f8ddf9ede71ece8c2aa526cebd7d5db203a2bc'
'f087d557ed834dbe09a50ed7c26a592a13bfec36adbd395694565b3da8ea5cbe'
'002753c89f1a04c10e62e0377c8f9c94aec0e63b87d832be2bef534a926c885c'
'26fbf4d9544d07379c9f330d4a3694ba58587827262b7fdcbfe32c5982886690'
'bca689b369b57ec28359056de2aa467956d19ea3ebee7993f521c52b1941ccee'
'e2f082b4b3ebe6eecc1eacadc25494d9d3427f0f968e666c694f4838843f741b'
'e3b7db8a1a18b857024ec643d72b5b8ce40ae2ca7ffb84f78181149dea0b49ef'
'64f663e3c55bfdb35f1f1fe2489892fc5f50b8eea2b412857ae9541d9bc7c283'
'e17af33b4173b2edaacdc7ff786c971feecaa72a11c80280969a15e605579528'
'0c858ca71f212ca386f367c7079a7dc880250d353fb08e0c16999cd4edceef9c'
'faca9e0f7144ad8231f88f7644aa2ce2e0664ae9523afa5a9c262ab45747909a'
'61236506803ef9cc6bdb1e66700589bca3387f68bc717ec4bc3d04e73c00d960'
'cdd79c526a74b949989a76a888cd1729a7a63c7f1d9ee1d25b39a413e688cc23'
'4de4364a8e2c02bf8773c5620c62a6b0246c82afb3fd3ec24c0a78c8d2cb48e5'
'e72664c5a87b73f5937bf0546298f5a017fd3999437cb6a1dd0bbaa2e93dd896'
'fb38db1d59a32686699ba8d6a214961266566b31041226f357fa9a4fb806dc02'
'2c73685f3d707706cb34ee678e27fd4d0007c577931b0c8da1ee23ca1b3d43a8'
'8527d76e02d0d597739724a9931cdf80cb5ff7eb207f020f6dff5a931f28d106'
'7e0b7b325c9f0312ad1f5f2d5aa01ad480b89852593808d1e154eccd2195c32c'
'8ed2232146b78c0f21a6a6a5c87c6dad452d658c41d52ead737d4f43a98d989a'
'ca78bd64402508d17984011498c14a0ce9f32dfad872c98c62fe69ac9af9b842'
'f937729706b6f63ca736dcee8a9ec4f42d871e3019eace3b0c08e3e1562031ac'
'7b37b275fe85827942504242b05d2876f2bf5822a9e8991d20ef1daab533df55'
'be2cb123ae77ea197340bbdaed8afa214c667791f91e2650692fedc5b4e4e49e'
'0d32ce066268896fc5e7a861ce30a667cbecd8155851f1a8efe228e4991ff9dd'
'7a9013595950492ea970a779c7ca61748e2fc9c47f2b0bc3e82dca071bba936e'
'27e6ae247246048ceab9e476cf7cf066946418f67e88484f1cbddb5be5c059e1'
'd8b724ddb2ac82f7c45bef4a4420c3f01448dbe23db8085cb065f8ecde8e816c'
'318f683346679d9b046f6b045a108ceb6444846b7a5fe144a4ad466649241b9b'
'988e6a8ba0e5289399a4ebe129667e56519f414c9f8b90e7af847b669f0c845f'
'8c274c3a1e108056de3ada31f32d2c8435c9e3719fa8e58bb8e6ffd3e687d8b9'
'ed2e3720b00d58c6a7bdbde3b0eafeef89a258d3e31864ab7f31710b42b265ce'
'af91ed43ab494daf07874004399f09b1d069774aad932da94b55f0fa0ceab18f'
'57f98d97f9b30ef288c32e49bbd2783352b85425334ca9b97ffc95205b086668'
'e7e4fe177c168afc1586a314e3d992a9e9294a9025c57bc02b19f48aa9a92c1d'
'd85e227603fc41dc45e9b3f6e11e4a77e2f0e391117879653e7290fa2b1cc5ca'
'499eb86a90c514972dfd977836711b8be56d43314244130fdecf66fc11d84242'
'3d67e37616b92c68799a86e9d40b256b306a2eb493dc0bc991b21f0fc25057c3')
|