summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 3d57c4e322f8125d89521d47d34ea56920454027 (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
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>

epoch=1
_pkgbase=icedove
pkgbase=$_pkgbase-l10n
_pkgver=38.1.0
pkgver=38.1.0.deb1
pkgrel=3
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'
            '8bc4384ede05efcb02e67a8888651a81f22cbaea3bbf6072e156d707e2a9ad49'
            '2a8b35fb65014cc2789e38a396a9c153b8726f5cc5c50ec042e29d9c7972b4fb'
            '0bd3e4dcc65e44d62127fb1832803f75a0bad4cd179135375460327363e81864'
            '806a7f2d151db0f5334b2791dbd708b3f631b2ec214b2f6edfa7aa95abe0b59a'
            '5f16873ea47e84fb01a263f7ab59a90188ad6c5b57ab13b90c925b4a8d0bf06a'
            'c976d2fdb520e178df568a5824f4416b043f9ebbe436ddbfb81ef5b5f972d6e9'
            '82a2eef48fefe335f1f8d53d21861a45f7b73b4ad8b65c912f9820bf69273309'
            'a1e0b882b599705e1150a66139fee97dc009be2a8e64e6a7c2b1158373bfd3ca'
            '877cbe5d9dba3f90c2754788baaa137fb45bf9e2d071a50df69e970f341a6365'
            'fad0fc825311a1b546eb117c8cc838f542485ff87cb71c5a656c449366a71526'
            'bc900b8f0f2db4c0e5527780db826789d61bf5b265ccf62033909fbb4f21e12e'
            '06ebda860118ac5833c6d8884a4e94bab7265622a48978c0e1b472055f784314'
            'd6df1e34d17723f2b52aecea1fab9af964bd936816f51e5dc0f335bbf59a9a6c'
            '07e443159860c85c82f01dbc57e0c83904fa7788dd69fb234970ef0484afdc81'
            'ef68841d061f743ab199e087ab45c12a2f1c4b481d2017f535bcadab2e8902ad'
            'c5b0d927e51ef06414cc14a64ab84d0d4e3b86f2833dd0bc1211a056507d425d'
            '79bb32e02108f6f8971c6504adc39ff45a202cb91b6e7daca286a3b0aaa6e1b0'
            '9fe401fa441232dd29fee49d26fcb65af34ccffc2666bf2fb09546a947d91e9d'
            '0d54de9beec9e2f232a016d93d0b626bf8be86a1966ad6fb02c8d1cfe531a3f0'
            'cc7bf6325bf7d4c914cb7958687c776db8e2444cd969ac16e91d6a67be0ab729'
            '56dbffbc5e1286f71eeb33961e209a6c6a9dd3916c4b3432733baf8f10c10e77'
            '00ec21c0bab139981ab81902051d7c59a5fa3a6ae7865e9613ebd95c0fe1bf87'
            '76384620c71115c8ebb3afcc4b30de9de45d1230e44983b4bd3d1473bb9c144e'
            '1da8565cafbb009abb0b0424fc15e0dc2bcf2c3048e14f7e1cf5e62bb5618835'
            'ff3d29d1a050b74e64e0a4450b65edb247a5eb36a1b8df6b57dc3851b1658fd3'
            'aab3240dca233f9e6ec9077be40a3d0033d75ccbd196a9ccce2726261c9d4c41'
            'f368ccd53d7d405c07149b351f56d391142b40e8774d9d7fa623ff3318428b6a'
            'f47a8a2ff662acef03541ead6caf3e900706ce348b7577cd656222e9dcc2c47a'
            'c8393cb2f5c8aab62fec71e53f19791e7ce4d3acc37814a4796e7b390a4e1fcf'
            '56454db77528fd2bc02abd4f4ecde69adbe278cbe807842e3e92d709d5df526c'
            '913db42b7530f55a8f3836d4dd493cf45df86509c77cfc64aca28c4bf60c6321'
            '0a0194046282ea36e3c48238f08bfa9ffff07531d473b9a800628b6fb22b4970'
            '2b7659c9a0c57e608d05f64bff90b3f6e631ce089ed1135465e89a133482fca7'
            'c790816d9a735d0ff3e3d82516b6c10076a94c6e278fdea05f04d52615984257'
            '42a147ac06a0cd7995a78f014259464db2e51391aec4ea16a548e0d5f156d951'
            'bbdb182ae21c8b8da1175b5a936e8563250838e538004a45b7847d27a0b192ad'
            'e4b10c9cfd80c6f9b683880e454cc3dcd2e9eb01acdc0090e73b6c6b6b71a7d3'
            '032f473e1fce313d8d9cdcc49cdaf390711c266069c45df4dbee2e9c81e19b0d'
            '361710679e3229b98aa5785b1cf36afa493e5ded84353a69574e4cbe7f5bbe29'
            '53afb6a6ff09df13b97ffc88f95a527d860e751fd79e873a78be2e7bd977a15e'
            'd9c770408d6b8cc52df4113ccfeb339fc7e34ca45a62df49ee5f24e70a5e3503'
            '8160379e9ff6319939e7a9e2d37c0a7f66f436796f16c0c3ef8a70f1a2e17ea0'
            'd6354d745df58c48d15792c35aa8f4874d11bff0980df6b567de58f659357efe'
            'fbc4bb3603cd5927c98e82ca83e830bd0c0807cc63ee0215f60e1cea66cc4400'
            '2e768e1a2e9ae04bafea1948c19b2b6e83f436f3a2841a94550f95bde7b30b42'
            '85ab5454186b1a35c1268a8854b2407f1a260857a092de2cdc1c0fb84e278104'
            '8df4c4ca6dbb901f419b69b37da8b0762483e080513b6cebe0d4424444f6ce25'
            '8b34d932a49e56cc47b9dae57f7a515b40bcc1ae4efa50f1dd275855abb30659'
            '7d2bbe2b04052165bde61b4e24f2c928460f914a57c8bec36d3496de67d5dd66'
            '0e41b9ab3ec7853e3c8d19ad6380598ccc4d04884426f64be577a045f876cdd6'
            'c2d6d4a751580f2107aaeec7f23584ca7a8803cd15289fbf863d124a1801ffee'
            '59cfe9b9ee411b92e288d0050ba3baddd5bc7bb779ed4fbff7681ae252053133'
            '891b12e9f7722c570189c0c47a814e96ac3ef9e16b2d50625a4766085649d16f'
            '5b42a203b0a6938a9967ce982fb800bd4db8ef0d2def1b9966e1352e843729fc'
            'e32214709147900c4336af83dce5445614b72d4059dad67b6f703a0853ec2ad1'
            '6d9b056f1d13e7dd95b79780c65e202c5c428f87e206370a5264644579a41626'
            '9d00bbc2f01c6974877923f9d770e16112b5e859788a728a7244052361f1ea7b'
            '65dd33db3a18a4f8eeb54b953650a3a592a8821765e44888849f15531bcf88ca')