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.7.2
pkgver=38.7.2.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"'
'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'
'3f57d5501194c85eea418d30b3ff16e6d8c921dd134e1e65e8291dfa4cf24d1f'
'0b4de21353eba4c8d58861a751095da9eb3c3290a5aee70275d50af4348fc088'
'5cc45f144aa942033bbd4a519d8b72040880f0236adccbb7c612a1583d79f599'
'bf92d441051cf56cdeb64a9838b5913b8d1df866ea38ef6d020b9d0918f1b0da'
'875cffbcbb2f6272ebbf91d25745c4530d6cd81cc940711281841f3c19c3c689'
'675a154bf994ad36df84c763cd20946e94ce396d1629341853db515622f6564a'
'5460a2d2559b3f6d11a9ae4096c222168887bf3c67b139c3fb4adb08b83fa175'
'c40434f456bca4117cc26d38fb17f87555db2cc9142a4099235fa3eccda56565'
'954bd1540d53d5514742d4082bda0d782d1127ca8599ca9d40329fed4ca5dc7b'
'a634500a4c4bbb9efc966c9277037490471e378951299c0bb6bf1c39f69d8675'
'396b2524c47121591d4c40562f8f37b4bbc6dc87948ea5cdf4817726b0d1ba2b'
'873cfe0a158f8c9592db8b00f10a4ddfa55b6b3a28a433fd2c2e208e950053e5'
'1af307e92cf5dac126b17cb1f55f67cf34fbbda9c6c49a613ceb66a972b1a7d3'
'f253c5ea29cf5a35cb563c54ebd0a6e56e05cdd1ec71f6986bf5c29ddf5bede9'
'10a66c7f038a9de189cdb9bc0db5a58a0c4ea7c69f9d9ebdeccff175903bb9cc'
'5a9912c375c9eb77ed3bb5a8cf28fdfc79d766c1edf40165567702473e714173'
'a53526d1e28b5d189edeb440ce9bde282c1f63e240888153a89367909b20b563'
'47452b5d6635b66bec21c2b1351789117512da00cd0c1d3408df170c609d7918'
'c875263299802771889f46df7102bd94f3ac877fd423f3625f203e4c6dbf7d70'
'414480f6d49eab77e15a1c48e7112f1ef0a4c003ac04afc0eb542844cbdaa1a9'
'78f98da635ab5bf574a148d686357a8a482225555e374a314155577a7465b773'
'8504e2149add409a63c112a58a38f52aab08ec36ab867c4ba428a9c56605d10e'
'4f0b922f916f4b0ca0cd48b04a1c5ae1b8a1a5bd48301b818aabc676ee48c10b'
'6a9e17955d186d13ee205c2bac90c9977dae1bb685d677aea373c18416ad1473'
'99181d7da2e4824afad0c913b3ef03506de20e5f73b7739d9b43bc2b99ec7769'
'fc14597e885aeebae45d86cb56df2d2f8f3c849c787929bbd2b056b8cc59c2bd'
'e237b20b91ff3567307c70bf684732bcfbf5320f69068229296bf4912f446721'
'94b4d1a44df6c354098ab33ba9acd64b1a7683524041d12015cb84b56021e5cf'
'b47600eeeb29396aaf4dc22bae569d1e6b4f5729dff064d5f789915f84519131'
'0410e2fd27b2d4fb19fe9390ab68364f69d3964c4e77f9978840be5b13f8fa14'
'8ec6bb2e0e857a81f573654363036ce650171036011a9658a94a4182830514a8'
'3499ad4276f120c2cf64909f5ffb2f2ef4ca8d6a06968655f06a8ab3a81c7b71'
'eea435e27f851a8adc9da323897cd7198a886a11149372ccb75597871d0e3245'
'7f36dcf03b12e8d87eb5f57fb4d660c0acab0b8915f9e40c24eb90f137505558'
'e0a5a0d821f13502493b0d2e4f876635e15a9c5cb0f333af064b65f836896e93'
'2134ad758ec534c7f707e71c8ed177e2897b76cc59a13bd9619f9a08453128e9'
'623f219a7dfed5daa917092e0cdaef88c1234e32ed6e44e3e111b1c5ec1095f8'
'482ce490de74e00ee2addbe203e75b11ab83eed9182329112cb7cb3a6cf05f95'
'd18ffdabc26af47ec6e80bf4edebb952bac463e7fb0a7929079414a4700356d0'
'29dee6c594d4d6887a5398e3dd65631352ea1a90e1e1a03bae68fe92933362aa'
'e88e704fc6cff258c89d8d5628c2c6acb3092df705303bd48658fc5e6f1bdded'
'3b9704e84d62b4398341e98cc989f7111f1e619ea495928b7ea8d71656f3a906'
'48f95a40b4be9cb73cc3ee60b669774e9a5ee5c040dd31fbf576a0b697b93dff'
'082878b09e540c232c19dbc540d6c69e53484336492c94d49b8786c42b5c34c3'
'025c821df8a175c854a2cf26976c1c489bcbdd2831ec3042e1f86395f2b910a1'
'd49be17eab965248f1ae2618af876673bf28be7294dffbf86689c4673cb643cd'
'd1a665e2625a5177100734405621bf531a8890369db358b458726963533e957a'
'2715a494740a6bc80c3b7f32c2f39670bf4d355d47abda727b680a50c1f644ca'
'1b7da5ee9e4056dbf066bb74a8100473ce0c8e0ea36c39f7e79b640e3648316f'
'1e89e9026f94bb1ad7118caefe9d2758ee1cedc5c10a978a3eb7e60a2d0509f9'
'4161b91f64ee729b71d31f3a83fc23b1d922c4714ab4b8a37ac5eed88e0b022f'
'6411fdaee0b328e87c08e014d21cf43bee9d4a57f4ac06ea48802cd1adae6381'
'2e74ba6d715c23d78ad8382b14d50e683ffc1518c212b7750012cf8ce08581fc'
'ccd7a594c8dbb3a17f766ce9fd92973376c48d17ad6bd075df1ca2b9543d0b5f'
'73e2b7e5637e2e9db4e5b78556a3cd5e918993f7b48a32a22daa6c2698b0d79e'
'28f382e2f7399552d6a434d7142a94193a3a670d552bf0b172a79ae5a9ac550e'
'6f7a111aa6ec60dbfd8652a6bd264efcd1e16db5a85585a43d1f5eb7959eef9a'
'38b87d87269a4178dcd2f3d90ba45856661429905a6f1a95b7cab91bd3b32d7c')
|