summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 55d93274c43c9d134d54db5307d13cf8c3f670d6 (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.5.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'
            '0e0b7f56a2423908bf8b955c79b2834be01b278c40370a76eb33bbb7c8d91288'
            '2fef7722c98933a5312778f2d83f9a4f0827992d53bfb4659c96222c2adec2f5'
            'e63212a8b45661609cdba50ce7c6546dd8c843fc8573cbfd3ffd99f6f63ee548'
            'bf3b9fd262a39fbda4c5332d5a6c0ef4c62aff9697cc466f5450d526d838d390'
            'ad60b7728a0f5e168e0fde4b15b3db15145577d78361855678591f1fc5d5e8f8'
            'fe785892f2d325cbef207213574b1a6de439b05f6ccefcd795dc28460b75a184'
            'b8a0c2c9510e5ed0db024fe4d3c93f9800ca3821e38f12ef955f909fed148dd5'
            '999955eef1a3fcc26e7d3e821c7c442b718589ddcc18543ad9bd2df746900731'
            '602742c53ca47490fcc7c6739e5ac55cd810507d64a7197869cfdcf0a3cf38c6'
            '64aa1c1daa8e0f8393bafb01d939832d3beaeeec56bbb63b0bb7491860a68e05'
            'ff3db99a4bbccf2260db06bdf1338f9fc5e7738ca425eb49f5bc0f2a81e09c96'
            'c9e19643701feb3cb491411f5c2d664ce2f8bb40087e853ca0395b45a5cc16a0'
            'e381077092de1febf51fc314a38eb18918ee7dbfc3d0dce25c6570d7f727289a'
            'f1f0807475ada0ba5c51abe2e925cc0ea76402f6563821479f1dcacd024c00eb'
            'f0121e767536ec5bfb180894026fc123e7517069883ad8ec64ae257253a75777'
            'a1556c9f00713a36e4dc9d1668f5648d5b3ef1b585f300da5aefb516ed8363fa'
            '0636a1dbd920490a5c79dc99bed9da4a878c3cc6b6f83ac59ed18b372407b5bb'
            '10d7ed81fc96d8ee9c071d52bb321a5b21eb18df6b400da74203e824fc74db6b'
            '89ab726735ded22e7b866882a8d6658285f7f5f5c271fce82e5a72826fc14eda'
            '8524e2f25a6eecbb938e3a2a7053922b19c588f608f08e8d23983680c127be64'
            'c5c5f6dc7b64470760252bac71cf7d237c52372761d672d355f13af78978c93c'
            '6cb3b1abfe7d768bd11b34ff2d1e94b96f44e983f9eb431456b29a657cb975e6'
            'f510b370b6c4b2bfa90002a3b66b747c4f3cc36b29502d4f6c18be1109d9cb88'
            'c08d696739fcdea3fb90630e12402a5fb676f2921b68b3abef9f53d5b3bdd560'
            'dac4b706f308c25d4a0b5d185ad045d0e1641e95856456e98f4e7c972b7b965a'
            '4abdc6c9215599196e7709d133e9018420416fbf04f87a57c048441c190567b2'
            '501f5497be3b9ced345e106d90fe6a0ff3f29151be988ea4fa00b099beb749e3'
            '73489740fad937466e55dee110ce39c0044c03fa1de71322edab290d961b88a6'
            'c6eaf83141cc92e50ea239af69470b87f389f13b398d659c99812c0725a2f52f'
            'bb8cab599453f8737f1f5a6d93ed85af28b7f159ba221cec35622b5e6642f722'
            '2cf8af9f69b43babc0434026f02f7b6323fc68e7f5ffa754ceca899f962217b8'
            '5e7f676fa829b69e525f0ea79efb1b717942995b541759b8decedc02aed53252'
            'aaa0a9c5c268160dad9def19b719f3b4017f60131a98e9b90401b9cf80c39dc8'
            '3e908983fff54ad4c8e1986d455fc88f0920c775e560179e4a86085c825b0c08'
            '7d7ce32e58ea15e2a3b350de7eb51c2ed53d2fe29c3f0b3c5ff6946c176d0f5b'
            '598c5be6944b8dd958dc6570bec7b5815ab92272d8a076f167530738545a4d88'
            '4fe34db7dee5602327e3b04c611e5864e11b2113834ac637e81ed462158f3d7a'
            'e835338bac38ada1df429aaec855cb597d3ab6bc0defcb2c190a44b677573187'
            '3d6c0c9dfe0e36bdcfb68ce4466ea4b57e075180b8444c3ce947bcf6bcac95bd'
            '809fd7fee8e3bff560f41842ba0cee8bb7969569475ec84940098e3984ac0117'
            '7ffeab82cbc745699e4ebc11b16e105232c4e3ba618e07917ea6700eaa926768'
            '7d9ec24a64f3bca5b6202671b5de7b18219a80fd25c1c2cb4a91b149860069bd'
            'c5337fbb7f30216815d4a841a62baec666be00ee102e775de8f5642ce63b589e'
            'cf9d5778489a126131564bea4eba998bd1ad8b998b5ed1248cb5d4354ec7ce90'
            '989642c287371550f1bba03db9d1cdb5314d7a7c0307e3158100fb9ebe565935'
            '65c2aa6b47232e6c2f2190b7a830dfdaebe0db1a0c3209e2ea93a6ace42afc03'
            'b9fc9d6b6a8a9bc2de9ffabb4c3242eba5537cdfa4d5120f90eb172820fd1dc8'
            'a00c861d3e9a5059a163a2e024948e51b47f045120d6dbf3dd7966dc26ac896b'
            'adb845ecba559ba24d4f83fa43a9c9958ac332660283b9b581dd15a0633bd172'
            'daf6547b38739914c37d29e00db577117c49b6264622a2df0abb8a2aa3514ecd'
            '21b1ab1a42ee71ac81abfa154148cb78130eccef749b0714dc6aff5ad29fe70b'
            '28d5ac2757c37a237dbf3f2f89cdff3db580aab4612c4267ebedf54aae0e79b8'
            '0c6d4698b3d5e8f891f2225c5ae624f5bee2726363c0130d56c4e9aada675705'
            '1352edd2a53a0e387c8bb1b1b2118b5202c459226b85e61d4325973b59e2b273'
            'd77cd8f59a3da93ff1f46da5cc3bb53073b349f7eb32f24132bb8164a8dfa717'
            '7148321bb727a3fcb4c45805f8b4d3e105d5a15ce969e62d37af36e4dace28e8'
            '903bc6e737d558dad64cb9fdbdeedd5a6d40eb2d707c9ba161bcac7d46b4f028'
            '097e95ae272cbe5d8162543f0d73a08ac851e1ba47db49d710ba50e1d1e4517b'
            '57d4088b77c0eef84432d362bb95cc3be60a5d7f20155aa3a35a8fc5d3e4a091'
            'edd49644fff4781d6216ede9529fa9725a2b6d2bf316ca24f87ea2286f0558e8'
            '034fc0bae38ac6e7086bde0be1ca38f9c3ddc0364049cd7ffb48665c0fb64dc3'
            'fff11a2367a3f66d26c3811a6f31b7ad904ffc30d59bbdb1cd7df9c3d9f2a967'
            '7ea938162cbcdf0013823ccbd34f91a9160d8a8343c734253d6b4d46a50126b7'
            'd08695ac033775799dd51916b160379a9d4bc01b001f6fd6ad96b871784f9e88'
            '5152521ee4b30c28caf7de657a66afda77560f852c134f3770c4645a0b374a8e'
            '854f89c1950d4228e27a80e895db3a8eca76800c4585c9d38d6c35ea12c05ae5'
            '0700b4cbf29b9c82f65818516c8fa9d714e2b7c0db19abb26fbaf23df8f98bc4'
            'ca08e44966a954dbf254c756642d344af4741d74b44a1dfd440ec45d1e472826'
            '56fe86d1ac35a0a4e1e8feb766de0f37b388db3281d4c1bf413d404d783aff62'
            '9679cad040c80ae6af3be8df426c9b6a5385fa0b93b84107824134e8a30e96be'
            '0d0d48e352527df52b3fa1cba94b88e7d73b73d1a255360ad7955a614475a21f'
            '96692b96fa112a36adcbcacebff50aefc2c5b238f4cb62903f655612e710b15d'
            '91e8fc3d74dcfafef6f25f6e7a0393e8f0294582ba45c73d2dfc98caa9a7f184'
            '2187b796b2d00d9d5e5a110a1375f0aa8f024189775acf28843d582003458787'
            'f590f9f3b05863791e76fd08f81ee550be495b05646d0d5fda07c38549621eaa'
            '6b9a33ba3f9a6df7c7cab474135b455735c462d20346b686dcc541c2d36503d0'
            '4aa321fbce68b67f8e4e0371821caab8eda99c4cd185d64f02e4c60f71dfadd3'
            'bc067a57105dca990e4bd1caab8a97700ea4597386ad56f98cfa7ba3d46a9079'
            '158b074340e5d1f4a90674ce353aeef6a0f4e2c9a3d0cec6cd9a5ece4e8811cb'
            '0fc2952a7e4818e09db1f9a8fa4b9231a70e7fd4ca485450be070b8eb6bab89f'
            'a40f4bdb4fbdb5382d0c07d194456de4b22b2248de3cf9783e2d5620769a6ac3'
            '195fcb82fe47932b5c11abe794770d0b669bc14bb8c2b7ef5ea9359351cd5731'
            'caaf3b31ef3d58c12c5f3d9131df440975cb3dcdf4c054103cc11fdbd97af26b'
            '1b4190c8f40fe991f7763f47a845a78eb1ead50478e54b08a14931323eba313c'
            'cb4d9c4bba6b48cc3a19aa70d4bfbe6488c625f8430516e18af00fcfbd666752'
            'a75890f2b40bc4c00366714566bf7a70761d3ecbeba6e9a564edadda25f613d2'
            '6746b18f1bcebee956e4534f3ce35e27463c8c5695857b4cfa3c6f7a94f200d5'
            '2a1382528433d231e87429c03bd9cd9c5364cd262546364c304f345a06ab1748'
            'bfc22f3fecc0276a61ff5a5caa8e2d8df6163b5b44274c253b76fa9f7620fd03'
            'a38c0bb5c33dc136964137c5787431dc12fc73ad07417f9eadea83a087ecb6df'
            '3f833b5ab550d78a1742f0ede383ef2f8b805fbcef932f418e68d8feeb041b01'
            'cbb1aadb62806bca13e7e39e6c558437a68527ad3be1b318ef0688dfabdaab46'
            'cd006b0f06a0f00637c53fd672f957ccc0ef83e3e0a6991c7bc6d2e57be558b5'
            '655fcc55cafbe2c815c406492a6b1eaf8e383e024ec4f42a7572cda45cefbe1a'
            'e186af9039fdeaa3ce67ef25f459d818c34c58774f1915198024ad2188b9088e'
            '6287de67ad7f8bb7611d176aca686c41b2ffcd1e62915fac428bbb8870274ffe'
            '603f4edaf71587f47325a069e81c36df3b87ac48d657f9ccdbe1ec284d2ef620'
            '747cf2f2bd51dc75a578ac627c0400803851820025081ee19889324b11c65f44'
            '33122aa1bff13fdf68a913a17a29d8b9d3ee7c775ddb6e4b1f67be6417079556'
            'db26bc2144442a89d5787abe6b1626208ff20e09d1d03d9a87082ff8ab3df78c'
            '918b0bdea1840eceb1042c8aaaaf7e87e2b3a703412bc38c76a34b86f66235da'
            '3e919889ec0229f618ea0bdec5845f05142addd7944d19688395ddd4201f8e22'
            '46d831ac2588bfc1619852330b9294270244405eb386b76856e32265063c49ab'
            'fbe62ac01731d3f3a22ae011331ed4cdbe18b76b0e66c8762bdafe944516d43f'
            '4fe46c39efe4bf2bbdb95b1c028d432a0a53845ae30ce09192107bbbe3217e50'
            '05bbf2256b886db58ce87883f13e93b5a380b3ed37dd09c6e03378b476e88a3c'
            '1b0fafc37ebcf2b0bc59b29bf1984bb551cec84ce8a73bfabf4b064a3f9065f9'
            'da213cde7f941a27bb4ac47d079263b354bcc2a6696ff7e2634990b9ae6f9e91'
            '1b35e8894ab8ebe4703ef98de95e797e9d3bf3b885de0872de2dff95b0095509'
            '473cbf34c33c5def816af70c5248d6027432f12169b6e6bef60861524242e1aa'
            'd9b35b7513fe1cc4f211369a6083ee31d9dd87d38fd9c5fc5342bf9c8b29b233'
            '5d66bc651c073600841251fe61266eb0fff0327950e6989a422d0fcda89db7bc'
            'dd96df8637761c752cc1bc0e607491eac084bad2070fd3b02b8128b251e442d0'
            '50af75edc61a48bcfdc43f632918351dd451af856f85c56e446fa6cb608db9be'
            '20fc3e0dde8642927d5bb0d5bcb3be1524312acf0b0556d141553479cfb66c02'
            'd886d88262f2fce12a6854047870b7076a787f0fce678319e39b29d5dde258eb'
            '3ed5551811b7ae39ac72d62e9ba8e37cd0d79a0a818aca2591274adcfa5969cc'
            'da803c42313eed5edc06ef3976a1dc9dbc1c397e768b1db67babcc27b1111ef1')