summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e228dfc95fc5dd2042302f853cb18346d3e63a5a (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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
# Maintainer: Dct Mei <dctxmei@gmail.com>
# Co-Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Thomas Baechler <thomas@archlinux.org>
# Contributor: Jaroslaw Swierczynski <swiergot@juvepoland.com>
# Contributor: Michal Hybner <dta081@gmail.com>
# Contributor: Andrea Scarpino <andrea@archlinux.org>

pkgbase=firefox-esr-i18n
pkgname=("$pkgbase-all")
pkgver=68.8.0
pkgrel=2
pkgdesc="Language pack for Firefox ESR"
arch=('any')
license=(MPL GPL LGPL)
url="https://www.mozilla.org/en-US/firefox/organizations/"
provides=("$pkgbase=$pkgver-$pkgrel")
depends=("firefox-esr>=$pkgver")

_languages=(
  'ach    "Acholi"'
  'af     "Afrikaans"'
  'an     "Aragonese"'
  'ar     "Arabic"'
  'ast    "Asturian"'
  'az     "Azerbaijani"'
  'be     "Belarusian"'
  'bg     "Bulgarian"'
  'bn     "Bengali"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  'cs     "Czech"'
  'cy     "Welsh"'
  'da     "Danish"'
  'de     "German"'
  'dsb    "Lower Sorbian"'
  'el     "Greek"'
  'en-CA  "English (Canadian)"'
  'en-GB  "English (British)"'
  'en-US  "English (US)"'
  'eo     "Esperanto"'
  'es-AR  "Spanish (Argentina)"'
  'es-CL  "Spanish (Chile)"'
  'es-ES  "Spanish (Spain)"'
  'es-MX  "Spanish (Mexico)"'
  'et     "Estonian"'
  'eu     "Basque"'
  'fa     "Persian"'
  'ff     "Fulah"'
  'fi     "Finnish"'
  'fr     "French"'
  'fy-NL  "Frisian"'
  'ga-IE  "Irish"'
  'gd     "Gaelic (Scotland)"'
  'gl     "Galician"'
  'gn     "Guarani"'
  'gu-IN  "Gujarati (India)"'
  'he     "Hebrew"'
  'hi-IN  "Hindi (India)"'
  'hr     "Croatian"'
  'hsb    "Upper Sorbian"'
  'hu     "Hungarian"'
  'hy-AM  "Armenian"'
  'ia     "Interlingua"'
  'id     "Indonesian"'
  'is     "Icelandic"'
  'it     "Italian"'
  'ja     "Japanese"'
  'ka     "Georgian"'
  'kab    "Kabyle"'
  'kk     "Kazakh"'
  'km     "Khmer"'
  'kn     "Kannada"'
  'ko     "Korean"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mk     "Macedonian"'
  'mr     "Marathi"'
  'ms     "Malay"'
  'my     "Burmese"'
  'nb-NO  "Norwegian (Bokmål)"'
  'ne-NP  "Nepali"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  'oc     "Occitan"'
  '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"'
  'son    "Songhai"'
  'sq     "Albanian"'
  'sr     "Serbian"'
  'sv-SE  "Swedish"'
  'ta     "Tamil"'
  'te     "Telugu"'
  'th     "Thai"'
  'tr     "Turkish"'
  'uk     "Ukrainian"'
  'ur     "Urdu"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=()
_url=https://ftp.mozilla.org/pub/firefox/releases/${pkgver}esr/linux-x86_64/xpi

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=firefox-esr-i18n-${_locale,,}

  pkgname+=($_pkgname)
  source+=("firefox-esr-i18n-$pkgver-$_locale.xpi::$_url/$_locale.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

package_firefox-esr-i18n-all() {
  pkgdesc="All language packs for Firefox ESR (meta)"
  depends=("${_all_depends[@]}")
}

_package() {
  pkgdesc="${_languages["$1"]} language pack for Firefox ESR"
  provides+=("firefox-i18n-$_as_lower")
  conflicts=("firefox-i18n-$_as_lower")

  install -Dm644 "firefox-i18n-$pkgver-$1.xpi" \
      "$pkgdir/usr/lib/firefox/browser/extensions/langpack-$1@firefox.mozilla.org.xpi"
}

sha256sums=('a19b7b4c1f0a941be9de0488561d813e12794d4b40c9b0dc027fb97fdeafb84e'
            'aaea06744ec1621a104f7a74236f827c4ee6f1ff078ad69808f82099ec7b3861'
            '1712f6a5e1143feb77bd29905fed847e33fc6fd6649e84704524854033ba026f'
            '35e899d168543c26d92332a92bc1fd567a8a9dbd6cef2399125c869c7999dc17'
            '73c44c4f6271a36f1208223eae823f38420f7b1c8682a150545ee4a9b2ae7401'
            'd964ddcf3903f16eab7767f22b21d0ad799990013094415847201807485ac030'
            'ec1860a4b28687410638dd9ecbe97676f2534b91aef77f3ea922910548085100'
            '6cf5322224c86f77356c4708db3ce31cad480ce8afba10ebffe77e977d3bd464'
            'bf9be38949507c3d74c1ae57210db36e02cee648126601deb7e02b39f7a1f810'
            'b51cd7a58cbcb746ed4fe0b925fdc9124f8e1ddaad52696c0700319c7ded621e'
            '838ea02e7fe7216b7de554a7a6ec82029216b4532e46018ea8173c8814fc407e'
            'a3d98703b2aa9e7160906afd49e47459199497957c6d70ecd053e1971de2c4fd'
            '5c66bfb3fe660f037198e7948bf1dd3562748e351eddfeb46a2e5901f059d528'
            '6306b29f71ad3a89033147633238f7ba9f9f39dd6731c5a269768be66fc3fe5f'
            '094f8ff908739c3c39f793e9f4a416e86286fd92b5fe320693d5050235db5fba'
            '58fec13e30b34ab08e79d9ab99e758e8161fbd4349189d548373c109d7cf234b'
            '7ea251c927d1317df8e0cadc4333d100942d61d089551066cb78b7f4a5bc8206'
            'c335348af1842ef466382b9d9804375e08b26bb9b9a7efad5aef956c22af5a6e'
            '4e97429d4f43904534d035fe449b7b588b9fde17fc11054dff15c348076d1f46'
            '6366f05fa06c2672f45882af10f4ac29761532d5c9181ea70e28f7985d708c03'
            'a10149ca309de5c076de3121518f374db2b3040d5cd8918afe6581f5b5cd6efc'
            'd7f2814b9419aa07ac0cb56a33945b90d5ff23bacc82228661dff8b51d351afe'
            '70722a71452c5d28d535f917a36be751a5c53f18a6810a52c5aa6829c983eda3'
            'bb9632995358e94ed4b2655beaf61fda8f40f0060c6f10110d6d6c2d33112f93'
            '08c9f823d4ad9be3e5b73df0a065248220a02e5956c88b3414b24a7bcc0038fe'
            '684bafae07dc58ca85020612cd54f7553f59307b9ce4e3612f8a356fa83a20dd'
            '45e5005f6cdcb9a788e595686c8178d6e1e4bc5dae6b8edfdd1e51c7270e6037'
            '3cf5d0c821a6d469b6363848068120f80cbee65177dafd4700ecf0091d733a73'
            '4dd44d99b7714fd7a25761e2abb776bf24fbe024bd3d508709a40c6407e267b7'
            'a2ffce13f64a0962f4cdfc255e71f848c1dbaa9ceb673722f30053626a53bfa5'
            '59a49c8671ffea0e7a4a716c49443862d14f3292c316a8ccd6dd283275c02255'
            '3bc7372db97eaf2ce4274651c68d34c2cddffc6f6f9f930bea0562fb186e2787'
            '81486c71ac2bd7aff29f80a050426d164ff2035684e248d458494f13dd5bc69b'
            '9d7361f52ec5908ede33564a1854ec7c00f3e42d828f73dac70c93fc937ef77c'
            '7d6da19668fbb677a9e6f0f54fb57253e802f3cae9e199c8de4a43a5a8272410'
            '6794ff2eca3a0f8952c1040991f3aa910c9629586bc3f1b56601424942dd3245'
            '1d03dd67264a2bf5d46105a6a8d7ca2f3ee73db253a3cd77ea0e0051159bce56'
            'c61b4816e03c4382c83261fe1e142b54c9632f8930846729577186b0178ebb73'
            '45e957f3074ab3d832939f87b9f8dbadca4681d603fec6991cfa34bff1ff2047'
            '72a5bdfc0e0451fd17c88511b0143b87e8f3b576b68a21d0852740af7cd9feb1'
            '77cc64ccdfd0c8c9c0cc717ea08919ba3bc29d3eb8381a8b9cab399ea1d225be'
            'd181e7f4d053f23928416458ac24161bc731d93ceee7d043fd4a0f27d52e4e21'
            '76d7acd86ae53ec83c55e0ed13659d614f14f95a8b4936503914861853239fc4'
            '6123417f6e9eba5c30a8d95a992454da11a8f14615466be7081dd48f3c8c48e5'
            '4fbf90fc0bb2a5fd1e10fe6dec49cc8a004edd8d0cc1e9679f8155632749410e'
            '7725770d1d2492218f3fc805f302a6d8f11c556774b70e3a120625a693fe120a'
            'd04758cd809a9f3104a39697efb714a5a447fea9e5432c210099735ddb683419'
            '3fb78eaeea3a70bbd3459efd7cb6a9ee17f4c449273d6ddde425aec6fe43fc72'
            '73024580fcf4a83240fd379101385c1861ea0e4a864516acdca16ad90679e830'
            '77f6fc7980caa48b1f435cab4651ba5a0588f550231253988c5c8606d36fcd99'
            '332b32924a09ee0d5c315a0ae43f8f3d227a6a6550df245e602014cd78f213f5'
            '31a0b368810476682df67ec5743ae204f20c246e58153264d26fc1a7f2aa424e'
            'c87a1e62b220eeac75b36d29a8ad82775f8aae7f106d4586e1836c2b78de5f83'
            '8f9f2f67849e023170502b376c09cf62a34f7dfeba1b10cd3d954e8e181512a8'
            '20329ba0051890845d994fb1de0e331da7734d777bd49bf1cdf3cc5870e5200e'
            '430fd1f8dff3d71a0cfd40b068eb07e2e4df9fddb9579e54fd4c99d14d3380af'
            'b01d8a67779a65c280824a46486283d1aa95bf302b5d8b1ae70150b70cadc100'
            'bc25214cc26d623745d9d95053c7b1b59537495f241c0b486a00689e2ac4f5e0'
            '88d55d064018324db430a1f0af96e05082bb3312d8d79edda838cba4b7774117'
            'ef56a534cf288f408537bb1d926930a532019aaad6e7c8f645f8ec469f48a431'
            '49a5dfe8f473d828b178309a3fe1182c49fea07d545dd0adfcd2dbbfd7b20adf'
            '642715d7cc6c422c8bd17ef44fbffa3f8c13b68be3db64ec0c4bdd7dea55d687'
            '49a9e79fcee2869a08903c0053ed53276d5e6a28446bbb38984855bd17646c35'
            'd86a96d4506fb58867526e5beb788b8eab4ba38c8ae40e5eae48d1db092698b1'
            '0565c7d804ab5c9f60c80d846edf41930030916b895591bf4b736813f174a936'
            'f5dbb8541cf0b8a2264ab22c6aec131ea9e1b9dd82c2a087d641ecf92aaf4e01'
            '568e2588b9a14c4e32fd2ac3400ea0b9d777f49396d15e2d90b1f3813963e67a'
            'a16e0fb248e829572643d45ac3319ab2e2f6729f5aa15fa205223443ec9da1a2'
            'b81323f37eab40788000120fd9be14c930e37a84789196d92874d34a4c43f4a1'
            '9eca5a4f04787c58dbf90db03e8e7d6cc8bc5ac26327382e2e69e19f5606c0d1'
            'bea13907ac37c5bf5433a34409f35a5afba984186afd78935470830ebb3d9b3a'
            '6e342283729ea010e8f6dc49810daedd58fef0cdddbc4a13d3ce1b2e9f600f6d'
            '95c022401e3e9ba3be3b731e68ddf2ca2a74338f2a5eb16c157aaa87656d972e'
            '4fcc7c972e2da63980495a02ea4cd2b74267e5951b2a9aa8d1dba06a93325d8e'
            '7cad8018337f543ee30b71477235b8b8fcc40a94e0cd52a2400dce7769ce6035'
            'e75b731aa30b1006facb6f545b604cd3e74849d31428dd01c95f4cc33b96e5b8'
            '7b7ff837861815b538c9e23fe8a74acbc5871e3bc507cbb1be078524f321db6e'
            'b07a541b5f4cf8367c8c386931bb0498e40e2bb0543a618642f6da9977e1e66f'
            'bbdcbc438c07896d803876b44e5a22f3d16ff4b295570efda8a449d935a7c790'
            '02ef9d7b4742c4314cc3f9f76c54d7fa211a8e5ba8dd175c669b1528bc1045a2'
            'd22baf6b72f15874ae4e8f501a0e9757f48802109274f6aafeadcedc4c41d998'
            '63ec46446e63d4e65e00b6bd0d91d843f3d0c312bd2a273f5bf9ed72ccf68b57'
            '87f6e48f3426bc459397d98723c4d15b1b3a7e3d4017601cad8480f5f80b8e45'
            'f5fdb4caba3191556a10d08b2577e4f388a041c34e1b309aac3d05c19b48b4ed'
            '31f136c4f10e5ddeb39e05fc0ed0cb76ab57e99b6c2e6faa2a69cb56ba16e256'
            '0d5110c8389696f76370f646cd61226390dfb7c639c443f2d60517e9c0c1dba6'
            '359d546fdb3ebb6dc21d3b7942243a02b8311d52369effd7ee1b425a00f8339f'
            'e35c6646c5139527b9376dc0798755bf4b7dbf106f7082ad3ed67d2eb487ec19'
            'e1e1440f529f5bb35f7b0346645508a576fbe8dbd5889bd58368426b8bd85a90'
            '3e24afd750b134c6cce17c373901cfefdc153b6907fa9574b920c9e7c595dcc1'
            '0f5eb83daf0fe899db5d37cbef5cfa9f5c43d7c137c01798bce6565925df003c'
            '530ede5da364726425d60daeeceb3467490e79ddff8c5cdbbd96ad416384d6da'
            'd61184a5920a0ae598dcb791d3e0bced17db0fe874863f56dcec07651bc0f470')
# vim: set ts=2 sw=2 et syn=sh ft=sh: