summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 8f2d3e9fb89c88835143d65d4bf4e61bbe748b23 (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
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_pkgbase=icecat
pkgbase=$_pkgbase-l10n
_pkgver=52.3.0
pkgver=52.3.0_gnu1
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"'
  '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"'
  '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"'
  'nb-NO  "Norwegian (Bokmål)"'
  'nl     "Dutch"'
  'nn-NO  "Norwegian (Nynorsk)"'
  '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"'
  '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'
            'f464cd9750126cb69a7fc5789d324ea42833342445948ed9dc31a9cd33bcfe6f'
            '640ed86f79be81118149606f5f4c376049b97904f0dc4f3c58eaf7644c7f31a1'
            '3326f8bcf18616dc3c04702de0407687e5ae41c3c5b3cc4a948758dac70c8c75'
            '4e898754dd6fe3efc0bda8928a26cf3f759ebfdd09133658c763bedfd0b6f066'
            'fc5e7781de7d1b884ad69f0f0dacda600c87d4fac97ec12dbe42190308a43f18'
            'edb25335a43b1479f5c9013faa8ec8685771c299709fea4fe5ff0852d4d01c9a'
            'e3f2a04cc6245005b64c4dd7230b0eda47e63f2a0d27f72e322bc721911381da'
            'a15d0ef2c51c0663ae96053c0e6a7fab33b05af45cc929c554275ed3b54bdb46'
            '4c5d9864e2a79f1eca08a87d9eefcc288c66d6ff20a0ed7f072218ee022ea4ae'
            '4e3d625a1cc84af42abf1020edf53d74e4c027a80ea8375340542e856b6fd5e8'
            '3cadb829f53479728a25f71846f37e3ffdd64b9eb7cfc463b905fa108823db25'
            '33f2ad157160929174385f42bcde34135b428456a7f4fdaee1aec47d36f110aa'
            'f5fd44b4ef9ce92b44f8aa2fa4f6dba40e77eba2506591464c64dd8782c0c983'
            'aa657f8fce37c1431ce720f282a8a8761d793e92cade3b6f1510def06a27e629'
            '02da2e62bcfce76e6384257e800ca6164ae7b4f526404f1dd0a33b5d6208f258'
            '9348b93a941ce707c64eb5b50dec8b5a0e5f08d78ad247c50a8a3e8c91e1120f'
            'd1a163b959a2bb211fa793ec1a94cff00c01c127609c20e8a082ca3e77505514'
            'e6774428463724ddcc4386a451f47f7a0dee99f1fee5f816197558529fa1c866'
            'ce3519457a9a03237a7fce89634095ac86ca5981600da31ca684569b8c600fd1'
            '64ad73816ae28700e797ce120c5f58152d0420a06d568b36f960429982a6aa86'
            'ac518bb12f145e3114a1882a031cedeb74c5a35c6284485a499fd57362bf2083'
            'ffafa2c9e8a04a41992e7a408bf84253bf8175f4fc78517f42f06f9c81743d10'
            'da0a4536da2256820fddefe7d5b4649e3a49864a8971575cc5be8ede50a939ea'
            '984179671ce2210ba85ec29a58d0717bff583450ca2cc32e662f00197f34ffaf'
            '2ff91afeb7ea07ccf8f237d3abea71f806c1b429b2fe056e11b21424fbc7a994'
            'f60727924ae84340642ee8fa7e8af5c1a0dd58c0d80b78ec000be1e944463bba'
            'd6fcfce0c89ff12245fdfd8adb8ee1377cb76c0c903a6fce017e9baceb1bfe3e'
            '9ff2de231078bf387cb920786a012b76c8ac492e2c973cfbd1fb7fac1721d1ce'
            '78129f6a9626c6775b9f58c7531d42a1809c1cda022a7213dcf60ab90291742c'
            'a9d062ed34d0a18383f29f2cd2a7216747aa07ab906c6b34fb7b54c41b76c7c4'
            'c9232e175a84db403ebaa84ee29a391b77cc87ebb925bd957d0de3aa4d77e8d3'
            '15e816f066ce223640590164be82e183bbed6362273fa651154ec3679577af41'
            '99c90d831ebd3a0d4d737c3cd5adf6531766d41926ccb24081d3a30441551cb3'
            '4eec393d721f12402225be375198dc825a22a98791783a458af238674838ccea'
            'f64e3ef590623b1a7540ab1b22f5a8959633d3fedfc0e2129976fc319af111f8'
            '3e883598842b517970cad8b44ed2c1b8afd0a07451a1ca5fd6ba3b6db28d5e6a'
            '80a81cb6f180092375ccc54135310248bf3013127ecb4800cfab8b1b4faac64d'
            'c3c528dfcd3d2716b6aafd591f46f2d4f690ea2ca11c98e368cc890460f87544'
            '96164d34dfb9ab880429b21f8d270e950c52590bccc6c8d236bb6f6ad3a9be33'
            'e69fb592c359c1c69c390b3b5fb43191454872b92578f5890ecaab584200eaa6'
            'f0572bc58d2d784d057505e0e7efe6aa1e32ba5a89871cbb26ad9ec38ddaa9f5'
            'cf05e61c8bebcc4999d46d2e06a92a555e3e1e7233579014a5374cb5d175b7b8'
            '16f33490622fcd5774f79a45e66b0fff7c1b9a0347d9a132bc89254172fc9c8d'
            '7f74d9e212601904eebf106f8f665e5c51ad5e41241cec6a8ce76361e4604d14'
            'dd750052c11e07fb52e54d7f118ef2c37405afefac6ca7a4846d3327057c27c9'
            'd936b3c27b9b19e3f78319e32b8f4450ce67e27e607e06d1d65be6040cbdf0df'
            'f91570ff3638b34aa5475f4f9c2cd559e65daccb4f2156be8617e8c74a9236cf'
            '61f7c967b0ebae452789afa66e0c64359255b206bc4a5f609bd9e4cad686cb42'
            '548c2223986c080b325eec5e95fefcd82139e856af907139c0def331a8797c17'
            'd2fd07146bd50ec300747d4c6e8404d02abecc708cb67549fae42693213a30db'
            'c265d897c6ac7543c621c3ced04c88ef9958e0fca4fe8fa8165bc92cd5258cd5'
            '1c9695f535ada9e2be9152ebb72df94051db814692056bf606faaed1f26d53ad'
            '73562cc474fe7bca58ab33b1e043d858fbe5fda74e05ae0e0f48115248dccf1f'
            '7050a223aadc3fbe70a7f4df0772ec735c23c230bcc77ea6088c79e0484360aa'
            'b27b4a729bb35ebd02f407074ef1df682f46ae815b61e1bdfc183692ea400955'
            '3645784c06e7c6c3c8529095cda41d802ade079344c2be7fec137bdf1833991e'
            'b0ba06bb40817e41058d1ca1162c56fef02e938ea905939922f64b944b769738'
            'a545bf399a858cfe2fe8686e0df48f0f05fe4edf7efd1187a8e2d7dee9501964'
            '67e05c287355caf860d0f31f78d0208ae4443c304fd7960eb1cc3a9792b123ef'
            '8c0a08f287bd8824851297a93c7134af19674573830c3f727039c1ce22bb1a36'
            '5bf414a25669d49f770ab0a694476beba1cc2df4bb5831825c0ec83a7b18e70a'
            'c336e79b408f37dfd211cd73b245b59535940a19a5fe5d7765cffb99c87aed69'
            '15779ebd10e37781f8ed12fb6edbe116d381daf65968812964d949be689f43fe'
            'bfe47d0af7db05d632590cb8058f871a43d6e5e351803a3351054974ace3a363'
            '46ce400c4355d84b9a087c39b9d974d36b76f249b299431b10801a8e5a987f97'
            'b64eb8240bdace19ff381007345e1179ec450153f4839c153b6d09c632e66e77'
            '050f797fa1afa8926c64e371fd24f406afdf3a348d2a883b2c71568172a79db6'
            'cdde0dac91b076e6e4931b277125c32bec2560ad5486655f229b48f6ea369957'
            '5a7058212a3adce6e76184ca90fc32c06a68cc8926d7d551d3a1041bee547bf5'
            '8f36e170b1432d1f118e41df1aeb67a3d16e4a61a0ff52dc3d92be50baf670bc'
            'eb84ff5c226f2f406b053122dddcf58f11693c83e692a559486dc929bd56c3b9'
            'fda8bf78365a4239d4c92a69dfac7ea5b0a5d3113c509f559478c6c8b3101005'
            'f804cfc7ab2c31684059686cd69218d06146a5ac8f7593c7fa9a0df4dd5521df'
            '31535fe776613abe8195eeffcc7257e5f8c16159962214704d88c6904434d42b'
            '91645b00b666be51a68e406ca123e1168c407ce0699fafd5b9dea2468f1f901f'
            '57b843dd5e37b23061da9bb3270e39bfbf280d9bc78aa0eb80743575b0e7a847'
            'bb1132af52b5a511e5cc9b71a2f474b708f7216c0e151f15a496743d43ca13ca'
            '64fd7df2024c632b67390ccacea66b51f95304ed6db8c9124f303a4c5c74cfb4'
            '95c76e99a5a2cacb33e82605661b06ccd0d1ead660897acc94069bba42bf77d8'
            '3d43701ac852dea5de5c5820a69659783f9920530cd545050213da6abec1c1f8'
            '0d45032e3f58000d5dd255d90a89583aa7f83cb7a889fa9bff44203ad67c6136'
            '33703213ff1793d5991fb4bee1fb9798e8e1abd83eacdb2af7b3d68437300287'
            '3c99003d9494539ccbb1aa424928bb4dc41dd371d20d246c6ebde24ea24c662b'
            '767bac7ef0b429a82a1bacaaf5be502f522ffcae8730e9fb77d4486d80d075fd'
            '574a25197b0da1997e97e86bb61f53a6930e2f4f629aaf8d06882c0d9bb3391b'
            '9356f6d7bf86f542c08d1aacdf6c3f297e1a0570ab8c58f8181164ed4989a273'
            '8dedb64723379a3a462dc1796a46e8e6018d82274b9cd295f1368daa27946fde'
            'da4f3b9002312f9d6f5a714f18fe44bf85c8a7d1f3ba71a2d399a91fc89079c3'
            'c301cfdbd1791977e539f139899af6e4663712aafb0e0e490a71a52d2e8cf8a9'
            '37fc2716b359041830d394cb9191f0c0559ea7b65132f78bef5dd067f4a42d3b'
            'd35c0c0603f77ba4849f5efb0c0ab811e123f4af226a6e729f95a3bc78ec6bbc'
            '65d7007533cffe0ebeb4e8d3becb6f714ad340b7206fde9c620d8f2f5f65eb83')