summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: ce4d74709ae81a53fe32cf483d98c314c995bbe8 (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.1.0
pkgver=45.1.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/$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'
            '19ca994ba8ae469e3ee62d0e8f2c22b436c355a02ec187e81d615c67c9addad3'
            '97a31e91a44e84ce5975f8a4f15b1792c5c11b3a796d648e3e9943f51454bfd3'
            '7e7b3c6d8ce6c73a0cc522924bf578682b2b029c5c534a6bbad24968f086fc47'
            '4bbd01b864a0d57c7f9dd8f7b09b702db0b5629d5330ab23af64b1edc286cb47'
            'a234d2ddc12c466a2812329e3e2bb186bd09a85a8c0ab2ce387b7f6133a7ee73'
            '47c8d122a35a688282f72e70c29af8a6e0cf3b31fa1bb98da5f7ec7dfcd5b381'
            '9d0ffb70eb8b72ba0932c3bee34f12a3fb06766d3cfb063872219397c48685fc'
            'dd7c1720fa7f2825438dee59e46e5d93911d29f8f4f05152b61d0ec6675009f0'
            '5ef4be044999200b273a148f7bc1954c5a20047383ea27ac1eb065aaa47db56b'
            '7961f7214f3eff898964aaa2a79bf554d566fc18405508f504ba20b92a0085e6'
            '0f8291cbc88d6fb18fae20ecc30e1a70f2492d06c3734d63e8900f2977721a5f'
            'd71e1d3f0b9a583bcd67a3844b91e043ab7961219fc1ff8f5c98177a78ac0a1e'
            'f9d39cdecfe57374fb35694a3d2073959fe6c33629df3a124b37b829fe50bcce'
            'b339fe2259e86be929cb7e9a9e9779d2fc16c5cdd92949ad64b8a57553eb1269'
            'd61bda9acabc223810bcb86b73d1d27e92708f6517bc7c89663834058e36ffdf'
            'f05c5717d6b48632e389afde024a35df775c5bf5fa710606666f6385a5475755'
            '5c0de219e65edafd7893ae94727f002b6a8841c336f4f1acda82de982c76d0dd'
            'bc8b3283dacf9180e1fc9b8cd563fcb576d746aa2b085a4287d3b69b84b2f8e8'
            '625b59556469dad351cde4a28a5dce5529aa2465dcde1f7eaeecbede785272dc'
            '15f4c05034134d9b1900a8a8a1040686b9a711eca5ff2e45ddc502e0f248768b'
            '5490d542ad080fbce3076c691004a0fa8d47ead78ceb46ce8a0d1f6452ddb5a8'
            '473af6e3e4bdf460485c6a46cae6b14d15221f5eb17d2a36500aefe6cd2589c6'
            '4d2d14261e1ac010b3c762030cf416727821c433b2ff7b1867e5f5c07d8ca04b'
            '05d709219a0c6ef956663dbcbfa7f546a4ada1128922ad678307b99d2f16f281'
            '15bd061510fdfbae09807f7697acc6e743f72a634c91002e830001fbeb01f5f5'
            '05fa15c626a0166280e2c406947ebf28e463337f77086c5f7fa374e5f859479a'
            '3459b013efbfc2e15129b623869ee4a61810f4eb864bf71d3cdbbce0d3465144'
            '2dc60498f9ede9f084805c65ce7a70d12cffa828c19d206478a1966023bf396d'
            'e899edbae6b7d20346a08896770b63bd27226214777fbff43d8287407545b8a3'
            '5e8b49826771d87b40bd0de7c973715a9dc6f87cbcb57ecab2baf13c0312c9e7'
            '218fd44697d5d77e7057203c618941341a477ce84cd9058c4aca1bf444ffba0a'
            '33a82beeed8d07a0e99027e4658956ead6191c4d83731b8ed9785b5e4a8ceeec'
            'b88335742b965488b4c253b2762922dcbaec1b03e4a46e89ccf0868a312d97a9'
            '508616adb80b75eb11ac4ffe774da069c53e5325cd2518bea8a6b68124e442aa'
            'd66d4fff901d7e1b073709807f6b5d5d6bb3c1abac13df27c040f924a574ff05'
            '3505eab4baaca400374f6a600dc3502ddb8cd4415caa64c8e7fb8516e02d4ace'
            '77a7fd3ec33ea13f13dfc785a59bc195e4f22a526ce3af0657e4cd26a345bd0f'
            'dc8d2c6a679f6d4e911015c87fb67c82f9cef4820965e0d80a8c53aaba1155ba'
            '80a9d5f496db0854f565c1ab71473aaf5e39e2e0e312aa1516732d87f99e1e34'
            '7be57264ce44d7a08addccaa24661f9cf1def3e1e0d1bb23e4f8b6de72a5a342'
            'a2dfbf3e92891b98bb7ab6feef9c7b903f16fe4615b641506e3470ba5505af04'
            'bf7f0de90bcf22a5087fbe4883962a72efbcefc969fabbdaff4675eadc8bef86'
            '2c681adc6dc8c67ed7fd9e51a521a383c63397984e8d7f1eda915b3b3d596369'
            'a54eb68e4585eeefee3fb0e3bb02e9987002f8e0d6e2c268bd131bcb86dd5b47'
            '1f6d544d91d499de32abd5327bdb494e219215971dfa73532a4b184ace075cb3'
            '12915fca3a3a5f821f8ee0c4c09105ae23b289d3cb0692f27177c75e811987c4'
            'fc7295c884f537ae6085322333a477c0c08995202b039ce439d5e1925ca22b65'
            '1481bddd79f9d2b640adc3fa715f535dffada9aaac5b48b24bfe9cd9f77dee56'
            'b7bc2a32d62917609ee1501a747b648357a875a337aa466e8b846fe83c0a5e94'
            '8c4a165a103ca785e6b776bc0fd8b5d1bc2f9da33530d80aaa5fc6634272ed4b'
            '2ebe7c218753470f5bf9016b87fce71145994581cba6f50f99ae141aed3a97e6'
            'c8fecd5f57bc1954b5ffe8f3288790f59ef85c0734d8a1d7a4f5ae77955f1a3b'
            'e4b6656c11850367c353cf4034bea73676d4c9f90d9ed1121cca46c7603a3b4b'
            'bebf4f5adbec44d288bd5c36cd807e5fd894a39cd60b0325059fe6c0b46c0ffa'
            '8fc7721b3bc4010632041b08bdb7dde39c4ee6920afe5d7ee6608534a830abee'
            'a26268f37e0eeabacb84b514c6dc1bc033706230a72dc882b67c17afd46faea9'
            'e1618817070fc4c9904e752c9cc8d3aa431590b4a093b04cd6d54b4cd0b20d7d'
            '0e1939d37e92509190809d8da305c879f3bc48695272a0640ba1962cd9dcc9e1')