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.3.0
pkgver=38.3.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'
'e3d72a91f7e644bd3d3bb31522f5d9a12bf14316cd95ada0dee700ddd765db38'
'c78b3457825cd7e20094f2f162e1d2a9afb371fe7f7a53c8a2c948121d22c381'
'4a4219218cf0ddf3b46da27124ba13e7b8e1ddcf2a0698f16e114ab572948a4a'
'd3a259e1c1be845c471e7678755b8e33ac0f896231a406a3a50e92f5a17bc2ee'
'b56ae358e7b69096d914a0dab48eaa1c3d9b1a78aeeccb9e45fd0f5dbf361294'
'62aa01dc67b2dbab4a3966fc77c9e6e146caeabbcb9aa818d90a6e920f750ac3'
'cf16841892fed72ed9c590d78e6bb93e7c4057f8070821b0a927fbd767ae6b9b'
'4f0cec48206a84694e97e64776d26fc0eda5baa1b019b596af3ab1fe05a3c788'
'96b695296966a61760485210adf967cda82f562290492ca4d34a435966925dc8'
'908fb80a392d1aeb835bbf5e213f6dd62c9c1611b268641a50ff61dba3c4084c'
'a488ed7de074380ff02db8fc5941375f27579a41e2ee3c63d61f43e18ab88664'
'47b6b3c044a6a25d2e9c116a9f900f4a2aa2c74ae70fb5045b4175971517daf4'
'99b9b14ffd11b5a07aa6d89d947a73f378a113574ef53680c1c6992a8406292a'
'1bf89952a3b876fffda0d94cd291a90a68dbebd55d286de9cf9ea87c7c241420'
'aff083bcdbe2fe23c314a2725d0b27b02e4b4533f1c6e57b9542d891a915b715'
'021493ea03343e7563c69ef78dcef55c2cbf32d3024d66b4ac50b3c4588414cf'
'fe97ee27daa33aae86e51f4f6ea16d703a4cdce713c550c6fef35b72730a4fa9'
'7bf5963dfe145dae28f9b7f8b62cd97039eb4b165a00f64ba4d4c654b11c40b1'
'e12806a8e1808e6cdba0db393fb444e17144599bdd3634530b89549dc55281e9'
'b12b8b0d3ac1d051e33c249add1baecacae6b9e71365f7604d82f2775e725cf1'
'dca0f3d8019dfdd3ce0489fa77a06d2d5cb39aa08e0ae3d16bb44ab630f75375'
'efb561b34d258448ca28a0c54c681272436198e9f5bc771994b05b005116422f'
'b809cb068a54bfdd08016a798623653ab3b045a3df1e259e3ef29db6b16a61cb'
'66243be7f539ca8dc376ecd5e9cd221b660af2313c0e13fe00c6c6cbbb20d2bf'
'28870ca3614baddd95288000e7336503ad2e62d31b04c33394066d5d52443e09'
'c74aae3a9048e60669292095c1c446f3806e73cee14d10cd0aab852c9bf19066'
'fc6ae694a971c7db823a1809ebdeec91231080e57caa0ff1ff05945a07755c66'
'3f2ea2b3ff1b662d09b3d4d2d611ffaf2f6dffba7cf6b0599587b61355012141'
'ebeb2ce1192b5baf8a0a6061cb1dd8e44bd11418a65d2dc118141d1219104407'
'b36e1bb1b3bd81185a6ff3f330f04e44a3f51278d900971faac8205b73775323'
'952d1a2a5ba664e5542448d656e37f410d0da60f0d45d88bc128ffff3a193d34'
'f97a4ad94f84bb1601d9c1b283ac84e33d191e5f6abbcbe1d6790c93c700c261'
'fe0461ac92410b68f6d2d506dd9ed5e85d3adcf090acfe02f88c9aea977f53db'
'2aa5e04e9d6a2c10e410e8dcbc51e2d2c093f0d5dc573b3cdc21e37facafb6d6'
'ed9e84328318cdac30e605a8be9c609bdb44828f4c288cdc4af141669ba33008'
'cab27cb9348180a19fdf32cdb67e03e2d98af10f39a3a158c495a72fcb9544f3'
'62d9c3bc2d0a19384a5df220b9b6a190aeb8ee6ce4327839d08ad3a09b0f5b7b'
'ffd7ba1110afc8096d0c316a5e4fb55b26f9d9f689705f795b00d3c296ceb5d3'
'48d4095cfdd47fa876c17a13592be4c4b31f57709d770ea8cefa9293e54d8f87'
'78d139e9894b9ea9913f921d78ee3b8894770c08ad32c8530e32782439a36383'
'8805fa13167f5fa509f44a31729e39800d8f022224cd86012bb18fc19ac21815'
'c7e4582522489eb8149db41c4f2c7f7a4d3121f4f5bbcf136e456ece8189d975'
'639a3b6d32be9dcc8d2f2eb8a2cca1cdbdb444ef00b10b76aa6f8dc9035e5b4e'
'72be95aae125d50fc9565c8bf40623040e37c5ca511d0f0a38f3924ddf48c845'
'51a28a8984e070e6ca886238aa834ebd9bf845c536ba44407976db7c8bd0ab04'
'2e16abf3a7f2c133b8ee8a078834e81f141143cff35306056111830252e435b8'
'0561d311a4607e9db41d913fdae19dfc4ef9d0135d1b6bbb4bec8ec60617256f'
'5c937a4cc87299365991743f791d89a7ea11693f93a538659715f3dadb7d5b0d'
'a5d64faf18f4e05ecc68830ad7623bc378d30ab041d4fa65d9d15970c552a628'
'f82cbbfed792a36383a8a78bd66b499de837dbbf1c0386a579bb602db31400e8'
'2fc3d2fda47c02cc3299e42a178b329dd43d3e09cb1b79be85a490deac77302a'
'0eeb64f903032b8456ec9fe9b1484add7ac45aa76406479f44abdb30b5bce119'
'2f68f7c0596253b3fa2a3c9d895cde48d8bdc55f006264cae84eaa485ae10f37'
'be6321c62f3d5dceee8df225810ed42ecc76ec79c35330da62fdb11027eb9e10'
'3e64a3c28621b7e76b2b705cee2e721fddba762728ab180449873e69ccd9bcc2'
'd2d03bccd1bf564415e38ef3980b4a7e0a32fe30cada1ea8c15c0f96babca151'
'8c3455bbe76b167f94f1b1f7c836aafd7f5d11e5fa7cc4071bde0fe77b4bcf49'
'fd10d148424c21731b877104ac50628c973348f8bc813573130503d08a0e045e')
|