summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: fbdcebd6fac2b5aa0a8d94b589952c36766276eb (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.6.0
pkgrel=1
# look here: https://developer.mozilla.org/en-US/docs/Mozilla/Calendar/Calendar_Versions
_calver=5.4.6

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'
            '55e64e6c9e2bc68534a0f5f764eb2ef4086303b070f8d803dece82704f399513'
            '0b314dd55a998b7e3eee263574cb19d9734665442501e857df7a55cc2f30d035'
            '7edd520802282b882262e0a7293826344a7e623f03638d8f11aef3445a3eab3a'
            '53881a6e47aa85f8c9dee2ea5640b584a89c24ec7a148ceed92f7771819043e8'
            '449f75f58d54c2ac097fc3911adfba0b1adc30bf04e68effba513ffec48966bd'
            '0bf7bc12b7e217b24e9e7c73ee5939c1e2aae421bb4ad35598c24efaab85bf90'
            '42d182ce3aa536d7f5aeb121ec11fb69d26abaf21c6d422a4fd03589881d56b2'
            'dbe0aaf939100edb0e6bb4a31ca6f5e0ca4a2b4fe6951dfea390ca9722e52c6f'
            '4ad2f6cb36fbbb79f1047f6a0c7cbc9af75e183edd5b1919715df99448e857da'
            'd766b200e8afb84dd5c0ed310017f133d24e9b8a3eca85088542f5bd9a3d9c69'
            '5c0285a388c74e4c820f46e6ba9fd630d7158a7f5ef1596e64a71c6637de1d3b'
            'd74cb1748bd00542cf10011d7e2043a983047d2818eb0e172317de6b883742c8'
            '99911c91b663be3f80b3cbeafce21b6da88d7da3a14c2f059dfa2baeefab8136'
            '6760261974dfc672462999d93e5e3106341aca6ec2242c9df6e1627844c074f5'
            '4286ea2d0558955c61bd702c505c3f4eaf9c45faf08c665ea7c9f76693a5e584'
            '3d272187fc15c4ca63bfc55e62fa4933c35f8cc8bdaaa399fc71a5598a9e6032'
            'c2cf23f90605b361b59c937432b8952558d8dc7e150a6adbae7461b29f42d2f7'
            '0dc7d44e5243543ef8de54b0b62035e8b1b6ad9ac9b387d6757508ef118830de'
            '579ed278c3ece9219e13d0fec7cf82f539f9c723eb10d3e5ac5a8db75173d0d5'
            '6a2713f347f661fb649e0774734be067861f7cf525e797b7fc16b58cf8fc44fe'
            '0ac03603f1ef5bb78ad236ccbf0f64c84a0e618b232bd7e8286171e3462e63d9'
            '38b60d92d47508c60d6744c74e883156117b71149cdcdd6fdb34f8e70f6b4ffe'
            'e9a5630c9e969d4d1406bea35fa5a0c975eea76d8390e7188266f4d66c3b0a05'
            '7f6e9cfaa767f5fafc0ffd1e2ab59c9c9829e2b190e7792fcfcb4b24871ed9c0'
            'edca35f0cace634c4205318bf5cc9e6d5750f52d0c364c121a6af4ffb7964d72'
            'c61d791319f70ee25e63543ccf5a7424d9d9448372d27cd6e37d5a03f8e585ba'
            'eb65776bfdc74d6514797f873bcc9788e1686d3a9734519b91b0c2341d139945'
            '0632f2147d968f28b547f89f5d9a3631f62b524df903b68ea70a7d10935721c7'
            'c42e3f869dc63829f4b329e5b4c3059aee83fe854399efb25312519dc678fd4f'
            '632ed706b6329f37a07893839fde5f28374eaa8f081adacd9ea61fce499393ff'
            '56d9a510c44002f7b502bb3e039240ac6c0805c5a191ca36c1c8e474cf2fc105'
            'd58327d3a7e0b4350de1bed41570fd6d15549ecde6164bfea001a2d7962f66a9'
            'b747614bd710f3bdd4129a74580d336c57239340e145ec920f7800dcbb2a641c'
            'f510ae7d391b8bbd1ae0b5efb6c85d5cc4d4db30037903c4233c05d61c8fa748'
            'bad22df9a08bf5c1f056d3d5f3ae773808ebeb23d3c8a8db8772c9ed76975e12'
            'd43d9b45b6f6bf0377269dcb0021771537a64a4db4a43667a263d3096a74a8b7'
            'ca875e0d846f32f37d1a3a4aaaecb99824e1d019d78e45773cb9349c1455fb1b'
            '06c5182fd71af5a82c15618e55c3430d88e0133a0ea85bb4628ddc5f82288067'
            '9e3be13e562547bda6d79619b69cbc3791f862958c417bde2742408be7dfb919'
            '2acdb4e1d744894fef9ec9dd8ce24a627406430c90926e20d3122c076ee75c08'
            '4e3816609544cdcca192261c9ab442c2ea1741a2eced94e35c5d5e785879b3b8'
            '49518daa016db7b8172b877ca516a61a5f502baaa75fc3df6711a015784d7c5f'
            'c3e55ed6c0cec5db5b69c47ab3f491d264b10e39116bf13c4a0d167533633f50'
            'af6c350e63fcacf0fff2e255cf68244f2ba83b5ef3defde198ab22daa9a38d0d'
            'c1f2bea891a8ef69cb014deb6b3e772f260af8ef32ea99fed0446189997066ec'
            'e74e11774e75061809a42b0a6d3870ed89c7a92f860e2cfe49b9ce21803f0a4f'
            '0dcde6e40a6061601a7e5cd8906c7f69ec1cc572109c860f687d6ce055a348ee'
            'a08ef5be8e99b3662959da1e1ad6a9091fc8d2b9b01a80517d6e4b955a1ed79b'
            '52f5f70a6d03922a3879d2b84cd21e6164c6d9aeacdbefa52e0771af8e8d1ac6'
            'b6d61eced132dd3c5a065ed664809745cbce5aa2cecde2994aa70078dab98e24'
            '453b5c38c81f739a42b3627ae516a2c0e2acc2eceb73b1e0fcc1e4942e6e6580'
            'a4d8729dba9c8ec2fc972c8cc9661e9c078bc6570992affce230905bcd4edb4c'
            '2fd2e4459f4f618c204e0f755dc462246ce24217cb39ac521711ce1c8c21482e'
            '502414f98b68cfbd410695c45c41e844a921d94fa4d384533e1b90b89ebab3ff'
            '0ae83e6c21304bb71232b1465f91b8c099bf84755a9cbedac24a5c9d1e57a925'
            '2211e581242118c6b54ec6989c5e8c14a030f6be51b8baaaaaf18c613581c925'
            '1e30e4ec4fd1ec382d2e3dc8d6800899bc4a55a93da2a4908a939585fc505e96'
            '6469dc582837e4a04728a90a82648dc923bb6807eb796a30a76f0b7d62871fb8'
            '21042be687b28b18d4176061c34439de11b2ef88c163fde7a4cc79d5694dcd3e'
            '4c0ff4cc287e3a1a34556e0458876fcbca50284241538865c1224d91d84443ea'
            '3d042800e62e7579950261bb432e2eb54c98742a1166eba81c237637d02a15bb'
            '66f4190e81f5835d2565d620efe1485d0790618ea46037889fc153790a4a5b92'
            '0370377a056b2b15044c620568d7d3054280b82e6e97d70137090e4e3bb399a8'
            '0c78198b546285b55760a18080e910fa6f94a9fdc0ba602f4fbad10b4300914c'
            '621d466c4b5aac0d75ce7ec2d00aa903d51c70b36ee0ce697dc10cd4bb63a734'
            '05ff57f88ac30eb0703589bfeccdceeb56862201497fa660e6a77b059a1b395e'
            '4c7b9074a13944e83213f8a0dc5e78b42873a746fad470c45530042b6b1182c1'
            'c3312f9c39a26ed486ca2170d6caf54bcd52e3583907422203a634656e436d19'
            'bb1f4414756a814df14ab766e53d8de9cfe0b64d3c1da5ba3a847bc346c2eacf'
            '92ce5d5d825330b019d75a39dbb680fe24766fb33beff6913be52529efce1397'
            'c9c79cfd48255df07f435b426b5db3992e1c530eab07ac2776879e8703e78273'
            '3d2006c4a1bd842e348b2bb9cfaa6919581815dbbfbbccceb8969d0468d80481'
            '7463d77c26ea74fcc515728a42be12d2397b7945e9fb081a8ce6b4c7b8fbd6b0'
            '7b0934713466e97ed63be38d94c5d5dc307959986120aba1e4e97873262c4f6d'
            'b23a2135a91881b059e539fb32c739973ffa4d52295126f403e5bd1e9206c9ce'
            'c8439aed2a9e7cce0d91840f6135fa8a479f6b530015a8442e0c7f59fb20570c'
            '5431362ea1bdf889482c72d40d66e251a56f4062263c1e9bbb2789f3ac32c3fd'
            '52e761bc3a67a93d75e87b31ddcf48d0b60bc103163c6a687154550bece1b7cb'
            'e7ae629d7a6c4feae9d05f1125842bdb02c39072fd43c72f5f0c84a83e0ab272'
            '05a8234c05519683c0bdf8939f20559a8cd1d145d19972a40ee79ccb515a2158'
            'daca9d315187be83ea83228d090b6cb9e2ebc5233a159cfe61a4460cf2e37164'
            '4b5e98dd348b2f0aa87b5f12e33f640a5bf6e03784885c834bdd3b771b2f407a'
            '0c2d8cbbf044ba9e542b6e6aa9f46ae370d00e00921041a9aa4acc2758f4ecb7'
            '761e4adf218258affca042e37bc248bcc2180ebd0eb6cc4a5955f44a8f1aea9a'
            'da2df716d3db1899ccd7d2d6ca862d7a422d22ba8279b711e4a06f2fc6175b0d'
            'b0b4cdb22302cc809e451f741fa28d41c81cb463fc5e0d0a7bd03b41efb4ae3e'
            'e232716f0bafc6795c40fe64d90f13d8d0e37a4bc90604c08ca85740cbe9104f'
            '93315ae1e2bf138dcc61e9579521057ea00c1d7e81e32784846b1f9583333ada'
            '3f0724f1a90cd9e12916bb945b155f9284897bb86590e7ac36791b8baab88eb2'
            'aba0545ffb583025682af5a7542b312060d7c947c01c3a8eead032860bdc3680'
            '54ca51a71b33fa0997ea923dc58abb4d7079253d1ff1c6bcbbad034d9a3d4069'
            'b4090b526e3448362fa1cca3c6856032825aa09b4658ced08fe125b6ea9ff77e'
            '9249afd7d32bea432c2efe9a55a4f1e0a1a409e6ed74a683b12ef05bd380831d'
            '8839a59cb9f97ad7cb07c8eab01e2eb5c0464755680d2efffad32eacf5b9e3c9'
            '76faad271f92f170841d7f204457da50c3ac3051ca59c509567b300d29459fd1'
            '9a5823e4714149acf21b7efe7be63dd4554cdbeab3e27b7c8cde9679ee6df9ed'
            '4a96971036904ccd5ecc42f79d2ca07923b281bca4beb3c675e4b65837f22af4'
            'da60decca4e1ba61e34fec274e3a0b9f7582360fa04981975b414188888003ff'
            '2fa80eac543efa1db0b2d385249d87127e684f4d2a8042ef3a78d2ca3b289aa4'
            '2bee6b8060fccea9c26f4a48f9c50119e1884ef7bc8443ee0c94117f57b6a17a'
            '43aaa06b042159d2a0523b1be039afd3f5dec1621a47b805ca08410f0b916ae7'
            'f37e0cbb219dc93d326c85ff46f4ba19c3890327c74575f62dbccf64020982a5'
            '06535e6356904cbe82da3d8e90e499c3efd17a22f72660aef17e3ea64331747c'
            'c0460d9176fe844a8d60f443dc143cea791eaeb9aa645742224090bb6e5d2d3d'
            '7f0b5529af81dd17fb1d0c3cf19fd3e32dbae7c4d69fbc18195c2a6ed91a876d'
            '1be95d4349465045b25490fe4cb01d5d191cf2f59cb37533ca1e863a1ee3c040'
            '5d542d45d30a2853ef338b4262642337112c5a610b80f30f03227f4dbaa075ed'
            'd1089c58229e5317886af28f22947680b1aa889780e5e493904b239bde05e9a3'
            '6328b79a60d8ca4cf50cb8c60c181997905c082bb9a57ec5cc835a140900889f'
            '818100b9bbde350fba5b390d26882fe0df6b73d03570a3a93ba67d801b95f602'
            'cf9c9915cd9f664be4fdc29adbecf4ab232ce0c8385e7edc3cb4725df5ae5e58'
            '106eaa26ca05cd066d039f50f3b3dec7d607546c81a9dc8afc7d51d24fc084e0'
            '8ecca130278fad732e5f407a0a0c3148ca28dee9460a23b6fc57b795abb2d459'
            '88cc378401d57341869d8fed417f2e0ed3f96099fa02235df6d7b4c534683fe4'
            '41a908b69568f1095f06e7edad15306d30e8aaa8f974da7c53774de7795b0c01'
            'c7b9e0801867721b7f2e53a6c4f5b7de0567c72173afaddf715dfcf3325cc6f6'
            'd928ae2d6f18815be709fa131cc264e8564c47019f62bdd9d3c5750143151a75'
            '23407cd0a3bedfd8b9042a66080886a10cb2bee683b4c4b16bc6bceee87d875b')