summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: d684327e01ffa8ceef0b851af1bacd9a4c7f20f6 (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.6.0
pkgver=38.6.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'
            '28930a981335d7926c826870f803f49049ffd3274519b338c1ec5a0dec5764c9'
            'a53b1c56fd6b5f7226e74da4ce9046272c6dd831d06d3188285b18ac80875332'
            'b3c78b9102efe155750a31ccfd3f964f410c9d00e6ca4fd02f886314805ae602'
            '65b6ed62f315738ef7ca10fd0e43cc0c4b0a433bddfaf6114fbe2499441affee'
            '59e5b334ff1b58f6934fceb1573d12315ea258b4252c41c43f28da154251bede'
            '28bcd1093a2e2a2cab7cf6ca281bc14eb5051e34b8545f6f7bca11924a1c59f8'
            'e5898fb1554dc18c083b2762100830806d4b22153fdf5d8f2583ee2c24b8b605'
            '8784f46765f33557fe14e89ef3142baa7280d490ed97ff7f29dfbe83695b87c8'
            '5b4b75487e3c478d072876877bac3737020a709116c24a0b55fe821af009582c'
            '397deeceba72409863eda97d8b6b1b5d2f64b817c15057934ba99717de467a16'
            'c39e277532044f724acfb50a23720fc8530785bcb4820906dac9401141b28342'
            '7cb64ebc85801a376e456b30897dcb0c49a9a87b1b33e0c0831a56d997ac0d21'
            'bc6b2ee8ee0d4fbed42ce203a8fc61c6e6dcbb8d6792e9432971b58c7aacb0e9'
            'e6059b1e71f5ce5d2220dee78610c1fe26fefdfddd285ad11a74d13504122eb2'
            '1218cb97434d2755890eb36b9df0d6a0d7dcad3996960829cf698e6f6dcdea35'
            '28c9037043e55b0288bee2e8c4f00589346fe0b5bd6c15c86fa491282c3f9c0c'
            '2ee5c0016b2a7d4917deb44eeaf6db2cb3dd62e6cf8ba80d1f56a8233b985fb5'
            '196803cd3f5514611b5edcbea1d6a334a515e89f611d699733bccf0b9d142bff'
            '50e60cac8a7d06cf2582b00ca8ef1bd04fbe2cc1022715bff502a532cd6f3884'
            '218dd0a0c55bdc8e5f598f7ba00240b948bb3f97e9d39033065b27484475bf31'
            '7bedf795745122f284649e5e40e92b5920600e1cb548096d136343e0563d3dcc'
            '56e87bdbdbc771627461e66f30b60faa07919c59049afa6c6b63234453bd3376'
            'd92d56be1ebe1283e5139bde9074941e01defbcfa07d3962afd87c3fe4f97de0'
            '0f7c5b5dd1c57f70663c7ba1c145df56dd8670c47de9e6bb1cf42dfca247d0a9'
            '70e19f7549d5cbcf9a854322e00cc505fb691c3f9b88df6f0df45d97657c4e09'
            '1eea8bb56ee3c17a6bbfde43ebc48543efeb58857445e8fa0d7e0c9464232e1e'
            '9498c4e3e4b6086bd801a4c06b4474bbc8decdbe3dd2a654eab2d5cdd8c1d161'
            'f3471c34b1e01fdfa5696ec35c10b2063fb4240cc4a453801fcc269937446081'
            '52d2737a6c7a4b3c88c0deb91a104a6ec167e19be9612704612f8ff947ca7495'
            '12d0149b3f605312dda2e970f41a93fe7a8770dac5fe518c3c5d5d6e30f6e995'
            '9c65c7e1549882665e2f4ad679e112d7d7b374c2804393878d1c0ba022392419'
            'f7e73157267c1a0e174b4a4e031ab1fada1b8d709963b3387c22246f4a1644e2'
            '1fa2c9a54083444b5ca71f587466853f402c22138cda699bc73b09159c1cd6d5'
            'bde3d7878e11a61dab8c0827bedd01c6222dca6c05994cb0d00b08fa6c675a7f'
            'd5309d91d3d5c626bab4215101533c7791d5aae52b847054bfa7fe890664885a'
            '8653ed361d98e5b2d91fc12c4e8be23b8b78b7818ad4c5f507742608dbe475c9'
            '4c24ee81c26da045ea936d2ea6b461b103a7fd17681420ac4fde5abe4a69b929'
            'd1c3bf3eaf28d5d89e220f94a86665ba1a996bc27aaed3ffcb893b6fe0b66840'
            '300efb229c853456bf566f9825646b780f1a1090e9eaf4eba79f85a8bf2b62a5'
            '6f424ff9e4f3f28f254c4dcd548f0533cbc30b458e5f43cd95f71608c3421141'
            '209907758b695762f0e47dc53613fecb7b409d976c1de5515ae3dc9319200583'
            'f8e1b89268f81c72151bd6415fb348f8e5b523cb98eb08fdc9dbf894ec0e1dcb'
            'e93ec0fd53a5be55413c58273ad88eee5eb47d0827d6c6ff2926c4c9f1167bf3'
            '87c901e37a0c48b8a5d26a1154fc0f4300de20ce071612a89012c3131ffb951b'
            'f2816b4fcec6216855a93ff98467d1e9a1d878b266f3e55d71cb5829a81fd532'
            '353fdf5febd4aeaf035b3683a3e397b8c50357924b2ef91251bfe6c10e0e0fd7'
            '1ac4fa83e849116d143f712db4120ad6101adf1d4d4ae7cf800e84c5f2c9a7a2'
            '6c820a6aebe98c180da5c7b0f4f54f556168b63a42f68d225a0749bb07de2331'
            'b88549dd84041a03065bf2611a22786d2381e50bca8cf02c7d8fafc7aed9cecc'
            '05281cd921ac62b51dde330fbe6a797239110d94512c72434ed4633185d3af0f'
            'a98ce4dab9e2aa612a6edf7edc02285cab54e8f859b2545b28948066b4bee18a'
            '0f3bbfc238c197416278063ade0391331e036e6cf148281f96b75a960a1e1d0f'
            'e66ec44352cd8dae3e385e37d2ea643092a37690e1dcaf37a1749a93d75f0492'
            'fca37b424413ab88902777bbe8845081373211dc8040c42271d06e189ada0edc'
            '06f4f580d343357469af58c989892df7ad1124d0e67e6fc9d7083bd948ccc484'
            'c0d48764556a3563e2e86c1f9cc385d02f82c7b73b348ed0400a7df117bd1c18'
            '075021cafc597470cfa881da57c599cf6770281698529bdf01dddc6525078a5d'
            '36480d80d2268a0f01b61ad5ab4d8ef85fc88cf531e5ee6c60744abb3a31f45f')