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
|
# 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>
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
_pkgver=52.0.1
pkgver=52.0.1.deb1
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="https://wiki.parabola.nu/$_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"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'bn-IN "Bengali (India)"'
'br "Breton"'
'bs "Bosnian"'
'ca "Catalan"'
'cak "Maya Kaqchikel"'
'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"'
'gn "Guarani"'
'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=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/firefox/releases/$_pkgver/linux-i686/xpi
for _lang in "${_languages[@]}"; do
_locale=${_lang%% *}
_pkgname=$pkgbase-${_locale,,}
pkgname+=($_pkgname)
source+=("$pkgbase-$_pkgver-$_locale.xpi::$_url/$_locale.xpi")
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,,})
unzip iceweasel-l10n-$_pkgver-$1.xpi -d $1
rm -v iceweasel-l10n-$_pkgver-$1.xpi
sed -i 's|Firefox|Iceweasel|g' $(grep -rlI 'Firefox' $1)
install -vDm644 $srcdir/brand.dtd $1/browser/chrome/$1/locale/branding
install -vDm644 $srcdir/brand.properties $1/browser/chrome/$1/locale/branding
install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
sed -i -e 's/firefox/iceweasel/' $1/install.rdf
sed -i 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
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=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
'754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
'81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
'029fc0651bd93f0cda2212c6c77dfdec492fe67c3e906719e08c0568c7910871'
'2b2f70e6597ff17f73ff58de203aebcc95b96c0a342cd9197ec58019153ccf4a'
'20f2c073d1732638c52be2da43fcd2edfac05bc638bacbb1e1716d48866d9d8f'
'806a2305ef2d58af3aa2d4b292f0039c01a4ec0cf49fbf348cbb0e8f07b68e62'
'db8aaa8e13d1c2c4dab50c560b350b5eb2bc76b7958006d14e61f0fe7a6558ac'
'e2ff07c3e417d6af301e76e440a2b57714e184f0205112afa62931c8fa29a0b1'
'17dee736d55dec2102d62b64643762b0083cd1e55200aabad30babcf5d2b010e'
'0a6fedbcf892eb6cb4c6359020806c35e59298649615aba716a25d956b1281d9'
'42a4045e469612b95dfeab4fbba13e98829c7d9c55480adfffbcb5aead3f2377'
'8d249fbac3a3b8d56ce66cff77ddf3fdfb25f689d883e02844a703605fa0086b'
'1554f631bfa5c4fe588ecaad23676fb31b9bdb00552268d26cc8ef1a3ace1bd2'
'99ae42ef55232f3797d6ae67b04e91685ff1ba3cbd3da20914e6a34abc7ef9e3'
'0b0516aebf670a9e120c53feda203906045c7ef00d924eddc606ac6a0bcd7b3f'
'cfa6999036233f4c4cd924359ef2b472d620fcae9913fe28cf09a869ddbc8b60'
'a9e9fdd4897283cb0b75015545deece987bda2d27198460e266413d28c1f84d3'
'5e9898b2572ce9f6db692d619a833932d82cd5b4af99bd5d5456dc875e88fd05'
'660f4749c900c493740544f431511660591cc2ed5d66228fe0eb299b7e9183b6'
'bebec37753c90e4f6da1a9c381721ca2c5e3cb99b75dcacec4595f8f54abe61b'
'a2193543beed2889e00ca0835775f455610d7b70fc81b886c96bb4a2b29d911b'
'b0976e2521435920281baee7a263d38919ee1e85aadfec6fd299598f1399435e'
'f614754ccad18c5c1b43b11d7fe9d57ccc63065d6154fa3989941e9466291b9d'
'f7dd7d7f71c38e62a30c44ca09d6e5817a78e0b0876582f424d7d20c7367453a'
'8f03d509f1d1a3e1536e080d271c4324907076c621185b3ce132e95d165cbcd1'
'fc118fd2a50af7f319922efd373a8f19de8f4a8ad94c9454a1545ac7cb7aa880'
'178e9e7b7294a95a27d33ab2dd2aefa5c999177cf544d52a92a4390b2676a593'
'a0f8baeb912fea594d6ea326121332f9f5ddbfc1f4b28b0035cb424d728d14b9'
'd010031917b43953cd0e9447dc82b24ab34b0b503193d9b1b1e81684482fb5e3'
'4c8fc2cb9fd9b36b6f06c8caa119595d3431e6be851a23a1673665d0bbd9bcea'
'64d76452d928ce5767e3235b949b9f642d8c80b3d583d9ee42fb1dbe2855d0a2'
'28d4a27a5925c20444b2ed7a479a515f816139bcbe0a62f5cba1871638d48c2f'
'0ff65d4bdd368018629878cad89af032ca81fb4581fefc99e916ec276793f5a5'
'058ea4aac890057c4690ae563c31aeb212f9e08599eeb0e486ae5c443ebb1783'
'64c3f07e51db65496610165dd462b5f7f635a9d0da9ae6c7d591aa3620f93671'
'25cd690aa4e87db70f26705c77f64fc4536718b8357edef2ca9e9ccea2cdd429'
'028d8de5b61ce9dd1dfdfd4298700600bbf9ca942c5446ac7a0a058d699e6c39'
'acddefd00bb682c45b5e8bd2ea407d0072a6ec3ae18e01271349eba57d9b8123'
'bf8150a1de730f3c26f1416eee7ebeda5db1e636711f0c155a32de5d7ab6ee7a'
'4ae5beb51f31db834ab3f07be3fc8ee78cf8622005521ff1a6297a3ebf445987'
'70e25d258948142323009c9175363543fd1a56a2d244d7589c2e1ebe4719ff20'
'0277b94c3b22d1bc9a9cb8231f3ca45bcb214c159baf5f18c6a7972a3003edba'
'4f78a3d2345e2446919d48ab5418967853ad85198140ef80cefbc158d39d4ce9'
'5af94a14808cfda2fcd4f27ac0107610f5b9b9e246e974da508ed935d37d248a'
'3d0431cb1775c53a391c5730981575310cad7015f5d2b4d8db29b81af50548d8'
'e808079e6e92aa718183ceed3238786d009072881ef0492ea460539038776212'
'115816dd6a2e8aaad1fe11ab2f6caa6ee9446be7aa2b6c0eb4aaa9dfc185e642'
'5ba740203c5bf8597d54c5b08b66ebe10c3f20887346df225718ed03502f2fad'
'129e3fbef274a7209ff92fe5dadda6fb4c0df19ca35a248793757a3aa963f238'
'109de93f6b98d97730042666f3611c0a7784918d13eee432cc7da6d1232b683e'
'e015bf9cf3f188830578ce86b8087764ccdbc65967b8297fceb383ed82b2017f'
'9d24f7f413e4c2cf038a4ac026d2e878a1b50b70ec06692aca4980aef20f7e72'
'2b84aa6c6063cab0045a15f961c2e080641ee184cc8308e40032dfe2ce214cce'
'61e588fcde7915f650b9c6a310088b0d1dacfb00d80fbb0c983bd185177ead28'
'04fc05e1d265e1fbf810463e30f7b08709e3a488a928222dc1a2d85f884abb67'
'dd64999708265490f4350ca5e8eee6623a796e5575c2d08d823f8a921229debb'
'40c821651dbbc958017c6e1a8d0b87869d18b01ee31d805e5703137bedac7e70'
'7502570c0fdae06c35be72e3622dd0ae9ee753983d60b7f053df13e633b038d3'
'caa32d9fb953f9fe6c43cd25f271cbe73cb099bfe4246384173a030197ce2164'
'aa9205414f09d1693acf91081ab62547124f212496d6473ab5768aa46bda8279'
'd7e45f6064aa259e908ab0bd883f755a85d644a183f769ad2d00713d9938122b'
'7eb0decb61e901dd28dee8ca65c125722fe6fbe01db37130ff5f43d76dc7aa41'
'8ed391910a3ce09e39891d78161e08b9350b24219ae262034cbcaf60ac3ca4e4'
'5c50c3beb52f2f8d68b8b61493fa067c22bdf2e2f3ec42cce7ee190812147017'
'd594b450f77619b50e9a87587972d0fa8fb52799ca02b77bc5747c24fc3189d0'
'90c3e64ec584d8518410940344c0c09d1553155ad8f72d0b2bf4691b4af03ff1'
'3d5b76933658fb4ddd06bedeb631febf973d6897e1cf06fc9679ed492d802e74'
'9f059f634ac0b90155ac4d36ca6093cb4292f1396e9b94310140b1cd0d6f3972'
'99186a7d8195d1ff59b6a1a1262f48e9df09f40f9806107eec651b979084bea5'
'bd503d3f8a5c0c5abf13b7bf414416c72d45f6cd77e9a82aef5e3438e7b194be'
'252114cb05d1f3a79635c57a36ea3e2b456fffa9d68b8ec1bfb155dd94315f44'
'a66b994c045aa4f08c04c160fb061bed8dd7c5033421601cbe22420930d838ad'
'c00ab99b971047df12ce06749a2e9256654e29a1bc11ce338158eeca2347b2c4'
'f0f5998ef6bde38bd8f6d206eb411d8e810bbca80fca7b1251baaf5594901edb'
'015c0984be095b1837641992a690974aec3f8a1390db7cbd42492950017f2846'
'3f1cb4f2b10b8e026dd488276aad7de562310a804e577d1e5159d6883d4c2dc3'
'118c916f5e19a96de3e11f906281416729594138b4c29b77ded4454714c40e48'
'15207b0a5bebddc2eb8869016db16c42d3ee8de878b4a3a13303ee383d8a3bb0'
'613dc1410d3585e1aa7b0b1df8496d88d5d10e0d4277a5dd32edecbbdd939bf9'
'dcccf13fbfc8b876bfc16f4c5007779c50d0db5eebb98717dd5c0634c0694d53'
'a78d4b03e689f66cc4ee81dd2afbc87bf3e38e4b1283e918c46f3417cc537757'
'bb496776687360f38ef49a450a309cd0e84d6f3a4133aa2bf369e111972ac3a7'
'f3e1f12b1d20646652c5dd604efbad7bd7725720e61811377f2424d688dc97af'
'bd139bbe4063efb38cff6a731c6ecf8ca6cd43a3166d5f25cb409ecd75206941'
'd94f315d35bae66c1b34429963d63622e40af427b614a2ff5c6f1d603cf939ea'
'f3d6ef13ee194d91612eba86d19cab7b8e4184df4b59d54ddd23541ed277130e'
'72ad4075c151dc763e042a3d31218ea28cc410b8ce5ce05bdc08c12e9038b20a'
'3c8762cda05cfa3490ebae1dc8de2de32acd411744c14a91079dc77fc7117775'
'72926c26af2b0a37ec1f3825674e7a6b895f0b7226743c2eb55f606fc2d0646a'
'bb322f082686de9df551600572927175f6266cd7ea18d9a5a477f8fdf490fafc'
'601ea1e020ad8be40096cc11bb146dd0839dca827a70d900a7e8353032989fc5')
|