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

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'
            'd7a8692d263db8627443b2d8c1ecd4d06364829d0e9f8a890e94f2a25d0a3421'
            'e3b74cd07dd62ee3eedfb590ca213adce7f9143ca2a4862cafebf735622128bc'
            'b70bf171595b5a3bb92ba490929fa5a6e476444cc3c245661e28f20ba39dc62a'
            '7a900ef8aa8701fcb24f7bed71b852d1d359cfe5f7f4e8a9db509e1d62ea3c3d'
            '48b69b2f1c5b17fde1843b8e53f55488fcac27baa0f6637db91ed3cc6c328508'
            '773eb2acfe8d92f4b9cea7aef0873359737352553483714be07b63012ec8ba4d'
            'f0219905296688e1ec94b8f96054764caf7c00562e7ac2eb5893c03b2e324aae'
            '482fcce244877679d63fd1068acdfe9d366e7c3f498924fe59f0e928ea596952'
            'cea442f2be7885835acac51de212777c5490e20df393b7e00d2757100bcfe45d'
            'e128e9a350135337412841457c3b78c4854958bea828b5d7d5e42c3eea6c94d4'
            'ff985a3332b7e2fdd4e725bd128cda9b1ee56d9c14fe5f7e8311c445564c42d2'
            '0b6f1f21a5b69b1c2a0bc9fe1f32f45151f1bae9972f18917d75b7d09251355a'
            'e7595d5a39c6da2b1ea5f6ce1942eaede35a7f6c5856db869be7f49bc41fe86d'
            '43a67f8ca8e69dc06a9c69b1dc1eb5d4301f4508287c42b3f6d36a1dc71b75b9'
            'ed5b96993d7fb83b6974d344df537ea59bd0cc82314182a6ae813dded45387fb'
            '2e616795cf3fab562732eb05138d8382dc5d702990c9d92ad09b6b3a3f0c73fe'
            '2dc7a0690039a04b08b07fc9330100b66854b68b2b4d1a85a72e3079e1fe61b8'
            'cacd00e442583cb57a7a0ca248ee3c4fbd3bda507f67bfa10310c59eec4061a1'
            '5846914c053b7ee356679505f5b62360993bfb15cf0da5ec128b1039f7af3edf'
            'c1257f1b837efdea8c467b88081067cc3b8e356c8b3f44eee4f4db59380608ce'
            '707393f05f86ea10041d31ff9d61760ce9369bcbf984999663483e451598ca0d'
            '0f470c47ec52274b7d494ff92969af52a3974e49c7065376afc06f21cff39e77'
            '660031e37fab05c0320aef1aa8a0695b7ad7ceb9618428f4b89074e76cd5b4cb'
            '24fb9d5228673397ef95906e36cff233bde2ffa4d76c7ad595eb1f5e0b77cfb8'
            '910a1d603b14190034342cefbba9f3033d1203fa4f676c4c3e29675fc6c249b7'
            '97bdca96b8ec2dba4d8cd352efc72096a81d9af5b32abed7da99f2ea0ae679f4'
            '10d5bbe2cf22e3946cc67a8b9255c328740d61f292942990ffcf7c113edf5b7d'
            'f0e0400623dc851dbfab041b25046d8ba670709475a869d8afb8169c83ace57e'
            '78510bacb950a5791ceeccaa41feb5c09053bf685fdaba8eb4c3e260b0c57ca1'
            '8dc22d30716cb406e443d725ce826d47e5a917484f88a2dbdd6e0bb98a984bad'
            'be1f111bc6d0589c89fea611b9a7b30393f564405e41d0403b628ee4204e72e6'
            '7fc49a2ed9f7dd1b1c983219312bf571bcbc4b435d2965c61749ec63f96fbbc8'
            'a32ed2c27a4e3eb559db3a95e4e7bae1f51598b37c5a14598dce46d8ca19fe9f'
            '6a256f33a0b2efb1799227d70df8595dc34249693bee4f4bdd0c9da305c241a2'
            'e5449c5269a5afb66b716f6d090fda62749ec7717d84bfbda0dfab5e7c1af7f7'
            'f21feabf91cada47ae535564d232321281a10e0f41409586bcd75e50a71066ec'
            'b37355ad80efd2efcc1841dba2622eda5d1394fee894a72490fd22511493decf'
            'd36ef43362b6018f541fcb09b81675c8475338b044f1a498ba3c34250b30c682'
            'd9a3575b7ece3402873cb08a715ea790ba2069de8e12b401cacdd311028ae1f0'
            '6e4d03c494ab3d97905d56354e6c38365c8a881d4d96a8b3f2510f91c58cad2e'
            '011474c4243c2329df60b8a6f48e1a8f31dcc835d09e9814a316cb13424b2b2d'
            '1282e8bd498578a2e173f9050d943ab1b46e756cd383255613ed6c53c8174a3e'
            '9b64fbfc1e7390934002b738ebc9b772617fc765732fc51718d6218b0ff07f43'
            '697765a1ee4cd86e4ecab8ac9588bbe949e15be238f35f59af1eb87ec4bebf04'
            'f8fc5945970e06506041e0b141ad375397c409d824b4cbf8821237e100bb9f0e'
            '6bc9e3949da3e6f72a488adcb55be1396141894d22b28d2b8275b31ff8f552f1'
            '2673fc5e4fc529f034fae08798f10a056d512256ba5c6f2ffdfcf6ea83bfb28d'
            '99f2609c7104a79ea5cb115d204ebdccdd62d831b8402f05e6462d379d52f2da'
            '27d4ab4e421a621f12692c4c2292898faa1dc4cd03de7f3b469fc870d0966bdf'
            '19563fcf14343996feae7ba2306e3b81e6433e6d7132a568c2efbda517dc183e'
            '0f59d39cd46814960b3f0cb8cf343d91589ceb4db9f107cdcd99d18a34f791bf'
            'c4690c86853e9ae0872de07ed96a6b71e564ce5baa6d03f79524cd62226898ba'
            'bd67efbe342167fdcbb4438591487c6dd1c9ca46e9ad3fda4bf238638dd48f3a'
            '6368e1d090b810ed49b3ebe2634f7703c54798028b01c67da022069652ab657f'
            'fc98e7d8d5f6c97efa2dc40133a70170a3df05aa497719ce8c3befa1fd6d68fc'
            '51616ae863d2885f7ce669df80d1e388496935497d598308d26808446b9489d4'
            '1878c3fe119d2007baea3a6759bc950fbaefe93fc372d3b92c6ed64b2a946859'
            'dd7a1dfb847f59cb104c30365ed1b4d661145a6bbbb2beaa02b36cf36122bd12'
            '678218c48d874d5e308301343d8bad97cf6827e0fc0ca34d5ea1b0ac58beaeeb'
            '529ce11312a84c63e5906d4008d08327ef591fbcedd935ddf56f93ac1b1b20db'
            '5515a58cd0b691a1d0dee964d931279b8729cd59f3ee45b23f594f5d1df04240'
            '6f6eb33c9c031b73c194f4996c2bd5b9398da096289d2eefe628529299ca70ce'
            '2cf40947dec980d24583eb5ef57f9461848fdcb7e5fd6d534d670735a7bb4120'
            '67b63e5333f7ae7ea04ce6663c4ddcfd0e2ea220e7a584b3963d242cc7a8529f'
            '8ebcd3cca7db1e7c7cc3f41551fc83f2f8a2b13099da6b25ee30f884d7151f18'
            '1d058eed9225d995bb7ee6d9a3aa6218dcbda86fac340cb9fb2cfe45da895eaa'
            'f8dff411870edda5723264b5036de51c3570b96c38a31f23b495b0eb74df25c0'
            'c9908b06b105741c350c04c61d85cb14971826e2c6b58272386b7ba86bd5a63a'
            '1fcbb01397b921033ea5a70395d67dd7e143d7911cd03890c7780a23be15347d'
            'c98eabaf8ad597139f4ebedb99baa9d8197783ea0afbc069c91310f4d5524f6f'
            '7628e4678c52354a052cc46737d99d404c0beaac9498209846b485e0c29cad52'
            '464ec41a13bb5ddff649a9a4813fce151e1316f4c1c51986ad60235751e17d46'
            '3e48f9ea89318840b0ebbaf6391463274b06a2d48f2294299a4359cec3be0a1b'
            '34f36e0198c433a9fd54ee3e7b764bccf2d85b740e935e7bc6831277028c834b'
            '0c7ec0d8f73f6068ddf9690f606bee09f0526d00f7c5bd228af01b761d53dda1'
            'd4ed63ff20ac403335b03e5b54bf180bfdd977380822f8d26452a84da114585b'
            '68d98489e93122e1c5594a940dd64008eba76b33db395318ded2817b34ca8012'
            '6137cd4bf89307079e89e1013347b3d87f9f98a58ed4deab8547f0e996e771ec'
            '7a665dd51bd4220e26c3595699da7a74f77616f95f42e2dfcc962801b64700bb'
            '29eeb5eb7ac50d0fdbb650c03baab11c0d49554977e73ac6950ea07ac7f6e71c'
            '463490cfb5c2318dcf86806b88f01fab3c2be50f6c31e6d92ccb629ce1d4919a'
            '1c5ca321aae5b19e6e3ab65aaaa20f1299b70c945a0f1b0fee44469432a8ce6b'
            '9f8aa33583cfb8eb0fc3098b96a5257a392d982b26643539782b7877922c843e'
            '6585c958190e613a81665c0b43670e2ace1645250e7238cf0a58d470f6416a19'
            '6d854e679ab9f9e0f080e94648f68366d32a021b77f630820ae164bd9e348380'
            'a1f6c96ed3c3acc684bcc629121f428962b5e111a80d445479371ae6c85511a4'
            '162ef60b8a2f7e7f348d8a559ded2a325ae8c81d58d6574885754e049ae5cb39'
            'ae9cf45b3edd150110cefe9a4f043e6226b459f339c7c719576e16f00d677e6c'
            '6dc69a5ab79f59aac8e5930fc4ba0e914e0e65ca35b7a192fe4d1635bd9e9f43'
            'f29c6c77394b3fa7e6e28678873d6b6eca548ec608ff1cf5c6bbe9ebdb577f8d'
            '137125c20dca51d5a54354237f0b79e88fe15fdf6dfd731422fd72556263dcd6'
            '25fe4075b7b5280035f5304844e69189978d47b7b89e9d1ea7eeb26c452c1cc3'
            'eecd8b8c525531fd8aefb45bd5ae5a1cc97dec025f23b2ba9d17f04d66da8173'
            'a21ee4e5abda073457761c2b402967628ae12acbfe45fe3774ec9ab8524e0c60'
            'e64bb7b3a59d21bcb3746611e9b8ea468aa8b2b15039a86275ee8b69cf05b285'
            '0cff484e6bcfca7607d35a32eb56a7d098b39a78268b1c57384cbe79124ffe11'
            '716bf7a0f9a12d088be1e4ddd07f2a3861eb7a646dbf0ad1fea1be3187aa5049'
            'd2a6d2fc9408bc5b7fcbc52857c794147c67e82291ba551adfd94f3184bd03f9'
            'f458ec4d93120dc015302c67ecf8a3fb70bedf42803637805a739a43d187cda8'
            '9380589f63f01e660eecd035b1742f740b3b4b0e6394fae5e9b27c2909ef36c1'
            'e7d418562df152cb220227432d87e5808675a859267a1238924af67acd073d9d'
            '617db320c9f49e2f6f8d75f7dd9bec27c990cbffc2631192bc1c46c8dc3f77ee'
            'd563fbb8db8bbe94e19ab2a24c28f4b272690454175b9955f8e0f84fc08f8ffd'
            'fbf49d3894882e9472a8add1d2c34acb27158f7e56d54260f36092a6dadf5ecb'
            '66e0ed6938917713280892a263b3158494f2d7a112ae9d742d94b47140091d9e'
            'b9b980ff76af72bdae112232b3d8d6e0150b879c970ec3ab9ac321c03891198d'
            'dfed225bdb5490b547ccd7f088342f32e5e2b28214c6a7490cba5c189bbf149b'
            '5c25dd2777a874bf32523a3ab54e828dcfc7b244fb77f897a641ffb91d12b1b6'
            '0289d22b1263c1138134f5b6d286a3a42bd450eefe297cbe0c62f76cfacaddd6'
            '5ecee09e88112d5cdf53710b8dbd6c2f235f54030b7bd8df9c4344ba853730bc'
            '0d2f1e4068a42f31f58b92fe273685225bdabbda121e57936e0c73c5c18a40e3'
            '4a6161e32135462974add9714d0115711037af844b5a0bad35474d983392736f'
            '240595758975b80c2a205ae4526055307e61f74e5ce1aa58cffaded88f41600a'
            'cba84306d2f318605e644bd2a0e4896b53746b9143af79ebfbc91a665af4b43e'
            '69c6202ceb23bf912e99d776203c7f1c22ff4604e87bb819f78f5e6f9a28e2a9'
            'e4fa82d51fcf24bc83c325c2c520eece28267db26b8b701b46070362f9916400'
            '861584c71533159d58936c40ab60b1fcfd071a4b568fa8a779374e1b7984e2dc'
            '9ab05de50ba2458284ebedb4c85216a4f366c8aa40f39bfe6d47b24bb127ad51')