summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: b441ac374439b525d766ae0fa4a50b98635ba0a0 (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.7.0
pkgver=38.7.0.deb1
pkgrel=1
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'
            'c0ac4bfdd4dca19269e3d2bd0ab4dc9876536c1eb691ca5ed36f229bce44f8eb'
            'a39883f2f856614b915a7e27db4468eeaa656fc43676ee0120c731b0009bd6e9'
            'e1ded4b593e5e4f7d3be42bcea3f4a4482ee991e107ff0ca2c85e1cf2d3c3ceb'
            'd4330a18b4bebeaed1381a45bc7770c483228581587c3784141119eb66b6126a'
            'b2b405bb6d117b4990fd51ca70857f03453201b197e349ba7b96781e09b2fdb0'
            'fdaea8eb6fdd9aaa1e47f0e8ed7937f4872c5711361bb1bdb3319aa45743fc6e'
            '1c42477fbbc0005c4857a7cb6b1420f75f4752f10e441eabd212c0721e4b8a34'
            'e8052b9eacf9bf4e278e526687f7e021533a3859e0f67571d4f15ed6151efb9f'
            '7fa9612db30632a40046ab98ad7a11fbe2e3c5789749a6b499e2e71d23b18072'
            '78908105bf05dedcc5f39810466e8b90b0fca5223828e22c766569c48bc06824'
            '1cb5e297032326d6643291cb060efc5395c38643bbd2c7d1214121f44bf0246f'
            'a1e4fc1db7ab760e5ab9e3d6f10e648a7e37d2ed3dc8fb14bd95750fde3b47e5'
            'fd14bdacee11ca9ee8b8183c53f64ce587b870c1c7aceae3ad4a4ad4db5ece35'
            '48f8b9c703c8078ce6b8a9c08f9d5200c5e815cff6fdcfbde0ced9669ca2f344'
            '1729078e8c1b3ac244a044832fca5e8b0f4e96d6f48e654189386cd48f3edeab'
            'e8617afd59d1bb1e588e75c29a852f7ddb4283368b27c27841cb7b208c1b768f'
            '6b6d7fb5574073629c5212c5fc87d17b10948bb53039cab436a0d96a9c3c2665'
            'd46a09859d759d37ecc2533eef4e66d44438e5c343cac12aff7db057ca651ce6'
            'd4de01526f5d7bb7e1e1391e28aeadaa26022d95020f8485cfbfddc5b143becf'
            '141e76b1a70d08a57a76d4a79d39cf5b445004339aeef1753db90d1f1d5e0fd6'
            '5091d70352ed3386dbcd5c4ad69618c4cd7c40cd2998e2005194d913e8500ef2'
            '1b4b7158fffe1bee7013d6ae7549837fb1144e4ac9d0129f08a488ee1369f7a1'
            '38cd5311aa320a05936f45661685120ef9651cf6f1744e434a753700ea102356'
            '6d04380915106e6e9e246d90668b2b65f8cb5daea905a6deca95c5226da1762d'
            '3dfbf98ebbaaf111a21745f01570c370c04a87ddc9852b769ad42da373086b1d'
            '8f3f7f46a802b9df0615003567d86c1c99ceed4cfebe5eb37717b70b3864f00b'
            'fc6b04218bbce294b4f22e53625f0779ddb296d5ad0c995748f240aedd8aa721'
            '31121269b0b4d729d8b4e66acce8526cd1a1c489d0b62b64e3f2bb40dca4a3cf'
            '9da8777b04edba60072553839de1580e233cf607cdad7176f42f7d1ec0defc74'
            '12f4ba7162d7c7b931be8ddfd412af03b4294b3f673d1247860322bca12ccce6'
            '0e198879ee8bd0888507a39c327356860d1a78911ad69d8770831eaf4eed758b'
            '9197365ecfcd6f368721a4ba2b58e5f592320d8cdd4a5fa2454bf51c5bcc1b1a'
            '58e0720739d5ea98147e650074fb6dfb481c52d81823f928c290d1c5d9b42f3e'
            '471ced9d3b3eeb0413f5af12778f36a041401ab29a2a2a7a12e294af7415bc47'
            '692b7078accdc411d4fa4c97e944fc0bd82151acd04f70d7caa1ec10bc8cf8b6'
            '7ffada6baea6716cc8759c0ecb58e9cb0bb05905c1d1bc63cd56327ef0420fcb'
            '131e68c7e5d42742cf27d09b43de2d9cb83f8eb671793e58c1ba390fe8d64383'
            'bff6a6864dbdfb81b78bdd272c481ab5a580b53186255c99d603ee958f97f2c6'
            '98975558144aaacf3a96c74767cfb8241805cdeb2377f52b000d37ad9fd79077'
            '2809b8797409e85300ddf0b8c77e7f973654ffe8640134650bc61ab9583a73bb'
            'c6cf228d48db0b63c50c37bf2997b998318ae9d55b87850106d6015d34e5491d'
            '2fe9c6df31160889664110e21af18041f2ede3473c502a904bdd945a837cda61'
            'df9cb7a55b35947fe499e7fae29447cfd73e97cac42786ae35d89d854a2f50bd'
            '0a13830bd23f73ea19f612721c778c05699781a6cf5e6f4b549058070050e9e9'
            'ebd7b23026a8f3b99143e83e4eafc18b7e9e8fc96450d81eebe3808ef744d8d2'
            'b331f2426be5da4d983ed37968cbb8e5103e255fbd442a78a8083aa1b8cf8907'
            '55f5859d355148fa8d087317dbb5342c89e328eed0ec05c843c2a95f71956d4b'
            'b5ed0a0cab18ec34c6aafa04910caabfd6174fa4bc782a81ff559f600d452ad3'
            '772041e56945b242147c02cc93577d6f3c4adeb3255123067955f59f97dcaf87'
            '9e238c3f1bb41ad4e6ec42c741b1a45fb6aa6c221c011a95ee19dc0307b7d07f'
            'fc0f6f14e2bbb315de2a3040d1b7a51e659a8ebfed1b55ad7468b675d3ba58bd'
            'c8766ee2a78a6ae0f22992c55eb85c146130715fbfa17d3a5c6a42cbcb298ffb'
            'dbb4c38620a96b2556f9cb24df17b401022fca614f2a03954f024793e5b7a26d'
            '2cb777c3fec793d196c0efd9cf21eb1dc3bb0ed55b8b5e7a98d72771152d5ee4'
            '196e901440e03cd94f25010ddb4d4497ed38e83368729ba127d56dc30be10e77'
            '5a4ca63bee1e67ca257499f4aad8ddad9ae4c0b7d9c18c0786dec1a413ec8767'
            '4fe66ac9ae15dc07070753b25a2fae382cd6a06a7f738095233eee1d94ce4c82'
            'ac47de156e0b32e661333197c198634aa333936a357b3974b1a2f7c4761c31ad')