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
251
252
253
254
255
256
257
258
259
|
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: 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>
_oldname=firefox
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
epoch=1
pkgver=54.0
pkgrel=1
arch=('any')
pkgdesc="Language pack for ${_pkgbase^}."
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"'
'ka "Georgian"'
'kab "Kabyle"'
'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/$_oldname/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 Iceweasel."
replaces=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,} $_oldname-i18n-${1,,})
conflicts=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,})
unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1
rm -v $_pkgbase-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@$_pkgbase.mozilla.org.xpi .
mv -v langpack-$1@$_pkgbase.mozilla.org.xpi $srcdir
cd ..
rm -rv $1
install -vDm644 langpack-$1@$_pkgbase.mozilla.org.xpi \
"$pkgdir/usr/lib/$_pkgbase/browser/extensions/langpack-$1@$_pkgbase.mozilla.org.xpi"
}
sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
'754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
'81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
'7f783745298e65c347f39576d7f4da212d9adbba7fef8e90bd0038af906b4f31'
'8f21ffd7cd10fd05c738a8bd7bf6b4d2f6ff12510385055bc3d81ceb7f0af882'
'1d315794e2cb960ea6c2eadca06ddfadd657eb85497f3b294837d1ff6b1da2da'
'6292715c142f1be1254f643fe4a75c17539bb4b075bfc3d38b3a1e74dee4753c'
'f51af18c50e6a167127f702356adc5de6c6d05f732c139b255888349fbeb647e'
'40fad9c18ba04550705eb8edad2b0335314613a70ab529f79d003ead0e6e086c'
'451b7c74701d02232623b577270b1df32c0651215484bc22213dcb303972634a'
'4502e3f5cc05a3f21a4dc51370fcf5f2f895f28bb3af9e1046f62ea6963fdd14'
'e53170b49837a6d50ac01a9c66117911aa70af80a8c5f6a27e9c7b54c608e25c'
'4b5bdfca1440d6b6bd32ada162d0434ad1f1ad29b4b6862a9d04e70fc435d821'
'b53d4a2f4006ba6c10d169cb8e22ae3477f67b2ae5de0f42f3cf59dbe977136a'
'e90f46df8efe339966cdba9779fb10489c2a85eabeab888c59360e67d9b44283'
'297fe08327c58e76beced92ef3d99662e616cff4f13b48f4a88fae010488cffa'
'b06f1e9b47ec9bb6fcfee5c6f63285bb46daef5bafe4dfc6a1bddf7083a2c825'
'ac29ec8e63bb16482cdcf868f879aa91d9f896766d7ad799ed20eed0b6fca054'
'7181795e00673ed6a47a08f7823c9ff08060be9db32f7a2be8990aa87a2eb9f8'
'56778ce556670dffd2d5baf1396e991b19cba494bb30c4a6f82ed2b78c52cf36'
'44775ef605e4d57c41eed99613d2eae2b9d0e53c642be91a90ebf8f43d0eb50a'
'95ed7b67a85bc1e937db3c1bf8a9041697bf8cadf90a2533a60cf40b9305080d'
'6bb35d24d1262b65f5a1d39d0f629ce51202197ae5585d708750d243083da869'
'b33babbb6bfbf6d740158bdc576b4f1d8c3fdd4d8fb23aa2f0cdc1fe9051b179'
'0b03dac051a6a82165882106094e1bfa0ba9f6b31f17f033575dd9683cc032a9'
'406e1109a9eb58c5c10fbcd329414ab731900c98199d0873e7cfd4a321e0e878'
'e02532f575b2fca711119812e733c657c5456993d4f046fed88cdf88d88443d6'
'ad52c7efdf58d8a690c7db4d1cb19c5d5ac1bfd435ade9eff6125ba129bd257b'
'55fcffd87b1b481b86f5cbfe3415241b69eb384a296a59e8a47cc009841fb0cd'
'925cb493c9a773b3b90de7adaa8adaecc0ac416dcfc0dfcfa7bbe631d5d89d9c'
'0433d137dcd0efb5372623f091c5dd6214cff27b39d1e2717957881c41a288fb'
'10f27527f61337929a89caa36a5680839e4d9b446fc3098db921747778e1c663'
'a90e8bc05e12809763efc89b36d8b141d979b7a243ddd666495ea69c5b7ca969'
'0722a962e8e96db6fdc0272ed95bc76396c040eac60ea19b846b4e913a879e42'
'bd29a7aef898c7f784682a6dc7832d7464f3dea7a44a1a3bf06e826996b6c938'
'481b6a5c9526622f2e2deec64a671146d8085bf22c9e43d54ed0ae3a5c1560a8'
'daff81d6ca8bc10a2577461b64454cb8d9ddf4c64672ef131bee614d13a157c8'
'c51621608972a81f032bbbfaab0a7f203201c3c7eae5ad5237733db5b133252a'
'021a86749b08b16ef6c2812a280675703f72a696112caa65172370b00a0acb0a'
'ca7601a3b8c20477072681af474958af447c0e771bd15a796212d58bcbaccd70'
'eef6b1e2f5889799a9ca4f42ffc9a5943b1b7a3e0aff6d2b679f3845afdf0686'
'965632ef1b87528cec4b22d21340a938b86554c63187dc062c14b295ee04b976'
'2d89112472e65ad8801393aab669e7ccbcc83a54205113f5f00dcccf3ed46789'
'769e7c50cea5e8bd1d3214c1c0c509ab7f6edeee19e587846fc1b9905eb82404'
'45069a5493735e4b8856c1f34c00d543b11405aec9eb6744e861035fc5e6e315'
'7555bbbf2e060acbdb2538b12c857743a7abbc5e3ca0a3a868545f61698a5f5d'
'4bb60b51acac017c3c3cc0524182a6d791acba8b5a9601d78fa1d882acbd5258'
'59eeef5917e20a80d76f3fcfb73fbce6f1fabaf3856eb76c42084831d095bf4f'
'08cd87b9bd9ec8962be05fd183dc81c88cd869a316a78e37f4349423bf637e1c'
'e90873350cc4629e6291059f347c13c494b087b02d24c71978f7dcb55a4cebc3'
'85f8e6b62f8f095eb5aadd53297b00156db484bacbbfa8cfc8e9858ca9b97a5c'
'2c4a202e18abb9a6ca440b7a1c95dd702644f4146b5c5e6ed01fbbd2ebb7d4d2'
'9a2a44a59a3baebfdba32a6acce42a9d0e191b510d8b85a63dd4b8df80fff935'
'57b4243c229990a1c7e077cc4cddc1b39b70ad8222cefb3a5ee31b331386ddd6'
'23a2efabc88655768036218c1810308ba83a5fb4236dba548b67ad9aa5e3f08d'
'1aebc18f5eaa33119c04d573b2292a4879398798c7e1e13a27bb06204df81236'
'cc763200afaf9dc8ea905df9cece16107b9de18ad287ac649cba2d5f49f5f0d3'
'd0f50369a6ac5da6ea463c4aef2923f3a9ee6b7ef7c456ef98a6219a54cf60d0'
'37a44a4e8bfebe5dd1f1bef894606176aa993c1d68b4b062dc0315d10ac16e64'
'3a7933758f05dfaed5f8ef3db85f2a24542346f766b6606b54d44992ee450645'
'355d7ac647cfa17ab2ca89e5429f98f5da0983e9a060c6f6e9cc17c8d9eb2dc2'
'69ee0ea0b565e923e738268341f25b3529dd99f9366cbd00abeab695eaa0d1a0'
'cd475bcd0aa8bb981804cd6eb3365ba9187029ea70e1f1c96d5dde1c3ae7b980'
'377294d926f09e59667f2acf0ac867f3fc1f12668f320f448b672109eab99d01'
'cb110e4a1b55a190a875e00bc08efabf9d52228c9ab12238c771af2157d414f2'
'64d18d7927d4bfae2ffaddb559ad5e74b642e72dabc3cb60052804807891b015'
'5950945e46e21891ab53f3bf5828888f132a056ffe5933a1acae94c031139015'
'efafebc209ef2d81e09ddc36809071064ab0ce2cbbed77adb621341d9d66962c'
'aa9fe3c007e84bb12267d789a41fff32caa235d6f242fc9ba7ed86da8d942968'
'882a058faf72685ea0ff41900b57ff5eb0d97e892072ae0521ffbb05e4a0ccff'
'708a93f11bc6f71c1309da18e29ea18fd5be7daceb908909788766e22e336ae0'
'55e98f21d75ebe69b57eefa4ae2a1a32f60d108fc7ab4177138c77bdc32ae314'
'3012752259b1043d55b71418eb23c69ee74230d39c0f5c336c6471b41ac2a60d'
'ef23036aedc70ff1c7b35890c9e8bd738da7df44d71f91a4bfe3d5c4206d6cad'
'9da6b5aa0f36e94ff7fb7bba94c9caf43614a985e07cf64544a92596a3acd874'
'0d8e67d5650d7331640ea54c20572e75af24f08011ed4d10d9362a4ca64c1c61'
'7d48ec24b3edfce6da4182ab194cbc3051cea3898aef66cf8ceee20f50b275a3'
'c4d107b88feef02fa1a510389102f6de58c372ecb7600c51b4cb6782f277b91e'
'653e6314e92b9c7f156b5e57153eb4002dc6e8826c4c5fd7904a2cb8c0b37963'
'478effe7b9e5e2328f47d9eeca2373af9bfc34293a715da482d89e7cba732379'
'5b2d34ddefda99b5420f94dd2bc1f52765a28cf949e317e9f2d2580bb78cebcd'
'a6ebc9f018ebff9ba6d7cf5302da772f8ad118489b05e44d64dc86331a521150'
'a19a8faeb8a28599dac9a0d2ca7432c72b12d5efabc9e5e4a696a46c5b8756d5'
'a706281a42662db287adb9351df8a8d0b516368442063d5722a31cedd2d49044'
'6055191f2b0aa12202630d98de3068e19675b05aa3ee063aec39d00a02892dad'
'ed574652254367b061ffcdb6a802ab8a6ccd7c3a30827ba90a3d141aa202c86f'
'9e6e718564ddafd81b0dbc52cf9e91c06889ef5b8b1b270644985e6d02fd1f4d'
'd25d08b7179a994b49dd6c90ecd2f88782b5fe16ade39b61be0a5e17461d7bc8'
'57d9f03344ddc87bf4ec33406f5f22b31acc5d9ee821fcbe64fd288805c52038'
'cfed556b32924b48084a0645bd30ec12c5de463edcb4bec1f349be08f55ba1e0'
'a7d2c2182b873c694a19d48638cd72ff11c2a9c0dce12ccd486727bbf71c5ac1'
'eb8a9f2177b5649a1227f1e850d1bf546bc3943ab5b5b19d587de49761522146'
'bf99aaa4576ed39eb62ab8ffdd889833fb97c3d827bb374d2b71aa09fec8c04e'
'f066b94bc64a66d64848ccfea5989cf729c90023dd16a472a9f88a40fde1d493'
'd2eee4a98157a120c112eb3a06a4bafd154938f8190d63ff1de48cf5e8f94a5e')
|