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
|
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
epoch=1
_pkgbase=icedove
pkgbase=$_pkgbase-l10n
_pkgver=38.2.0
pkgver=38.2.0.deb2
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/sid/icedove"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip')
_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"'
'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/thunderbird/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 Icedove."
replaces=(thunderbird-i18n-${1,,} icedove-l18n-${1,,})
conflicts=(thunderbird-i18n-${1,,} icedove-l18n-${1,,})
provides=(thunderbird-i18n-${1,,})
unzip icedove-l10n-$_pkgver-$1.xpi -d $1
rm -v icedove-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
rm -rv $1/chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}
sed -i -e 's/thunderbird/icedove/' $1/install.rdf
cd $1
zip -r langpack-$1@icedove.mozilla.org.xpi .
mv -v langpack-$1@icedove.mozilla.org.xpi $srcdir
cd ..
rm -rv $1
install -vDm644 langpack-$1@icedove.mozilla.org.xpi \
"$pkgdir/usr/lib/icedove/extensions/langpack-$1@icedove.mozilla.org.xpi"
}
sha256sums=('49b419449431d8d64e20427a2e7105e3ac1ffc41e677a5f9a8eb276f5b82df4a'
'acc2cf95661be7cb8928fca89e08d0681685409ff2428e4e3d25baf1af427b38'
'e6edcc7c478d73ca5a17e4889acd302d55201ec5c29de545d3f44165201923db'
'9098f6665f740fc371a5bf4dcdd04f729f30a7d52354a210e691292d09c9c748'
'd84deb50ad04d47895ef48496da0c8f06442575b16500eec79a57e42cb470219'
'2144494aa25681d9dd6fe123615d5b2abf3c6aeb76e9885d2a3eb05557958a22'
'7b180ca9c20f1c451f422a72de51dae5fbb7a29c38f63ac1b98c7757dfc00a4a'
'bf023343d9bae46779886304017486cd2cb08507d92c388da60f62b82732d61a'
'00e4e5d34419eae7e9f5a02a2ce2545fc509795c8c34eea7474ec978a076f54c'
'9aeee1bb2e8977883e1eea24286b2e4433d56f5a941a1bd6dd2d35c33403e898'
'ec642029803c46da7c6f4a6326c8fa076ff4fa93d190f1c43fb0a25aa03fd4ab'
'ab60a050b4ab69b546e2a2798debc432f179f3b456dec33abc4687aaf763041e'
'6e6c97a5151245124424c501fa6f5ef5b36802c4fef8d2b8fae858db5f758fb2'
'16386d48e2bcf83f3caf3a38555f05a5b419a095518249a1c4367f3dde31e951'
'8d4f8240c778f78a3c1a09c68ad7dc4ec1a5d522f6447a5788dc504a990d8f0d'
'26ac749beb090e13eef2347b9b264d385ea69995770abff3c883219ebb4e5fc8'
'cccc7c3957231f15075da844b92482e2820ed5a76779967e41749a7cbaa8c14b'
'741bb4141984b0d2f812e7cdead5585f3de055e124c604e762ae165f0550c09c'
'2bad7f085b2be607fb23e316e954483a9ebf33e3b53ceebc95f0c844c6c00f44'
'1f7c13cbb2f52a6396d73661cfe612df447f41438199f0089a7b9e0976ce32a2'
'7b94fbea65c3c83eed004de5ca3fe83b44a41b2896257a4e6f86d6b7292f525b'
'249719b70ce5a693101dd93d92c3e6eb4c538222f623a5effd654c096b65a7ce'
'169d338bd699dcc90f5e1e87e2aab0965bcc93d0ceb3954719726bc157117154'
'ff44e3feb26895a51b2d49cd89ffeea28070780c0d6a1cd996a8aaa19578ac69'
'abebe200c6f4349b2283b9ff580d07439f4e2349c07b3df811f2b55806191a69'
'1d41006e6f48585cb39b450f715da59db11e697624fddea8c03db41d1e7bde7c'
'a7cd4e81e55843b865eb3f7489022e76e2b20a81a666f54c5fb2ecde7cdd5ce2'
'ef38ee1792936cfe31d7a885669f206a8a8870610e8d344d37e75649168a3471'
'6dcaf1b2caea0dc059481ce4a91a81ecf59f13a1998449700b1e159203144f4c'
'fe2548abeb34d5b562c0c9dbeea8a268a01112ce7a24303077b7fc61e273c13a'
'd0aaeca9daf1f4366af1093d756972b5ac95c173eca4fa2e801f1cc5cfdea136'
'56c17fd8383a246d6b0c787a78b79267a08dba2fe959b8b00979900c974e9985'
'b47b617e0b521bae29eefb7268253ec87a16a5c0d39b60d3a7193eb8eb6580c9'
'1876f8c429e7c892333a88ba300115d4a5c163f2f2ec8cdf441ebefdc39f1e7a'
'dcc3d628212b921e2e4836dcdfe6994a70d75b7a2712b283d2277660f8549f85'
'786694c8b4d64c252c338a29acef06b787f95c74d90af403d61ca60002775cd3'
'c4937083d159697b068d97c1f60d1ff988f50ff2a0c330d78c51d03c10f637b8'
'c3fb6a4d1953e9ad235b996477ab097dbe7e7de114713f8f18df98e39e3a1bb3'
'bab8d740b889f2de6c342da09a0e1781182f45d2481a03aab769cd635e3837d3'
'841b9ea0945a1334614b335e01ef3fd9c812c13ea39fc508cc060b13aa5f2fcd'
'a237053483f81b7ae53cb6ada04a8dab0ea1d840de33ab4c0f8453e38901089b'
'944e1ce71ac7b79f274bb273f92d493a83b3dcd774c5d874add869db3dc6fbbf'
'c91ec0f7a4652f260bde662bfd1fe73dd6ba067a4e4655dd008d81a67736bc61'
'4f2b78757594d919109b22ebe23098d724147035822f58d0235ae071f91ebcc3'
'12912d7eecb1bf47b6a68f9089e9157cb0df7c25ab688681c9da8f6f8b2c1650'
'3cfe6d0dcc70ac662d07d2b8dc446bf37cab39719e2276b87fbaa55126ccee42'
'0a7691e4bfd1395d39cd4752954f687de4cd11a7fa541eb90949ad93e497f151'
'e7d119cfee6180b5afd5b35adf8429f94fe50b3e08737aadb0503395df22f7d2'
'ac800282f8096fb66e235f3918254235b45768a1ad2f202b344db91023435a2a'
'401b14f056c84605a2071b182a57d42853976546b01974ba5d69e9d813d29299'
'37ee0495c8886cf17f95f4a153d58d768763778e429539cb8b657ce9b72ec0d6'
'5e23988a9ed60d301edcf5bcd384a7788774a9473b75d2713c7cbaa46de838b7'
'3139466f0a15bd888656856a1a4cf2a47eb449ad950adc190d975c099c10a390'
'a3c8a7f2bda919098daf6d3277a5f4ef82e9eeae7eed54decba302ca6000c47d'
'b308e65ff10ad62091b89eeb9fcb9e6e8d3c76ddf0de32b6a9ca3a4101552816'
'ac7f32d19cee21c16bee288883091fc50bca8bc68b0b28fc7f768ef3a53daa12'
'2063f17091816acd829caed8ba091c900df6638c8b5cbf2873c3b4fb83124e8a'
'776b376d5ba62a9544bfd5689922a84e17cb30546e2a65d54597927af6decd86'
'21f4a2f7530ed099577a199e4b1529c3bd34a383b4dd76b1b78f41da155e4cf2'
'030e2d1b57e3d0b547aaaa5230e00d0f42e62028a8500377042e61b87f332e32'
'4f0750f5b53d3c961d4b972ff33953c89bd0638282f03eedd0a09fcb647dd33a')
|