summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 948f76c5807870f981a21202cf95286bc2c5a1d5 (plain)
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
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>

_pkgbase=icedove
pkgbase=$_pkgbase-l10n
_calbase=iceowl

epoch=1
pkgver=52.4.0
pkgrel=1
# look here: https://developer.mozilla.org/en-US/docs/Mozilla/Calendar/Calendar_Versions
_calver=5.4.4

arch=('any')

pkgdesc="Language pack for ${_pkgbase^} and ${_calbase}."
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/thunderbird/releases/$pkgver/linux-i686/xpi
_calurl=https://ftp.mozilla.org/pub/calendar/lightning/candidates/$_calver-candidates/build1/linux-i686

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$pkgbase-$pkgver-$_locale.xpi::$_url/$_locale.xpi"
           "$_calbase-l10n-$_calver-$_locale.xpi::$_calurl/lightning-$_calver.$_locale.linux-i686.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

_package() {
  pkgdesc="$2 language pack for Icedove and Iceowl."
  replaces=(thunderbird-i18n-${1,,} $_pkgbase-l18n-${1,,})
  conflicts=(thunderbird-i18n-${1,,} $_pkgbase-l18n-${1,,})
  provides=(thunderbird-i18n-${1,,})

  mkdir $1

  unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1/$_pkgbase
  rm -v $_pkgbase-l10n-$pkgver-$1.xpi

  unzip $_calbase-l10n-$_calver-$1.xpi -d $1/$_calbase
  rm -v $_calbase-l10n-$_calver-$1.xpi

  install -vDm644 $srcdir/brand.dtd $1/$_pkgbase/chrome/$1/locale/$1/branding
  install -vDm644 $srcdir/brand.properties $1/$_pkgbase/chrome/$1/locale/$1/branding
  install -vDm644 $srcdir/region.properties $1/$_pkgbase/chrome/$1/locale/$1/messenger-region

  cp -R $1/$_calbase/chrome/calendar-$1 $1/$_pkgbase/chrome/
  cp -R $1/$_calbase/chrome/lightning-$1 $1/$_pkgbase/chrome/

  cat >> $1/$_pkgbase/chrome/de.manifest << EOF
locale calendar de calendar-de/locale/de/calendar/
locale lightning de lightning-de/locale/de/lightning/
EOF

  sed -i -e 's/thunderbird/icedove/' $1/$_pkgbase/install.rdf
  rm -rv $1/$_pkgbase/chrome/$1/locale/$1/global-platform/{mac,win}
  rm -rv $1/$_pkgbase/chrome/$1/locale/$1/messenger/searchplugins
  cp -av /usr/lib/mozilla/searchplugins $1/$_pkgbase/chrome/$1/locale/$1/messenger

  cd $1/$_pkgbase
  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'
            '5b17a53001f7605f9e12a9881573f93940dd5756bd54788546201c97fc323c3f'
            '2fef7722c98933a5312778f2d83f9a4f0827992d53bfb4659c96222c2adec2f5'
            'e3f5a29ee9258e49306cd1580d603b635a5ac7c8840c838504606143c141562a'
            'bf3b9fd262a39fbda4c5332d5a6c0ef4c62aff9697cc466f5450d526d838d390'
            '1d5e536ebe848d9a9ac773c6e15ef895601c1754a9f0ee69a7ab229ec931dc32'
            'fe785892f2d325cbef207213574b1a6de439b05f6ccefcd795dc28460b75a184'
            '18063549c65ddcfb1c438b5be60ebf27f2b6ed2b926e52ba2b9fd078510bb42d'
            '999955eef1a3fcc26e7d3e821c7c442b718589ddcc18543ad9bd2df746900731'
            'cd6a5a1c7b9ee0f688815ed2d6ebffcb5300fd1ebca9f0bc0d26c0f8d8530d12'
            '64aa1c1daa8e0f8393bafb01d939832d3beaeeec56bbb63b0bb7491860a68e05'
            '8ee2714cf3efc9477059047d70d3429601e2451e32d823ad48ecfacbad802edc'
            'c9e19643701feb3cb491411f5c2d664ce2f8bb40087e853ca0395b45a5cc16a0'
            '8b4929329075581266bc18189660c6200f6084153530d45ca6ce2865572a392b'
            'f1f0807475ada0ba5c51abe2e925cc0ea76402f6563821479f1dcacd024c00eb'
            'd3898778cd4aceea175c46ddc386b47cbe134a1b89322cee285e5925042032d1'
            'a1556c9f00713a36e4dc9d1668f5648d5b3ef1b585f300da5aefb516ed8363fa'
            'c95bcfee29f32aaf12dba7e835f35311eb71dc923c71dfc063b8150165e552dd'
            '10d7ed81fc96d8ee9c071d52bb321a5b21eb18df6b400da74203e824fc74db6b'
            'cf1efa5a056dbb9b98324b1b959a61467af15ea82ad586369b4b46856d89d990'
            '8524e2f25a6eecbb938e3a2a7053922b19c588f608f08e8d23983680c127be64'
            '6d8bc484a1edcdbff75d39dea9f33b85b92514058f505f2915810609796e8a1a'
            '6cb3b1abfe7d768bd11b34ff2d1e94b96f44e983f9eb431456b29a657cb975e6'
            '94bc57a6b7ca577fcfeac8a04e2cb20c30a54582b8f5c8906c449e20ac1641d4'
            'c08d696739fcdea3fb90630e12402a5fb676f2921b68b3abef9f53d5b3bdd560'
            'c5201686e88cde81222817b006957bbee08df0745fdbfeeea067b558f9131872'
            '4abdc6c9215599196e7709d133e9018420416fbf04f87a57c048441c190567b2'
            '45905f12c6053324c1ed880837fbb6b00afd631d83907d6274fc4aa53a4861a3'
            '73489740fad937466e55dee110ce39c0044c03fa1de71322edab290d961b88a6'
            '1b281ee6cf6898fe7aec71b1f8ec6a4bceffae6d1720dd64d678a41bdc5ba197'
            'bb8cab599453f8737f1f5a6d93ed85af28b7f159ba221cec35622b5e6642f722'
            'f6bb96a72a3a8271b9796d9516908de2b885028d7e3cf00913fa74415b7a9ce3'
            '5e7f676fa829b69e525f0ea79efb1b717942995b541759b8decedc02aed53252'
            '2d49b3b67e7b0c8f99871906e65d5e3a6cd684ad3dde05a730dfc8d328205005'
            '3e908983fff54ad4c8e1986d455fc88f0920c775e560179e4a86085c825b0c08'
            'eee8043f3300c1fbef18d87c783de89a11e69a75e7185e0fe0ce5a73a0feca0c'
            '598c5be6944b8dd958dc6570bec7b5815ab92272d8a076f167530738545a4d88'
            '448a3d9d8f4babd98872e2f91c2837342e4c01fc6bbeb0bed3a4f4e14ea381b6'
            'e835338bac38ada1df429aaec855cb597d3ab6bc0defcb2c190a44b677573187'
            'fde89077936d1ef35642d6b451926e885f69b9636b66314c4d1d182a9b753ee0'
            '809fd7fee8e3bff560f41842ba0cee8bb7969569475ec84940098e3984ac0117'
            '98c758ebd8c286bb93a1b9b75a5af1939944c520164a5b38f1f39936529fd7bb'
            '7d9ec24a64f3bca5b6202671b5de7b18219a80fd25c1c2cb4a91b149860069bd'
            '1225accf01b15e7e3132ef51d9275ce573a3615360f16647c91bc078134f5002'
            'cf9d5778489a126131564bea4eba998bd1ad8b998b5ed1248cb5d4354ec7ce90'
            '22d847437c25ff7aa94b9f5ca1147277c87bccb5b38afa4f0ef7fa5124a59cdf'
            '65c2aa6b47232e6c2f2190b7a830dfdaebe0db1a0c3209e2ea93a6ace42afc03'
            'd184019e5989bd88b8bdb7a27788535b0a3a487921d85339ad0a1bb81cf46a40'
            'a00c861d3e9a5059a163a2e024948e51b47f045120d6dbf3dd7966dc26ac896b'
            'a35d8e9441219196eb90a31d1f65f08493ded91fc1ebb1b712c417827451ff13'
            'daf6547b38739914c37d29e00db577117c49b6264622a2df0abb8a2aa3514ecd'
            '8d46ec38430a1939cde04141c9f5bcfe22b81a154bebb89dc112ff199042203f'
            '28d5ac2757c37a237dbf3f2f89cdff3db580aab4612c4267ebedf54aae0e79b8'
            '119c5055305b8f16b02a822b70044ff2410cc79f32a456d59c71c455002b8523'
            '1352edd2a53a0e387c8bb1b1b2118b5202c459226b85e61d4325973b59e2b273'
            '1444e2582233eb0ed7abc8566ea951d6938f75bc069a20b47d6f5cd8608a740c'
            '7148321bb727a3fcb4c45805f8b4d3e105d5a15ce969e62d37af36e4dace28e8'
            'b98796554589eb7ff3e30bd8fbbb27c8d2ad31bc74d96d4070df1f0eeba40544'
            '097e95ae272cbe5d8162543f0d73a08ac851e1ba47db49d710ba50e1d1e4517b'
            'ed1d4f05c0d4d2c8f4dc4227c43a4f08be01ec6aed92a3ede2ca83550543bbe6'
            'edd49644fff4781d6216ede9529fa9725a2b6d2bf316ca24f87ea2286f0558e8'
            '5bd33fd191ed602e3ab0c47e9d8106328e73dcb07e3ae10062470d1de138aec0'
            'fff11a2367a3f66d26c3811a6f31b7ad904ffc30d59bbdb1cd7df9c3d9f2a967'
            'eed6b20e25e34b0ee1498948c8baed0060abe1b3a25f9188b123c81fd044771b'
            'd08695ac033775799dd51916b160379a9d4bc01b001f6fd6ad96b871784f9e88'
            '5800130bfd912f58e6335791afde9718a59dd3428a589581fca160394a3f4b75'
            '854f89c1950d4228e27a80e895db3a8eca76800c4585c9d38d6c35ea12c05ae5'
            '8846bd908fa6481e2ed0a2e7fa1cfbd7bbfe02a78b1cca75e9b2a1ddaffe1084'
            'ca08e44966a954dbf254c756642d344af4741d74b44a1dfd440ec45d1e472826'
            '0a2f439791e95def79ef4389b9997b4cfae4293f57ac441dfc854d7ae665c95d'
            '9679cad040c80ae6af3be8df426c9b6a5385fa0b93b84107824134e8a30e96be'
            '89192fe23dbce157aeec48168b45ac94cc47bd6d83907b3ab7dbaeabe5b7b7ef'
            '96692b96fa112a36adcbcacebff50aefc2c5b238f4cb62903f655612e710b15d'
            '90bc80f8742b35525af3e1f4fad4c5e6fb3442423b6be7ddb8c4a5be76bcf564'
            '2187b796b2d00d9d5e5a110a1375f0aa8f024189775acf28843d582003458787'
            '24cd76bbfab1f20c5f916bdaff001759d75bee16e6a15f56b5e66d8a8d730d0c'
            '6b9a33ba3f9a6df7c7cab474135b455735c462d20346b686dcc541c2d36503d0'
            'a9523e8f9cd9e653b645c1b7b8105d98f3c33c6723f07d9e6a2a1e4b9e6abdaa'
            'bc067a57105dca990e4bd1caab8a97700ea4597386ad56f98cfa7ba3d46a9079'
            '22961936b2e19e95838777b24e29d3f43eab296a75958036b20c21471301f96d'
            '0fc2952a7e4818e09db1f9a8fa4b9231a70e7fd4ca485450be070b8eb6bab89f'
            'c806abe05b9614690c9c8466a3b3c8e15fab6bbe6fa166e23f0dbb64f5e70be6'
            '195fcb82fe47932b5c11abe794770d0b669bc14bb8c2b7ef5ea9359351cd5731'
            '46cd992cd75c2216af075f5d1080f3620e1e6ead488de2e14ed56f7698669d25'
            '1b4190c8f40fe991f7763f47a845a78eb1ead50478e54b08a14931323eba313c'
            '273539724246f023b0afdf79a9dd517ab0e71606381900ca26b0844a5e30e9c9'
            'a75890f2b40bc4c00366714566bf7a70761d3ecbeba6e9a564edadda25f613d2'
            '7923394ff64a094d4da561b962b694011e79c8e586c8d125cb450878d3cb53f1'
            '2a1382528433d231e87429c03bd9cd9c5364cd262546364c304f345a06ab1748'
            '91afce6ed4b6e4a52b03a83db4610685cc272e829a5da10db79c371ef9b00e2f'
            'a38c0bb5c33dc136964137c5787431dc12fc73ad07417f9eadea83a087ecb6df'
            '0972682e3c8b1767dd45efd8dfc1d5fe664731d4a7786a12104452ba29b449c9'
            'cbb1aadb62806bca13e7e39e6c558437a68527ad3be1b318ef0688dfabdaab46'
            '662fdebfb7b71ac6136e1ce707234440672a9b019f2a4b3337bf24338349b7a5'
            '655fcc55cafbe2c815c406492a6b1eaf8e383e024ec4f42a7572cda45cefbe1a'
            '027776f83ce747dac6bf7bc939a6c53495022131bdb283496e0bff9deaa2a0b4'
            '6287de67ad7f8bb7611d176aca686c41b2ffcd1e62915fac428bbb8870274ffe'
            'ddeb2172f620877f95b69cfbe8d1bda1dc77b1829ad491189e9cf5f5ddbdd8de'
            '747cf2f2bd51dc75a578ac627c0400803851820025081ee19889324b11c65f44'
            'e36184d7264bcdd4bf7dbd9e8e547ccce50d2eb057cddd8589752f03df1a1f06'
            'db26bc2144442a89d5787abe6b1626208ff20e09d1d03d9a87082ff8ab3df78c'
            'e721f6e1ba3818c5ef258dddf19d5d7cdd635c485d620d4fda2107bcb0fb67c8'
            '3e919889ec0229f618ea0bdec5845f05142addd7944d19688395ddd4201f8e22'
            'd17e021710ecb696ec97a339e579ecf67d0397b26ac2a7b578358a40fbcea3f8'
            'fbe62ac01731d3f3a22ae011331ed4cdbe18b76b0e66c8762bdafe944516d43f'
            '708c1093cf817a0502cb65014e73c0881f94dabead931c71beb4b563e948575e'
            '05bbf2256b886db58ce87883f13e93b5a380b3ed37dd09c6e03378b476e88a3c'
            '875114b08adbe2783dcefbc56334bc4bc4c3da8c8b3300f37f2cf67ebc04df7a'
            'da213cde7f941a27bb4ac47d079263b354bcc2a6696ff7e2634990b9ae6f9e91'
            '9824c64701faa3f24c69e19801cc98b313b26582eda0ad46c8c78a3452f7ba33'
            '473cbf34c33c5def816af70c5248d6027432f12169b6e6bef60861524242e1aa'
            'd3e3a3cb60e7f6fba14759590df00e85456c17cf071cebcc358744abcd2b1ac3'
            '5d66bc651c073600841251fe61266eb0fff0327950e6989a422d0fcda89db7bc'
            '7541bfec6716ae705afc51f66578100662aacdd92f8c1d8e9a33c82ad33c2872'
            '50af75edc61a48bcfdc43f632918351dd451af856f85c56e446fa6cb608db9be'
            'c1ef258d0b0b3ec1016c7878ec20c7af8a1d1cdfdad785389172b30739b674d6'
            'd886d88262f2fce12a6854047870b7076a787f0fce678319e39b29d5dde258eb'
            '7a1dc6483c83b43852c892f5b26b29fbdb0794c81bca4ecb5d1080e8cc371da4'
            'da803c42313eed5edc06ef3976a1dc9dbc1c397e768b1db67babcc27b1111ef1')