summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 40322abca9f223d03ae8bd1d419c1c24142faeb2 (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
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@parabola.nu>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_pkgbase=icecat
pkgbase=${_pkgbase}-l10n
pkgver=$(pacman -Sdd --print-format='%v' $_pkgbase | sed 's/-.*//')
pkgrel=1
pkgdesc="Language pack for GNU IceCat."
arch=('any')
url="http://www.gnu.org/software/gnuzilla/"
license=('MPL' 'GPL')
depends=("$_pkgbase=$pkgver")
makedepends=('unzip' 'zip' 'mozilla-searchplugins')

_languages=(
  'ach    "Acholi"'
  'af     "Afrikaans"'
  'an     "Aragonese"'
  'ar     "Arabic"'
  'as     "Assamese"'
  'ast    "Asturian"'
  'az     "Azerbaijani"'
  'be     "Belarusian"'
  'bg     "Bulgarian"'
  'bn-BD  "Bengali (Bangladesh)"'
  'bn-IN  "Bengali (India)"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  'cs     "Czech"'
  'cy     "Welsh"'
  'da     "Danish"'
  'de     "German"'
  'dsb    "Lower Sorbian"'
  'el     "Greek"'
  'en-GB  "English (British)"'
  'en-US  "English (US)"'
  'en-ZA  "English (South African)"'
  '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"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Malay"'
  'my     "Burmese"'
  'nb-NO  "Norwegian (Bokmål)"'
  'ne-NP  "Nepali (Nepal)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  'oc     "Occitan"'
  'or     "Oriya"'
  '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=('region.properties')
_url=http://ftp.gnu.org/gnu/gnuzilla/${pkgver%_*}/langpacks

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

  pkgname+=($_pkgname)
  source+=("$_url/$_pkgbase-${pkgver%_*}.$_locale.langpack.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

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

_package() {
  pkgdesc="$2 language pack for GNU IceCat."
  replaces=(icecat-i18n-${1,,})
  conflicts=(icecat-i18n-${1,,})

  unzip icecat-${pkgver%_*}.$1.langpack.xpi -d $1
  rm -v icecat-${pkgver%_*}.$1.langpack.xpi
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
  rm -rv $1/browser/chrome/$1/locale/browser/searchplugins
  cp -av /usr/lib/mozilla/searchplugins  $1/browser/chrome/$1/locale/browser

  cd $1
  zip -r langpack-$1@icecat.mozilla.org.xpi .
  mv -v langpack-$1@icecat.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

  install -vDm644 langpack-$1@icecat.mozilla.org.xpi \
    "$pkgdir/usr/lib/icecat/browser/extensions/langpack-$1@icecat.mozilla.org.xpi"
}

sha256sums=('fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
            '5d746deac73ddcb603469bb16aad64c4ae6b4493d1732fc870acf0d9a8062111'
            '84826ef09ff5bea855cf1e783ea918d11c0fd1d0f774aa4c6428d6d1a7352066'
            '0e7279e258b80c6d3c888449604ff0d3c7689a23e4177cab37a2edfcb7b2630f'
            '7fd94641b81bc363d5c5f8b0b99d4b17744486921304db7683c325834af5e216'
            '736fce3e73eee8bacea87667f2897a0035825560b066700854b44b62ec01e9ea'
            'e303058d64b533cf165d9cc94b69b02d74bb95c30790d5c06900a4e91c17e183'
            'c496cfd6755b78863cca69c2963672cdb086e0a83784845eef53c8f68da6aeee'
            '1106e9e92a87a82d93c82a0a8195af1f4c081c8a622172912aa5ba2d3338d675'
            '7d6c19d98e9042009fdbc5bb4ef3d8aef36228ddeefaa41b39899778f3de63d3'
            '465b60c4746591fcb01833b6ea19b88f00eb847f59f62ed91b9fe2310e204520'
            '06ab14acc2ebaceb9e5bbe529ea2d14d78e2ff8caa6a64a44ea9ac7a93550fe8'
            '6116fae216adaebd0cc4caa1c3fc350553c3068abb8f8e2c28e3d7cfb62fd25e'
            '119c53e74d2d1fc73ef8ef8f028736696a65b749feaefc730c24258105f620b6'
            '7beb337f5f7894e356f81f8b0c0e14e26aea7dc83fe975a35bc14f174dbef14e'
            'c2c8ac9b4804c997b9080ef34d1950d3fdf32a2ac71c0ea488c02ac0dc787b86'
            'de04951a7ccbee2bf5ba8b73607344ceaf04c9c5e408c27f8b09701d3b4481da'
            'c7a72e8d75a10cd159257639d2d86ff00b20c331263563f13156db1261d56e77'
            'eeba3c0d52f0999f73d5d056b2da37ed718f8676347da4d4bccebb5180f7eaf4'
            '06f472dfd372ce273af1f15e1a98c43cdf9d36f25653f4521f8d403a97509d30'
            'a6869b5dc4e4ebc0a88eefa8f2e2176b9b42cbe6a3ee97833a725806ba350e18'
            'cf664befd58188b20e9e403836799780fed3d6c46666f92669dba9744f2c10fa'
            '31fe21934ebd11d8682e1e52322587d082044c3a0ffdfabb3286529872316f0d'
            '7eb1136fa152fb42e312c5571bf6f67acfd5f564fe3d55e1d4f6801562d9fcaa'
            '2e9f95a291ed1a299559b1817057601078dbc485d362982bd6fcc03745f49646'
            '88372b4a1cbebd593c0b122b9e4c91b93f9b5e5952c19e65499d98337a307d24'
            '1e7a702fc8a5cdb0bb4ea87874632adb95d3756ac5b02aacae0665f20b5754f9'
            '75b4a7b36fd361ea69a46226e6d820476c72f5cb53958319f256cb1b54503a3b'
            '4d627e01aecf009661359e44245d50fdc1a1868b4b7fb16345048667d51755ba'
            'fd3af1c3a871e0c66022651567fac84fd2c37efa8e8850984073583f198724f4'
            '933e5d4af1f4577e92bc429eb0679451d9b60479c343a736d46cca7ddc74bb13'
            '45383535a03addc610b9cd6ca05a7c4d7094486e9c6782e9b7ce6e9e884f0545'
            '78a704f151b5633cd1a6713922b72e400e2104c769a8cd64981489e5b9f2af1e'
            'c79790329bae8570bc78a083c4824fd6610d232f71dcb54367a80de00744f227'
            '64d7c10bffe3fae9b380f47ae32454b1f8e788b66e6d9263fa744ae67cc1797c'
            '547915e72efe380df514429e4b4df39586a085835f1840d3e4daef2746b2581b'
            '1f60e74f35f6e6753dbff4205cf4386adb87972306e15897bf4aad1cd3702411'
            '506361556148c820fe35b1b867662d971aea2e1cde494820884807a86d7e6a6b'
            'f83d22582f6889c1ebe30a8aa095adf258fac1012c2c0075b6211066f485f064'
            'b8d39bb1c56400ef5e3717c468b77c265f118c27ff5f02550545b0d4e709b25e'
            'bb7a51a3dd9e7a17ddeff7af8f516a80f7edb8384cd909e0b08e3dc32bbed317'
            '3de8f6433ff044b259dedb19ade41d82a55bbf1efa52e815673ebf81301a92d6'
            'a59652fd1b7be72f64a01ecf1c0e6f84f4c6a9376bf35a12531e7091f401afbb'
            'b6562c273a57deed3330e4c73ac0a21958fc3e4e3de1aecc8242ecea1df7dd68'
            '1ffa6e7108db514145fa10bc680bc6c45544e0b8a13151c75886838fc910487c'
            '8ef8709c73f74fa8e450f56e0943c4075c9d9850645244489eede52a35ffe28b'
            '7501448ec2412aed7eba026c0856daf4f83cf38bcf32e09d6e5d632fd8c5198f'
            '47450ad32fc8f397a12cf73aa9393f340cc4ca6473219f376e60498d9be49623'
            '68db545960ccbf3bb5e9cb2101e6e99fe116ad1b158961bcb5c0a06817c3ebd2'
            'ba55ada58e2cf0def7259d3ca10e99e85f84c46163458a691cd45e3f15d84749'
            '1b476fa510333f6a5d799eeabb5c221dae45b1f4c7b1c41a586743a281de8b94'
            'ddca7ec3235d3fa2df652618405be3a8147d0d8a1b3ba2d8530bd7b67aa69993'
            'bd1685dc2299d1a657bbe9448aebb2f2f13d6d5ca4aee873717170e420453732'
            '083d57c3eba8d2055e84dcb0d6258ae94d5ce636a437aa663145245211e1bb20'
            '75f1f88d6777a63ce2f42657af770281cde1d7dff4ae94fb0cc18948dd04adc1'
            '5345ed8f6ee49f9f0e88f67aba7b7d75054d1235ef0b9e2d8d67d0efdd24b9fa'
            'cf3f7489b49bebf70fd2e8150152873342165986a435088599415bb5d58fd7ae'
            'c47f569ef2ca0b949044935df52b23d2bae6fdd74acdf2e47035ed35a44579c4'
            '2ad931b63bb50f722c106cd20a00263483ee62dd2f7f9b8c06a287843af83ab1'
            '7cc23a878cc99281a5c53580655623281e3973378be440bd5836c9118bb442df'
            'c58606da1ee34d609d16468c166485374288c14a1ffe467498aed01632f2369b'
            '9aa5072ccf248c8dd57f8e178537ca3a121947718f98f921ad2f8788c9b9466d'
            'f6410d572172520b48b0fb1fa95b5ba958cddee528dac1e6f2523ad28f3fe71c'
            '3d5a68a18be4860babe722754f7a73690404aff2a4bdaa3316bda1ba80faf3a0'
            '2b81873ef0b9be8ea68af0062853d91f90b27d03a2a20d62666957a275fd8507'
            'bf48d638da661b1401987804e5933bffbcffd6468705e752c58ced52c4c4a9d2'
            '9db3299277d290821d69629e02163f2b5e5757c5bc6e4000020a377aaf11224a'
            '6b563793f3653d6b681551e11d9543eab0bf2320566cb02752243f61a32f2e70'
            '8eb7d250ac44475e5fd4180bb62dead921efe7c502de440c31733f1f71957a90'
            '5bab837fc88df44757762457428d4c2dcf461103c161f6ac9f328adff11b5576'
            '808ce08d82d134b858ba2ce8818fb383fa3f3ec547ef44f869478b1763906a7a'
            'c41b287d343a128cf201dc6ce2b73de20f75affd5c727a8256be84d820cd2957'
            'e48b2d881c251502092e2695bab97811e91afc077fd85d246c3a17ba2ba1746f'
            '5885f24b1493f0b45a56a24054c924c408dc665d250ab7f8f6fc89b1f85bf9ee'
            '9076063e673b148ac80e62f18e304e77c85f3fbb6ca814e9a5c9256ea16db059'
            'af6259cf67d9657cdbf79660550341f7fb520a04b3556b4f8c42e0dc15ed06d7'
            'f23955814bee020e63aebc227c6b2219e32e9a84f7fd94117c435e44d5344c6f'
            '5c5e6d1ed0e201c73cc337a7c9dd9c4c1d4304e537e4f540d216b3c00595828b'
            '533c238c5618d442226ed326e80151e5138f88519a63f37dde2cca36db9603cd'
            'ee294ee5773d83e846e97a66901846b915033363e8e276bbe9b412ba11fe66f0'
            'f9d39594e4e84a89d1321743bd5fa3e91aecb46e067a45ce170bb5d33f1b7cb0'
            '53b44444ccd1092252a6bf845b2b1e1b19f184bfd0569051b0c3f3331a3e4942'
            'ee60ccae988b82ceace09792846f8e35a449209d014a364698faa75e828b4f93'
            '14a6cee06a9fced9394aa448b83d75c32573d2888c8ea929de1b610ffa31be31'
            'd30d2dffab9e71a60b556c80f751a684f2a4f944f2631204145ba086b0212f29'
            '43f8841432baa90189a1cd0bf5db887a3790d94dd8f0b8fa5ace4e8b2c24eaa7'
            'ddbe92a4f2823dbf59b4c5eb65124564e655cda72231e894eead846bc0063e0e'
            '0ea7a37183cdd91df4d229fcaf12fda01ab7c1ad9721988c3294ce09c1d26cd5'
            '949e700d8d4bd52501ace564359ce10a9c887a900f1165fe05f2b44dd551c502'
            'a09dd4948eea9bf7e11fbc715ee2196394fda2f53a84cccf649183b73a007e62'
            'a1dea3abb6e597a44869f33c7e06877c7fcd80ac18203fcdbbb9fa48ad66f287'
            'a2c138ffe9f416371fd0038f08cd557a62c3fdf712b6c814aca9c08c80a0da9e'
            '2e217b9e88b4914eb5c24a9cdd6f5b8842147bd2b504fe637a058ce2781821f4'
            '5ef0040ab3c069577bde5f9af8ff62392231e5f6b2272915feeecca5af08e758'
            '634009b741c81f38c06be52f185b687d46b4a8694793e2ab14ed37fb19dd3138'
            '30e85b67507912d15ef3a1ec491088a45280917612163eb5cb051ad4a2dc792b'
            'cdf3f76f78ca0ff8d8f446e429c5a71d0116b2419910e90a72c1048bc0082f8a'
            '5c2bbf7a6f06cdd34cb3ee832bc32bf07658e1c2e1907bdf62864d70812fba49'
            'b5558452ae053db905467e1b3d4da3af3ced87db14a5ecd05158ca4383c903c7')