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
|
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
epoch=1
_pkgbase=icedove
pkgbase=$_pkgbase-l10n
_pkgver=31.7.0
pkgver=31.7.0.deb1
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"'
'da "Danish"'
'de "German"'
'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"'
'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')
_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
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'
'fac353e1067852ccac7bc23a958c54fdebd2aad30ad9551a07deb23811046d79'
'4e39fb7792c7fe787bb9d9f3a03ac57da15e9b353a51f1602afcffc3e0e0ffa8'
'8be5b81c0a747d89ff9f586d726706718711a01ffd70ecbed9fe00352fb795dd'
'7ab3641502204c37108430f5be2f78a161b1aa5a63561c8edcf0186a7f509df6'
'51cf109e8416775e656a1431630f3f4a6b0bde3e44744449283d0666284698bf'
'97bbaea547340a56f528d8675b04a596369fb9b63245e20acd76d74211f7a668'
'49d3df068e9edcf17ed99754bd45c7d00c50f4bacd7a5484ab86018197258523'
'd491ebf429f56ad21632bc476f9364857ee838a330ff1b966cae2e8ec5a944e8'
'c95a6ce7d22eca56f365f05805393a1b52a5427af02a447f9dba1cd1559dd7c7'
'0debd56af6d8872d525e62ae8fd609620c3a66a425817dec83d701346fd766ba'
'9b3ca0a7df6b8bc91274b2b757dfb909beb04815cf51b377b22755114776b536'
'd8d4dc74889792dc9b434f11a8934d5363dafb07aada75068809f1d3ceba7d66'
'c4e5def480042a55d8532129f3bd5226004b98f5dd3991eeb429a35152f4391e'
'e0bf50d99447934d0f9865329469559308ab54c32d2d64321a9742b3aa4be063'
'162a5c3879bb4d826b8cfea0dd68cf13f29d417bac79cc2482dd78d76cc0a8f7'
'9f5846d2147eeb8a834a282abc80ef1cd58389faaf4a0dfedfc4e91cd28faaf5'
'bba78265515862435a7aa19345460c0bdd192be207550f6a9ac0cdb7de535ac8'
'bdf3d4bf05bc66951c9d861af635c791fd3513f578fe32a9ccc150aa81ba6304'
'5700997d79942d74db684fddb255ee1e5a1b10b0c7c0df875b917dbba91f9607'
'ed3f3e4bbba12218a0025747257cdaefceb4f37ce65fbf8e3ec1746cacf62d62'
'788127820d6404540b698794a9008990f77005056ec1f15da05785087729c178'
'f688f29b6e4032d6f6fd9b3e7ae20d2f94f7ae34e977bcb1ea1e9b4393ac9f4d'
'52ba67336de4d8d19ac1d29d22df362af9e8b43a2cb800a0303b51e0b6d4c4fb'
'39519209cf6c19208e8c677439b3cad194d9d14f7ff3814c189890d6285b7af7'
'7abab0668491b42dff80e8b656407b9489f8a133a58f0ca42f8c83a1973efd77'
'ec4d3c63698bc825fee4a2dedde66a7796fef0efee8df307d8f233f382ba784a'
'f22b7f8a56d6b92448d4b1cf471fdad56cef13e8668a472e833a8efc8400b53f'
'40c62742c10f08f1b93e68b026b48b849dcf323f99987720be19c0bc0f4fbb7f'
'1007cd1f3f72deecdbfbb3ec54837955f53235de4b39405158eec9dd74750246'
'6de47224c4342a1fc1c81d8ec0bab90cdacb4b4e54709e9590c2bd341fbfbae7'
'4e3f6637cccafab04d665bb66b2d808797384c3b322a4375efcb9a3be480fe7f'
'6c962ee2ce9051223897ace9fa6d7c60ffb7e95b103a52bad0f17803efcfeaf2'
'9dbde5ddc20a9512320490318f5f6278d5626357f3b17401482a439a4f6be654'
'51a38f39dfc18d945a0985a23d0b7770f8fe3cebf8a28f22fd92bb288345a9b0'
'784ba5505afef70f492a85651c632da974c01bf1c5a945ff132df40b077304d7'
'cfd312de7632a96facd36acdc00a04bc571101d655c5c8f70300d3f982b58366'
'e444889660a60b44a3e5e6fc94972e2b8a2b97e0fa8959b41bcacacfc8be931d'
'3ef71ff4f72e28f15ea76764be9179cefdbf92a2270e87dad557cbf6d6c44f36'
'298f9a4a205a77e471f96e38d12dbba00b6fb9ddf89b496e8b5eb106d1f33c97'
'e01d684612fd224536e9cb21f44ace5cab81bf8fd15e8e5265847df1b2407a59'
'0d2606836428595232daf0aedbafea4935e641658712fd99e34668e686c0d2e7'
'7de4b8e3ffcf3ac7ced5aeae0ca84d1e9c8603646e54473665505e1f1ac66925'
'38b372432b02c42703e3f425946cee6a42918d574f7bff7df5f9997ddb076f64'
'3441d57aeedf15c5a29800e8f544b8571d41e5ed5a381d8bb2087cda97074970'
'dcd56d713daa7b6fb03d64219797e159eab8bef2e7eb9bd7999c0b285a24d153'
'7e7fb8287b9255aa8988bf63677e0bed8ae30c0da5ac7d83ba1300ba2bca41d3'
'b9270889a4905233e450be25d61e4a1359a057bc6c021d5aba23a941cde56123'
'0ef471cf54c052214d5169189a72efc0e8d65801e482aeff413ffc7c822c1651'
'803529203aded6bf1194a6d5d575f5e16f8a4a249a68878650c5469e92512923'
'3529d8a55ea5458edf24059d55178b6c4935aa82b604bc1c46e4b4bffb88234b'
'e83e64f528b12b1550efb28ba4dea51e7912ab2af470c1382d78e01d9dc3a3ff'
'12c2001834af439d1a0f95ed3f416788672d41c5b02481d26e54f66e721c83a6'
'7a20d9842117105f4ac641d602977cf20d4149564593adba0f3415976fd7b52d'
'f582fac503f385ceb59761134ed24170ded9f65861106ff77219040b169e6a37'
'3b60993a3c85f61ef57b02334d3a71d864e9e6609ec29f398c1f60094cad43a3')
|