summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: a7794bc990f8c55cb19b3feec0a86925405fd992 (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=45.6.0
pkgver=45.6.0.deb3
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/$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'
            'ee653d578b0e221729fb999c25bd4ef335d86c3b7b01d2fc3e18b5ea03a5c88b'
            '091fd74da82296bea2e271c6a86207e9cf60eeeed29ce62142b236888b78140e'
            '2e68a3c2f085a6302da84815ebf616b3ea1ad2b3c628c082c38b69c561bdac82'
            'ab15edef31542aea547b16b7f199ad3d18a6bd4f050b5254e6eeb17030b32ddb'
            'd3c996fdab0eca72e9a8aaefeb2240f75017685682539c43eb8fd66a84827950'
            'bee46d85f31a767dc53858c880086c96558577316a9b3dd6868dbc943d57da05'
            '0ccec986a9988720024ded63fa858a3169a763ae2148cad37750c9de6f18a2d2'
            '1e8d36a17624c33fbabdc8c2f6bb5c988ee486c7b11adf0d8061df1b97ae41eb'
            '27c40529dcbe9d4cdbc7039f08b10f56502ca422e404927da001e7d7dec80b42'
            'bdd2d971fa5580aa94aa96b2857d157ffafa4dc6768587299717260dbf6c290f'
            '55d4e9a79a282d6c510849a7baec19a47f773eb955919242d5233a2f4b8ad0bf'
            '0bcdfb59d568458b80ef612bccb707d8056c8a9333a9cd92b75efc0b49817051'
            'd60a50fd969c62aa6307a60a1bb4e71d1f4ea34e130ae3aeb7d0037f3d71e363'
            '56ac604691c56d76120a3e1621989e5e28e8c4229e0d199b0411ed46c754dd00'
            'ab6d518fea4762779c64fd8c1d1ee3dde2d4d59435f707ebc5f2800c1f354e60'
            '29efb181384965dd92ff484e6f6c2abf3e10b75d338583c161e24608f935dd5e'
            'bde7fdf7011be8b4266abf093dc55dac4dd572a4b2d726a3fa63106371e5c83a'
            '82b7f29c3e48cad54de5160cf3b9910c2c4eaccdb3c4b3f875914830b1fe7cd0'
            '6b4effa6407cf5da694195b13467ff0922bffb6fc62131430a157e8e15ab0de7'
            '157d481bfbe29a953209bd8e3eee11a07b37ba3acf0784a7b36c9bf4b325525e'
            '6c7a43d61589e22032cf93766fe86380ea547b2f918617b1da3832e8eda20c5d'
            '6e6e422d868d474ae45ce7905ffd1d2ef3e951dda537d3b72a90c45128022d87'
            '3726b69749729767abb6c3dfe5a06fe42c1f7a983f95d768a53056ae15ab0c3c'
            'd2f7fc855902d635dccbd02e2406c90667edc9aa8d280a9554bbcd33266844cc'
            '7444f5fcda4021ada5742a6c1d0e0f4b0a0cc27a66378788c292b59439786c0b'
            '6693365c180ea9b57eeee9d4b24fe0248847710b2fd95f16d3b6e77ae111dbde'
            '02636a3dd09acb63077bdc90460d0aed085162061d74b37d5fc57214c89c736a'
            '35f8f6769dfe15e42df3fab123eda064522bb1ab0ed4c01936a12caba2ffc646'
            'eb6005f69a350790a1d53666686c56ea388d2ee706e2403a6afa890e568ed861'
            'dd4a98cef101d5b67fcca1d07cdfcdc608f89c2e38a8b704ee1052a71737acd8'
            '123b2ca2d9e865f4e6b075047e898eff7bb1769dfba10a9e97325f30c8e1b90d'
            '519ff2d20433b9cb1206643ada4ddc1bd49a1fe0dbd6c23087b20358cacaa07e'
            '57281745f8e324f3661a928d48f1ce86a016ee530912304cf84954bf5325b85c'
            '3eb93c8fc0a694c673c44aae10b7a30fce9858b9950a883875426511b420f181'
            '3f3fff27e9ffd4da9c4145a8005b7a67dd8e30129e66aadda915304992f544fb'
            '279e1e182a1944e574b50c8613ce15f598c2e5c72d60cadb701d8c1b88a26aab'
            'ae32172f9d4fa281107b87d720c8fee970802659d6fa0f8e35bddbb349f5e091'
            'ac21fbdc979031ecd190c66f61fe8266e428f81c97f7c97c38c648f06f13eb18'
            'c079078f93e7e96989bf3815440dd0112145e7bac39e663e0938c93e5f5e04be'
            '4dcb7c48fab9e3be2de888f9d0faa0f4e8dec5bae08b05bcb0a64167b61972c2'
            '72650b3521b156900419f9ba28bd110e065902152076e6d679b1bc18d75dd887'
            'b4290497600fb260c1f874ef2f5c9e7c0bca645990da9e760b130ef0e9764096'
            'a064609cf3a2f523a1f96f21d6fec7ef11ae5a8edf9f7a62824a7425c8d0301c'
            'a6b361ef0e24e600893dc36f7d464638b188f229d7810dfd41d57bb24b5dbb12'
            'bb90fe916d3865f266c5de773957b13e025fe10669a8c89aeb8a7350e07b6934'
            '783f6984bdcdc2ebd5305ede240d81ba8399dc92187f8f9cf9aee175141c23d5'
            '4472231ef048b3cacab5ffadedc5232c9ed9cc9c4d47f013a06d0d040ee5cff3'
            '9664b4d284e0f72aa212773452a44dabb8a5147e1d958a79087f3fbf00d13197'
            '2e692c4fd9257d279b3acbbd297fc50650d2e852a003bd315c1c81c31e3fe203'
            '737fb80efc0bbdc7c22b06e1be80f68938726fff412ad3b6bd79d489e9cd1443'
            '1ed3dce235e1b2518f332955df15c16e9a3fc2665f424cf369a298e604c80c6a'
            'eff77f87b5924a0d061ef4503579b6925c243d91fefcdb3ad59609572b30bcdb'
            'f970faf50eead4524023bc348629a2602d62ceb8ad431552faaaa1fba68d0740'
            '7f78f3fa771314ca7ba9d9832ae095f70061c2d6440fe648ee649a1c1801c7ee'
            'e18b2bbe3b477e747047cc57edc3e790468cc193309111a0b77616691c3dc8ee'
            'b4553148ce716468f1bb90de3a5844c34f9b71d33e6c2fe4ae9af3ef62e4eebe'
            '533eb9e30f3c85fb3871270baae610cebc26ae46299cfdab62a5cd39e28c2722'
            '94bbd7bf116ba8c00eef0681aab28986f0be2c648fdf5145733d66a8c63c57a0')