summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 5f418fb2f0674e5f1d8b9653702e56282214799a (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.5.0
pkgver=38.5.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'
            '871c5198f1a5a2b5fef7f817d583bd91300bfd32522b7a1801b7e32b478a4bb9'
            'b8a3c66806cb11447fffe54830a78f96fcf828722708365558bb74e173a43ad4'
            'ea1db89d0f5b511cd9ac513b97bee00cb42decd2b87e071b5da46a3aa2be81e6'
            'aabc2ac3fadeaa3ee8abd2e964672d690bb6e6b52c795b1c2d6d64b37b36b885'
            '022892a83c16ef4b9532c7161d94f445d1d96d00c8229c114547989d1c323ff8'
            '2561fdc06b3bc6cbfd5b9324c5a036e94329da937d1a5bfa61e3a6ef0c5f4af2'
            '40755d7ba80646e439d876df51f53bc7a38505997d54eb02be06072257e7378c'
            'e7222a48b20bf8f209dab4a122d2c6ea096780dab47e6868582bd1e2f6b14e9b'
            'd83024be415a394321ae8f376370ca30f47763e81efbc769f383821c2a8cf8a3'
            'fc1c1ba9b1fca501994c281b1b12f8ec0956da15cc0cc64a2bbfd3f497a8770b'
            '3f26cb352e365cf424cb10dee362b286dcf977c4a7d13208a312fd29a0844a73'
            '52fd943ff64f827de7fc34decbecd9c68e4eea954a908c5e0d9ecc36a1a96129'
            '22ff637cf6c4c8105143ae160c4fa8a83dd1ce6fa4c11947faafce5e7251699d'
            '8bd1493cab380c5a270a5d2558cf2b0fc981f6751e04080e1551d2190d6137bf'
            'a4ebade03dcfc1d4477cc53df8c304af018f5c85ca25e7d3e1241557d57a0d61'
            '7e302508478080537444518a6b4255f571772c7b4d1f2fe139904b7e32f33d4b'
            'f6b29935579163d64f68d8f2e85eab3f98c1fc1a00d03822ffbbe1902e7d35bb'
            'fb12d4fbc020244b27a0316b863f6947390bb13ea84a81e546affec7856ebfb5'
            'f8bc60f96ef8b99d7802986aca15fb356177b7b6c51fc8619507581e040e947d'
            '1dedfe35f61268451437cc9df8560d45a19a9e0e8ed088cb43e51563a9d17838'
            '4daa46ff54c555e5a2c3db3ceaf3b40184caaec718b56ee6f54e70f20f14c8bf'
            '5ccd1f8bb4586826a1ccae5b1dcac7f5327280ed6032f5bc75beb525419f7b58'
            'd22650501fa3e4b2e43ece4bc3b13879f23e45e348f6c060a641acb7398dcbf3'
            '2c760ca6f7056657aded3decbe7139f8765d7e44c831cc125f20f50232fc6c20'
            'ac0fd1265717fdcdd23540c50df3f21c5e0a5067593e5a9ba380f8f18df6b71b'
            'a50455fd9f1c4270e9d3fe9bd515480b581cbe340c2c58898a7785df4099f6c4'
            '9b6f6ac7a7319a84faef022d6d4141a61311b15e568e2d6c98f7661bd37b54c6'
            '1d24994a53b2f6e3620674eb7775d84d99be5b1bf2832ff8730f5da20a8aa650'
            '52d41bd4d067e8c265c62038b01cfbe2458a8cb633faa744135fa050abccd0b0'
            'f954363b73c878e9123051e8242721994f07437b253e7057d8da17fc1e9967cf'
            'b6537e90c3cba54480445aa3d6ac9db4fec2b37563e6f0b124d24c8d732b7417'
            '96cb3ca1007cc4099e263d320929a61cd95d708162c1744cdf3daf6e50876e7d'
            'd9aa92b84cdc7d133b1ad73538ffcb665bbe6b016bb64be0c5ada10d920843a5'
            '7c7ab7be4d3bb70fe0d03e8b0c975d5e575dfc091ffb15978e3b9e7db5413352'
            '7d86cadeb8c153c72620c9408219ab80266848efce89301962b8f1256c808837'
            '9e9003037bf0847b5aa7bd317d6689eb9c7aa75d4809f9e3bce47f78dbe61d93'
            'ca97b65ac556c20d4e2587c331eee3ca8f61dc6a6f77aa21c9e8a2d369281db7'
            'b7d55012d95d837206a31a4c88dfef536186a75bbe641bb227b80626cb07e636'
            'c0a8fe5db11c7d92334e956a0a762b3b5a23ca545a1ce11641089e76dd7b711a'
            '7768e9f5e030cfc9c05ef098ad72d65fc6cc660cb6e53de107e2fed35e516dc6'
            '021187aa03297312db350a8220f646fd8ed85662f34f5b395fe3fdaa24304857'
            '2626ae310086d7c39802e958b00dbd36f3358376e5af3ac1a89d631b2f32e8e8'
            '0994ac9486c74b133716f450484d27819f6abd3313e056c7772008bf73438e1b'
            'ba8555b7ee5464ef5f3b697a269216e5958863211ecdbd490d1000811ac0f607'
            '675d2acf50b7e63e6faffb622df34a91d065c7ca0d4f4aecce5c510d18c1b274'
            '907ea7c1d838aaaf6641f5cf0860f318715ec7d3c39f9b93ba9ebe888a886ed6'
            'b408364673cd232cdd25be3d560b4033925285eb4fb904293daa130bccd5d492'
            '7cffd588a69d9259e91ac2f1b6fd1e453778a4f7f83a177adb83d56646b77e6c'
            '13e84bdf6edb94e7ede22cb9d1618a98a294147ee8f5d7d4e797fb0c518ac393'
            '11d0649432c2ab81f1d7dfd9c69aebfba51f00a6aeeb28477d7db55b3e584e47'
            '986099a08adaa41493bab90fcbaaf1979469622cdbb49d0235782ef223319af4'
            '52fa66ccd1dfaf9fbc2b6e8d6091a65931cb9b5894227c500fa4bdbb04903be3'
            '0c14b615fc5d02bea61754f8e921b66353fd632b5673690c25dd109077bb07ed'
            '695e70e6fd468de29ec060b49dea61a85b94eb16e1f9ec519caf422ae9606872'
            '9868e0118257e6e7f3019954956fbb521e8382bd202b314777dca542bf76ecc3'
            '43d25bbbf7d16c0d789ae2f98c16835b2accd51e3f0c97b564ecbf50b41260fd'
            '5a655ebd5fbba862542973834b4d6cc2f8a13c065f734bbc490f8d838d71dc6e'
            '87019d3d21edc402110fe3c18091f855e1946643b4e51392abecdd25ad775ffc')