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.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')
_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'
'5b7967d4da75f763d8eb00aecc95424c4ef889ba7224f32d469b14303e13adec'
'9c424ba34388d58b750df311fbbf0dcdca84a3359d2cc8bfc7467cecd77d39e3'
'f8ed2a193c80d2e8d2fb62e4c67c4830a77d3b1557cd0b0d19f9d4096902be2d'
'874c7e68a6a8d2b3256c0e7c5d9e25011872c0e846f65030d3fda202a4f58743'
'0756bef32ece904e5f4230c304a0b1dddbbbfdfb31550b9f151799e574ed51d4'
'5be4a45d1268772b58a27cf6c5d9dbc6050b787423255481ee71a99f4826cef9'
'f56c76f8448efca60f8bbee9ebd6878d3023520d756f59e35747c609572052e9'
'c23cc3f68abca0606d2e16509391d930744407b168d3e1591dfca6efe63e7250'
'6a5cee4bc04ec6c8eff8315cfa6aa57d90a77c0ad2f8393349bc537577f6a4bf'
'41a60572d5cca4e7dd22755f015ce9edbda22d6fffd681ccc06963a1f170b157'
'7002033a72b05c533ba7a7bf95f5e28ccecd508ea4cba0be70694d825af16a4f'
'7cecae97377586a7e44398e74b269d94bee13816d6bebd4c1221e1571ea576ab'
'337855a3ee7e7fca46563f73f31e2831168c33cdbe314be0db8f8b9aa110925c'
'9a33468b9952ec822823e97becb8ca5fa0452406b08bd735d04d2563d914675d'
'20c24f43ec45e1f14dd6753a511ed1f1ddc2539ea07d8fa694aac1ee174a2578'
'911ddab624a1f05adf73f423175a37a0fa3776ee0117cf6bf223fcd9e83fd271'
'b7cca86eb555341dc69bb8f563d486bafa7e97d935ff70c62314b6228c958842'
'd8af4759a3aa8d39e1220da13668ddb89ca115b3f41e99171af667c3ac18f4b2'
'3f06ea9b3f8a88ac7c7b2e18149bc36a8711d8758ac0a5e6d45bd6a1bac0138b'
'1c3701a5f8d8ebb3b679665314a62360d59e7b5fca107216e1de53a0a1c1e3c8'
'1c3c6ac332de657243fda6082cc87fbc33843e5327c54cdaef8b7ff601049ff5'
'1ceb08963489cb00099f414cbc695024b5a1e0c6922923ce0e7b15bee72b0a11'
'ba6b8cbaaf2173bbefd123eba833f761392b5afa112d5a9cea190b699402ef1f'
'90c0367c511a7ab8f63436739e948da0baad197310e3cedf5fc634d380ef063e'
'5023ce5c95722340f8de09de583dd84c77cde6b2f0bd5fdf85c75f65aee408c7'
'd55178311be81c7554336d6bf5f32cbc0991c12b6f9130cf82b8a9369557f9f4'
'3573e5184fde7a4b363812b269ca229ce1489089c0350853caa7f5c8be47be07'
'6d38767f79abd2165211b02abddb7540d2f047b04ff1be7c29aa868137ecfa58'
'80ba053ade6aed2d64bec9db8f9c6c190f246e42ca3cd9a5a1d4e3ca8bb2d831'
'f9f807abafaab36c722c2801b1cbd0742c4eab5e2e83f79e0d4b12fe7062fb18'
'fa1013f25299ca471355aa03c4a65e81ea39960cfdf9c2507fb0f66a85a6e8d7'
'2d7d87e5bc90525415f01e502c33abe64766467ece8fc1b4b380583c1215a4d9'
'ee66423cab3fbd42e11c95895afd2ee3b5f820d7a46d8ba066a596a434c7dd31'
'93e585133c7db362024023df114a9477938d70ee42345f4630072b04d7f73781'
'698c55f638514ca4c3f467195ba037ccae99661be54efb9ae81b146b118b0ba0'
'6132285d5bab7b31f576815e90d9d1dbf801c2ba95c6a08057c5bba89cb7aebc'
'438964cef9d2c3a93852cfac518a6771ec326e22f4741bf5b5c78a88a1198d99'
'77215c43b348fa8db691ebcbe3d06e0ddcce960b2c095afb0aa45a91e1a19d47'
'7fd0d075e109d5e1e189c0fb0412f62f73156cb217ada36817d7a71a358fbb57'
'463722a7e35e13439ead7e41c779757e9bd68dab6af2d96c56fcd698da7f2c02'
'c31aa331b6e9dd6a06d8c21f319481e7b2bbe682cd75bfcc06763a94a8ab83d5'
'473db5a5ac13dfdb26e3e61807a8bd37930c71f509b3f502d5bcd964611ac077'
'1ddb701796a406aea1b46319f8eefaf82b4e502f28553c232a60a3b8905f582c'
'da1c536d97a3a7eacd34f31c81c28c72db706dee34a7e26d1a0072cd7eea8ee1'
'602a8f375966b4bd3f3dad3a7e2b09e225e5eb7bd5f4206935727dd2ca8a6394'
'd5286ccfb38023e3e31a7844faa010ac6cb6598549e1a65e813bc5e6ce9df893'
'4208d3c5f2cb95c22d5b0d174a247aabe0748104265417b3f9f1a61e3663de33'
'98c08a676caaad383092a150e043210494c033d71fdb9d9abaa5f53c81d2b3f4'
'7ba51894ad02a164e1a793501e4985378a4198defe31f754aa63ff84125cbb00'
'fbd230fc17f8f0a2b8104887c2e31dad0dc93e7a98dfe9251ef3a8bae737efa9'
'd74a29d0dd7825b40b839b634ccabd47b5cf7bc26f438180033fb157ee8314fe'
'8145fb5ab6c21edd9050f3aa7a7971d0f8f9d0e75618602124ec5b89bf78512e'
'6e3032259d6ef87f1b421d3d89d7bdac665f68337c106a6df49ed513c2231a9a'
'bc4a5102c7e83b6834b6b4b9f20c812480f581a4e36e84b87494231967851b7e'
'88e037c03a803a171e9b65cd92818f75026ff66193a28eac12fe15137abe412f'
'4aeda176d5911e2519e2dde012a01ab705286f0fa15162e7c31aa30fa157441f'
'298830820fecf7d34cb8754db66075ba4310e1907fc094d92cecf021038933bb'
'84f102de3ebe2acf2a787981f4c6353fce88b35427e5ac04ff024acbf9c5e0e1'
'5d76586b296efaa71868f927fadadedb6feca001d4df837c624a84c6d0e6ccf5'
'f23668d7a809d9d1e669dd10e6193bf43751cb54ce61f48ff2ad1676c9f9f247'
'109fe65b5fe3782cf94bc67685bcfc80ebacc83f6a54f34b5c66566902917865'
'6a67f12efcc6ccb69160718f4da2e79444d9191d09280ffaf2bfaf7de87dda4a'
'7872c569daf7b02216483e13a520298957b90b9c325b10e0734b2a64b9cb4ff6'
'be3d1c5411fd71a9d3b65c3684e280d33865836f48bd4231c2f5b646a904e89f'
'a1f34ac223c129bf1b8705859f31d48f1fc2678ea918cb2e29861581e8995326'
'5334e08762e4f977e5baeab6bd4204568494e311ff91cfd6297b9023fdd82e71'
'0393e9ea2916972a74dbf2bb983aeefa28c3975ef7423dea9d526bda604d15ea'
'bac6decea83c9ef2237589378f1b159d92a37b877a08ffb9cf2ae81128b7ea73'
'e7981d8991948bc6add2506483fcbcd22d955bd7bb9a1829bd6083c3687ec0db'
'0a190c527468c403a63e454a74b0782dc3ea361c7ac88bebf5ac1655e9a5d775'
'd5dc10f906d8b4406af469254ebf925fa7ed8e24b8d505eb569602f3ba9d4f4a'
'8059ebbd7b16bd48cabd6312366d13279c145e4f07b94775d122873db23d2640'
'9e04c76049f43f9bc99d6dd19a20188ab96f258ea62288a6fb913a3752d76185'
'a08c6211777c143a4ec778fe35353e4659e59371db783519bae8d720ab23c858'
'e691cc18ad7d595f8b907dbb4730d091c96914cdcf33c2ffcb5192db1b3b6aa9'
'5a12bb46c1aabdaa4dab5818bc937e522a58aec6a765eeb77ac6321ad8a2f41d'
'41d3fa09e96ca20a2896ab0ccae97d4d3c597d7edf0c186e92ff8cc05d752dff'
'3ce6110e5ebc2e8a3c6352fbcd764b5ab0fe52b75d336b8c4a879bbb29bbca78'
'6e40e4980430b5e6af962c8ae45d99699675c450bbcdb90a35e7decf7d719171'
'ee1ecc6ce1f47fc509a190492c00cecd1e5ab0c24a937067ccb667105c0518d3'
'162708d5cb79fb54d49ae574498747c76acf63dc3c1459e0d810b462e22c958a'
'3c2722bb6d6caa8482e89916336bf6f897f12cc84c4718815fed9c92aef32706'
'efaabb62b7bbdfdc1003725f057e2c961d148e556844a85489b1d95bd7f2a8e7'
'b05cad6f4b314ceb0212f89f3e207bda51cb5fc138e9034222ec99002131d6cc'
'6012ce4600cd35460d119f40b453bdc298322b8dc5248d733f0b2ab50defad5e'
'0a6f25c83379e18f6d38632631d9335dd285239c2d41eba81a8e681e06f92942'
'4d00915991d220aaf8968d380692ff21103f6894d0d9295b38c63ed492fb8be9'
'466c44512d86ebdee761a1842ffacc32b2ab2451cd7550ccddb8f764ab0e6931')
|