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
|
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@riseup.net>
# Contributor: Márcio Silva <coadde@riseup.net>
_oldname=thunderbird
_pkgbase=icedove
pkgbase=$_pkgbase-l10n
epoch=1
pkgver=52.1.1
pkgrel=1
arch=('any')
pkgdesc="Language pack for ${_pkgbase^}."
url="http://packages.debian.org/sid/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip' 'mozilla-searchplugins')
_languages=(
'ar "Arabic"'
'ast "Asturian"'
'be "Belarusian"'
'bg "Bulgarian"'
'bn-BD "Bengali (Bangladesh)"'
'br "Breton"'
'ca "Catalan"'
'cs "Czech"'
'cy "Welsh"'
'da "Danish"'
'de "German"'
'dsb "Lower Sorbian"'
'el "Greek"'
'en-GB "English (British)"'
'en-US "English (US)"'
'es-AR "Spanish (Argentina)"'
'es-ES "Spanish (Spain)"'
'et "Estonian"'
'eu "Basque"'
'fi "Finnish"'
'fr "French"'
'fy-NL "Frisian"'
'ga-IE "Irish"'
'gd "Gaelic (Scotland)"'
'gl "Galician"'
'he "Hebrew"'
'hr "Croatian"'
'hsb "Upper Sorbian"'
'hu "Hungarian"'
'hy-AM "Armenian"'
'id "Indonesian"'
'is "Icelandic"'
'it "Italian"'
'ja "Japanese"'
'kab "Kabyle"'
'ko "Korean"'
'lt "Lithuanian"'
'nb-NO "Norwegian (Bokmål)"'
'nl "Dutch"'
'nn-NO "Norwegian (Nynorsk)"'
'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"'
'sq "Albanian"'
'sr "Serbian"'
'sv-SE "Swedish"'
'ta-LK "Tamil (Sri Lanka)"'
'tr "Turkish"'
'uk "Ukrainian"'
'vi "Vietnamese"'
'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 Icedove."
replaces=($_oldname-i18n-${1,,} $_pkgbase-l18n-${1,,})
conflicts=($_oldname-i18n-${1,,} $_pkgbase-l18n-${1,,})
provides=($_oldname-i18n-${1,,})
unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1
rm -v $_pkgbase-l10n-$pkgver-$1.xpi
install -vDm644 $srcdir/brand.dtd $1/chrome/$1/locale/$1/branding
install -vDm644 $srcdir/brand.properties $1/chrome/$1/locale/$1/branding
install -vDm644 $srcdir/region.properties $1/chrome/$1/locale/$1/messenger-region
sed -i -e 's/thunderbird/icedove/' $1/install.rdf
rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
rm -rv $1/chrome/$1/locale/$1/messenger/searchplugins
cp -av /usr/lib/mozilla/searchplugins $1/chrome/$1/locale/$1/messenger
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/extensions/langpack-$1@$_pkgbase.mozilla.org.xpi"
}
sha256sums=('49b419449431d8d64e20427a2e7105e3ac1ffc41e677a5f9a8eb276f5b82df4a'
'acc2cf95661be7cb8928fca89e08d0681685409ff2428e4e3d25baf1af427b38'
'e6edcc7c478d73ca5a17e4889acd302d55201ec5c29de545d3f44165201923db'
'8989418e122cc3b92d2691e74db44cccfe238369e02e66fbb78832620978fcd3'
'44c8f31f8f6fdb34e5287e0bddae18257e85f5962b68be3a1f3a4c92ef5235d5'
'f48fde4ea03dcf4a257f13cb2c3c85c9a47f12e846c027964b8c89a62497b735'
'36185e9fd2f82e422924336a331cec03b7581bab3411237e71b45f89e5635fa4'
'6a85c7568b7f4ff35becda3ba679d8eb85a4c00aef8836b26edf3bffd3383435'
'f59aad266c68c72fc55f56869591680b4c7fa433cda06d66c0eb20064edb6dcf'
'4e1ae4b5bec308de0042373fda1f7202df576a3ef1edf574e805edb2666d3ff3'
'de56bde1e43551b20961fda8e1715a6d805ea9224b60ea80bfe3bcb05894253e'
'195db139fa9d56e9e74e7dda0a541adcc5d199786f460b64bb6f510e8dbb5dcf'
'e3f698c3c694566ead0a740bb56f6a6c865f349f6affd8608d0492a1b9a90a1d'
'f23e5c40553c9ea9dcbc3fdd04a4a64dc751523b5431279e5d4af592bb21f48d'
'a9742e533a925e6753d7d1b5bb9408d295bc5730b7c106824260f0194f70b2c8'
'7a3910110d3e6cfbdca99a12b387ddd1f3fa37a0589c9571626271eb30363230'
'a53a70c4b7e184295130d54774f4fe079ec7ea4986874aa2835f50cdb59f0646'
'761e992ae206dcb9d216886ef7ce7d78b2a3525d87aeac7a108ee8b08e0ccd5d'
'45b58b0aad67eaa25d23fbf8c15dc800b349a253077414bcfbd174c37c31ccb9'
'29f8158a9e20c2ac464bca8e2875fd6155b2f8fb34cec03d38faf5bbca563d69'
'574856171aa7c02b21c87772888c14bbb540eaa048ad6752e0030030a838aa9e'
'59be73eafbf4cbbf51318c75eedc48a157b8c7226640e39fa79a0cadf27cd0ef'
'0f3bda7ffb6b9612b1dad155862cb5d5aa018f151755db33f92da93de8765c0a'
'309ef19ab2f8908461be3169effa5091059940577c6ad733b1752d58b0956f95'
'bae2d16a97756d9458b60d84ef73df94f040ecc39213abdb45e7f4148d7b214a'
'99ee91424007f96ff32f8fea1a38a3d79ff0f435c6c6fd0e22db2708e4cfc694'
'd4cca6dabca20202be03bdd7f734661a3edd1ad1db3e1fe9c9e1ebd0fd191138'
'7bfd0facdf087912c129972e5ebfceb022dfaae6d391aad1535669f35efa91fb'
'464862f5df1ee1ea2baf2271f38ccacd05f06ef0bacf036525da5309391414a1'
'77b5e1354eead17606bd0953964c2b0635018a6d0d8bb29967fd7ef6ce284f4a'
'68a06ff1f01b4108c7f0509370d13337b29035f3c2c539dcc3e6152fab10f88f'
'2bef50fdace350a57579b10cf29ec11af6cd90e7f526bf74dc63b0118ec32a6f'
'fc3885a3cabfc8fa987df6d28fcfa25b8248717259fde1a30d4ad368805a09c4'
'c490f42ba64d7b0ee64b0adc130428f8be4febadca4538a8e6dd821829ff99e8'
'e3aa6a97453a03db3861244146ec7ed5fd6f7d787c78bae829460502805b9ae3'
'02878743a1b033e7274b32468f3549598badd41a73760e881c660eb02115d685'
'790e6aaf84525b87e6568d9aa538d55be84624a513a7102e7c21e77ed5b6e2f5'
'2753d87b1cda1b89047a4e1dcbfc2a3782a33d606a2bb1c6e261a537ba7e0174'
'c83d44349445a23dae904e4ca4636270e0333ff7be8581b353a1dfcf1b062bc5'
'fd77205c5540eb04717d86a7c65f8e4519f7594e9343d7683bddb3def7b19806'
'4f3d71463d2533677e25975a1a6028aefab31fc4a1ddb8515afea0893c26d621'
'36c3c9739db6e0abc2eee2841a6137caf02c8bbbcb1b2de2db69adee417dd121'
'2672106f09d1a8c55afbcadc94ca5344a7a128a47ca3bab893360708a2332d7c'
'111c9b043021a3c078d243e0ecfc77ce5b96801368216934dac86ef1c623fd8e'
'900d859d66c4f05c1a9db5df9d19682b3ecbd05001f3dfd888e9e833d56d63ac'
'3ed1a5554e09ada1fa504f56327e58cf12559695eefad71c011fd829ead4f184'
'9ddbcd520d1d56200cef0933a5a0e2cfc9a3555bbe009b2d883668b2bf617804'
'37d3e7cc420431524b0252048a81f987d44848d29d433da1297f23f87a2504e3'
'7da713a9624ad3bb504997f3161976d6fd92f960879872ec85cb47a4aec0b551'
'f03fb4c40f4ce052c0b709ee101b4ba738b0d1f5e9724dac7de08bfca816ac90'
'147b98ce414b8570f9d9ade1423487ed2a1801978b113b9d10cf506783c88a1b'
'644e60ebbb42e2bda79681bedf747ebaea7172f91739190985eb44171d3a0d95'
'6191e56b2ae8e0617414ca5c3a6f22056596983f45439cea8b01ad52d22b5376'
'942458c9049c927b9287f8dbd1fb17bc944e7a6c90f181d2b050709742741fdc'
'948b10e7311a5e6907f1c606887f29d69cfa86ed4c9968690e0456b102ce95a1'
'4d51f169f6c7c780c42ef4f330cf7b518eec27f13816f4e9e3358d4bd011564d'
'3a3537d063d5ec33726b4feef86fd1f84a37ef8004647bc2c14626cf0944521f'
'8f919bef670da5a1fc99a42a3028be14a818764abf4b821ea84f095b65d97a06'
'798cd3910ef1ce076b1afe0007ac33a9791a466ffa0b7773d4c6f141d72cdb92'
'26f58c791d9c20696b265fdac8e463a1f4a4c5187fe28fc18ecaf7c6511e5d69'
'628dc0c2565586b7ea9cae3e72ae6d6b285f57bcabf3304070e78b59653865f4'
'706882e9356551b2d9e7e26e89ccc3bb4db76278f2a71a20c7c5fa6b79a2b710')
|