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=47.0
pkgver=47.0.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"'
'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"'
'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'
'90d6783f1e1a8b56fe4bd9275ea00c194bbc742148eca0a72136f791107f6b67'
'63242ab9f9c417a16a67011bebf561a8ff4d464b5b7b875ea068133199215965'
'f2745a4aec44a791a07b0055de10258dd92535fe8e34372875a2b8fe7ce94b59'
'b918866a4b2acff45ea383e128618512a80eb797a5aecb52321f38c25b39284f'
'2ccde82a79a8e5794ce3b39ddc27edeb8e31af6613ae5f7304737e7b3c1a7d21'
'bb9e6f535e748dcb72fc1c7930b14eeb7661dd8424c853623a67617ccbd45e3e'
'f519a67eec1cfaa33ad2b821feab03b37b7418724574b55790c7e75b678e3592'
'2cb8d03c904207dbd8b3de78d68274796459985f68b542e00d720fafac89262f'
'25e7360aa4e4724727033ec254fa61fc4ffd32808bb327bdbcf2e36b90820eca'
'58250cb374132956921781ab6b2ddac112800ad33fc42f4c10ef112b42d1b2d7'
'6bd932435431b526723689e02527e25059db452ebe787ca4e87089076db55977'
'6706b2b371d092b803e554ffe5c38ba63bd23ed5e43b91ceefab4c186ea3d772'
'1eede930802298168b6515575ee501d7f06f6f432abb3aa64d73ab5fc0ea5282'
'02cb40821769add87a25f13cd47e93385ef02bcd8747b68ce5ffa3d4e294e675'
'7a8b459b22f15e0b99d27b3f6a1d71eaeab471de8629c1869e635dbce80a61dc'
'20c266cd28c926d31a36ea6497482286e680f78aeb5f9a6c097767002f98150e'
'09ff084b5348771f87eb435f5b562908e783183c66c46253f6c814523f92b31d'
'269c5109a80653d6c99c431712517de78e7951332fa7fdcbc65a4a7a293f7ce9'
'4cf78e541c17a5ec0cda610f5e64442f0a77a1a8a846d9cf07026aa3d2b50879'
'1b0797271bfe46c9c0a824a68bd0d09576185ff20aefa5c947dbbd52b3be6505'
'd2e9b4b39c4c1f4a62095bbc44957f9e2d89d03275edba817a66b45ca90b0825'
'624e348a101c4efc39c299da7cc8aa2d3568ce5ddd064a78a91cb668062e86f1'
'0d62974e28b8634db7682fc3d749c2e12cd5ef5455076c51dc64f858613ef1ec'
'110895f1580d526e814fd3fa62a29a82040fcc83dec437d349bd809a13092c0e'
'f2e4edb6a1fe6f6078cd61b63e70804d96b0fef93325525a3fd258641d83e148'
'91eddc7c16498db30921afae2476b5d28d0acc4d515efbb8e1c7e2dd7fa21c8b'
'6dd35669516cad479782051da63704cc940d78d08a3f444117dbc873007ac02d'
'978722383a646c1a05951063bd8c0478c0b7d5aac93615f079174ce8031ad121'
'71c55fb4084fb2576f2b7a0725549ec5ff155f5757b9871f0e77147e782172cd'
'60c3027b449d84a8d29a1b063f80ab2c8d2017c097f71b366036d6512a5740af'
'81fa9cddc027fe0846f06c193dde6f250fa9c61bf785ffef3557ad3ac19fc301'
'a7dae5cddd0093641e0adb2b9850e581e2cabd3ba8f1406eb67a828eef2fcb26'
'ad84aca0207435dc1bcdc89c7dbf81f7bc657ac10fe80fd6f5f3590662a9274c'
'01e4b12846f15cc47a0beaf1817c5e3b12255f12aed7d344670c52762cc28734'
'6bbc5beb0d0b37e297f893e8e0253c3194651a16b3ac5fc5e57921da0dfb54fc'
'6d828eb1e85d3ea45753bd7c2316b26c9291cf941d47426bd821734c6992f095'
'520436f22de5b6132f236f1ebe1498895c85cdfee23333dde62ce5a5cd020a7e'
'dfec89249ae3a7f66830e78af88017a2ef726d4493efbb9719762ebd04d6a6a3'
'f819bd9878095f12bbdf76dbb793e27be4f882f3cf3a9d145e6b603db013f47d'
'acce7b941d248d8e733201c235ef65362b8001a59cb51d4f80083017a1e13bd6'
'68a25bf51bb0887917aa129e3f57193b7b7055469bc1daf38a056f138804d3a8'
'854408302d28fa7fb1e9b472b47266c3108b69e7738c314ce8c9a66e1c0e334f'
'2471f4a8c09a66663c5f8168dc4d69650ab3cebf5cedbcd2132f255a1d17cbd0'
'c9b090616464220b7015188299570b07f4902edae63623ea050c9542d494ea23'
'8148372d3bf6443b53adcf31c0ec41d998bcc28c0ed428b6387510beab4e9cab'
'c0e4a8254072144a5fb1b36a55307b957339ed500e6416e24ad69a4b610752d9'
'1a20cff2ba6044314153ed7a9c6dc892a5385f074f9a1ced244a8fb8abf9e223'
'28057739849ac9c483742483ecff9acb60673418375d25d0739a8be8841aa537'
'd234a9085b933a44dcaa531957bda580b3d29fcaef39278bac7d002356b1e712'
'74461c9edc1b950a5f69b66add3400ad14ffe59c65ad3789e974dbeee39510ca'
'dc2777bc4f46390c3aad32aa8bf6badf2979b071fb1c6318ca66c9dea54527ab'
'3b39b35b6141833fc12130ffdfc5152ae0c02ac1ef1247458cd5ace64cf1b7c0'
'6a07e6ba259e074d2f6ed83006b7b1a18b212cb599363fbc10ed4df0d9b605c9'
'13ece3a5fb4e5b60c30f5c858b4998fbd615725c49c9a364ca227e509e96d508'
'aebaea07258eaeb73927cd3215bea560941ac4ff7b0f988f6ceedd2b8cf02f29'
'bbcf7d6ae4c40bbcde73a881cffe244b0e80eb6515e63f40ceab734efa62af72'
'613af296d5ad5fedc2bc73f7b89afeecccf4416946960c94bfa1e4925a07a282'
'be53087229fb8da59fbe3b915c86c155f0acc711a26eefdc2edba617b7487cfa'
'30b32ccce5167b87ee00b714744a2ed2126489b929bfcf70465ab8eb8e1a381d'
'6f5db218d97a92525c6d60ea061c96ad6254c017e454b027dbd9496e255dcf8c'
'357c17cf6bc1424b58bd109e2216f65c3682ae9a05df2156f6e418e74c606ee0'
'0e3e49f4c2e300202b9e26d638ba05237e604b323c3e95a38a19ba2977bc20f7'
'1ca808f58ee49d94958dd2739fae33735fcb888940107b1c1b710364f668532d'
'3461e96586f5a47c1bdbf55b20e8e1c2b3985c6c24847be0756f6e867809fd8a'
'af0b8f86e3e173a98dd97e39ff60d09d8264fb7c6ecca47793cad52c00ba5cbf'
'da805823c10b95f6149232d37bd1fc40da562fd1068c3c5b56562fd605ce1df3'
'1e47ca5ea31b4f22e11fd28ce1f3446b33fff5b047659400def022bcf163343d'
'48bdeb1eb179518061d350e07246eb32cf26aeafb3cf8b58ea9e66e4fe79076a'
'93c6d34c021961ab28a6f17d00cbecdfb93e28f44f16e205713bdfa58a941189'
'2b0e71c1e0d18fc89cc07c836eb8b91de1e570e1fc17625a4527e2afe819e8ee'
'49d22ee13d7966bf5655447f3962214ab27a59b1c3e278b5a1d99014832785a8'
'b012064bab63da49e9367fa98656365f043f6c696cf07ad5c360a2e32e3e0a36'
'ec6a81d32d5e8e3e6b12eba7c5a921e274f74173e0ee975b0453682bd049dc00'
'28f1f60c17120c8359c00ff9ef2ec1b62b2b380965fcf9a792615bf9d6852a70'
'808e91c8ecf181250ce6c0ce95f4404e68014bbc122ec953d63fde5a13d80e31'
'fb9b6bfcf0a87366ef4418494027ec4f3288a96d291e5df2d5cad838bbd63a2b'
'981c9379448c6047c9202525fea0cca7ce1af7a801006b94909362c2879268f7'
'6e774d8e0f036f783e7d4db2b14cdbe962bec907b92cf0c7babaca14e0f002e5'
'16faf547324a7fd7c89dc10ecb83e9977ad1cb04325751f2b457e1e34da1f4f3'
'c9ab481fab0723a4fbb8e37b6146264be7db5a38318a34db52c8c7637c176721'
'633f48a4ac4ef981eaf88259771e8ec7968ede0a701d3f71bb70aa8c8e6b9928'
'da62e1732168c86192bd00e475f5edb5ec4831c7fb6dd2066b95c189b0b0bb80'
'939e53a11429eab44f365fe7ee7f893f421bd26358259c3b5c84d0a65b24aad5'
'be577eb4f263238a33b46afbdbe0241eae64de18cb386815b3740c945fb220a1'
'9e5ee75e84bd299656983b7bce2b56626c3f813e44ca7e228ca89b13f87b6a14'
'c570a462781c0fa5020fd4fea041f19ba0e6488fad8c71203c91731676560c81'
'bdd81444b045b09b0b1ccafc4dec8c2068a66d8eb1f47b3438e5b1fe8628ced3'
'a27f813cdce29d262f718c5d6a7c1ab8079710513dda8dc8865f5fd39bf2e217'
'78472471cfc53ed7a3fe0a089a37dd23624f52c16a54466beb28dc368a52dd8d')
|