summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: b56e261245bb4106b0fe87e4f8631fa1edca2a80 (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.4.0
pkgver=45.4.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'
            '3742f91169a3b677f20deebf0a5303d67276952c217240123147fa33f2559f5c'
            '115338fcb25bb536580969f683e0712f9325371c50fde1040db39e6646e1127b'
            'e6d238d0c183f3c3443632984937948f96da0ab646da7fdf9d0137cb9cb94d60'
            '78f052076fac13bad9a41bae8f731a00af15575ebfe9276638665d7544f607bd'
            '6ece88bd01954cc52a10bf1b3fb537eb3e12c4a1cd5d93d9100f476cb2f80512'
            '79a64fdb3c68269866224b5b9a47b6ccf13c4eb6870f58c8059541ba3aaf818b'
            '850f9ed3e20b6fb2f82e12898892c0ff92cdfd14bff3b853b843cc3a3f62887b'
            '01a18bc70d834c751f11b2eda248f239bad0f698631f668c3a691c0a992de6c1'
            'f2053a69135ced25c58e7afb65c05812a667d1097965e6cebc7d1d903897e03d'
            '98669d0d53189e111b6766285702f0f2958112a2a1e72c250aa285de05a04253'
            '0d899493efee990999f48260825eb19a9b3e840beb6e3d12eb76cd2abfea67a6'
            'ab8a06ea69d8aca4a33807c15e6bb8c8e103c798b25bcc07348e21a9c054b3fa'
            'ef0dc8ea71f43a06023a7cf0ce5ac4b2fc46977dadb027e4bee45c3a947be2c8'
            '67d9b02860f07fd3b87690cb9bf7caf4f27b1c1f2076edbd55833721852df120'
            'e82105e08ca25a3aa1f0bc12ddfa39ef673e476f0c067809e78e7f05ba26fc1b'
            '32fee60118f9616b08d6cc82a571886b181fbb3c0ed8e51fe66567cf98fa8dda'
            'bc0ec66057808053025008a1cb0b2023d91e6536d9f64b2aac34dab6e1f35240'
            '0e0321a4c04b707fb9d4a879eea38ff4f1df56ae6b1a0dceec724cfeb4a48031'
            '173862da12643d9ad5d0934e859081859a728cf604dd6d72f4b71de8e6d61865'
            '73024f4eb37f2b48bec2e47f0fa6fa3e97ffe04400713e3b452143567f56b84d'
            '0a6031d4535de002a0cc040cafb1e598e2df98ef670338c25f754a8e242eae55'
            '72091838b72a7483f59aaa8b0c830560a75e5f1884ea257843c8a8bb526c88ca'
            '1f6fd5f118720491461ca51e342cf71af0aa6df5c92767ddee102fd35f14396f'
            '1c2c3f6ef55aec121e981f78b3289beb53e0e11ad1fc4be969330eab2f3e28c6'
            '6435b0ee04332a69c7284f221c58f0e5fac2208499f4f8850f5fe7f9c36cd8cb'
            '1d63d030edb43a14fbeaaca01a048e5b7de6d001d9e1595efe2cdbbe32fc89cc'
            'aa7eee8d4ec03bbee12414d8526549925d742416b120c591099a7b8f465bfe26'
            'e905d2c8b5b62ffd898876c5bf5b4f1ee62198730eee6ee7e76f90e12a73fbb6'
            'bc66e42252f1e206ae63625dc9d9038403301acbf5a8f7f71a624322fc1008e9'
            '3f20eebddddd84b4da13b44335576c6bd541ec9286e7b6d3a2aaf5c50f7b5213'
            'f504cc06e99c0c4d5ecc4b4bdb53f63cd620c9107714c3f8cc0155cefd2d2a8d'
            'b1d8415fb293c4f868306ac65e7ddadd06740ec473cb0477ccb4394e075467f0'
            'f0b70688b8f3fdf3fe287f8d502249008fc3e8e5a79e2bc794d37fdd6d1a031e'
            '4b637aadf553b85dcab6cb7c589093ec7f42a4bc3cf9ebc44a9347f7839dc6cf'
            'db0731e45fe914fc546f13c8c0e3dfe302333a8414b957abe01a8611b51d2d70'
            '280c80246c5d0ff505814d3104f9e967d50210b52a8b95d31b14e42f17a2a167'
            '41eb2dbc26bf555ef46b00bc60700bb93ffafa46f9fbebb91a7b46c34599b9d8'
            '269f0821b14dbc2a07b9e211328a6dddf5dc60ab965e4c7716346486213401e7'
            '8480a9a81980119e7e9e0fe02d0a5f5dc8a150f848245975d46072a9991a8001'
            '8fa60166d04fd0e8aa06c3ae0e47f6ffd7f8fd7c4488782df8f52b678be04b11'
            'b691c8758b8b85cfcd1c255f96b8b6bfb6f74748fdfe087b962283bc97746d43'
            'c6b847c7275389d7ce2a95f9203088aab18213b3515fc2950f3c91a0e50364c1'
            'd770f8ee181afff99bd5bc3200dad1c83bfd82589e62b7b486ac7f2309eba94a'
            'a7e0770679dd02dd1afa356a03f51e1b217bef1b3864e19f106962a9fc69a2be'
            '3f3664f5ad48e062ce73625aae545bfbf1860d8b247a1515b4d18f379291bde1'
            '18643265f02d7d0398e219c12a2be407db40bd8c34b6dc29c79342734cd8acaf'
            '5206e8b878183277c65d614377c154ebfab34b094c8aa76ab93fcd92157571e5'
            '775d268775de1c547e32981546e7bfcd6d73da880ebdbb85eeea414d7017293f'
            '0715d18ca9585d7f36d771e22a02b3890216c70ed1e68f6ab586929e613c6e5a'
            '1b3fa3df5140e934ea13906d5db934c365edd9573b1b0803902681a342bba08e'
            'e8ec87ffdd35b598846b7389855145c702e763736f5481d180eabe90dee643e2'
            '83e2cb632f8bc2ccf5e38ffe3a952741410451e3e92a7e2e928f62ac5806ee20'
            '6962a711d3e008f3e6d56b0e21bab1f877c9a94ab8b1bfc14fbd1461cbeb674c'
            'a38156623205abff1865263dabdbebbf834ef64f19761bef698eb244c3456fdd'
            '2b23b35e01d2a5d9a32b1a6e96ab4a2ad6b8fffb0ecec2faf6d5ee9b49659a10'
            '35ea6857cbf496bf918756db414fb612a2817bf59c26134d57343207f2015072'
            '549174da246854c7826cb3047306d59c5e34cd6568d1091f07512e8a5557535d'
            'a865d3403db417a513e29fdc80ffaeecaeffc130eb6d4183a533f46676809d32')