summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 23818a6c6eb99f28983c5823079a5e68d03b2596 (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@riseup.net>
# Contributor: André Silva <emulatorman@riseup.net>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_pkgbase=icecat
pkgbase=$_pkgbase-l10n
_pkgver=52.1.0
pkgver=52.1.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'
            'c81608a66feb2e79f6f0b91877c004e20f960cabfa664407651972761d6420f3'
            'b482c3e3364e180361c3ae3fb482c44c215247dd8b39cf23167b3ffca76f90fb'
            '041e52ff304c22bed2690382fb4f334099309325c153af9223a51790816898da'
            'dee42f52c6f675d359f32ed0da3c4c4b1f174a45f5e6ddab1256321f6b5f925f'
            '935fd75d0eb3410d26ba724860cb44159073c74d6527683df577bcf184b430c4'
            'e413b52dfdcd517f6fe9dc70aa4ffd0e0c9ec8aaa553e86127d6b888ac20be3f'
            '502888c959c7b73833b77c91bce085a0860e7f5b1a81430e9dc18e5cf73bf068'
            'aeeacc69bdbad36db0ec3b7756676cba84c114cd7fc80678425f61f50ddb4097'
            '58dd3f7604b8baf5651d64e99334017492db2bc67e8d25a0bf3a65511ad26312'
            '609a4706f3b177f90ee8c8b6d89fce4a0557923d7ad9140903334d23f7ee6193'
            'a2ba24fa75804394752d57fd46e566f2b486af53dd54502dbd83d0b82f506fee'
            'bea6be92db727efdee6d7117995ebcc07ef13734e9a585ec3dff4ec33854891e'
            'd970a4c2f334c8814040415f400d5db94857ad69b2d2be1a65edbcc3241be7b2'
            '8dd2fe2d968d5367ce2e5e2e8103d4549214a7051aa46ae92ebca980598bbed8'
            '262a3bc4f32705faf3066830d4d9d67ef6bdb109894155bdc12037c1e78e090f'
            'e833be51cbae877291e50a45ce23dab78d77e4a15dc6599052112435b9f43cca'
            '4a6c536fc96c8ffbc455984084b0eb13c3489d425f27f6b253444615faebce04'
            'b2c3efbbe56421436540a1df98f2a75f99a664194dd74470cb0dc02d486fea64'
            '9edd0413d287afcab5d2fda3e39723f6e355bc7fc25d47c90235765261e40420'
            'ac6bbadd699b0c5cd9a0294e30b409d00b8f2aced17439d0b03034fa5849a1f8'
            '919167a97b6f47ccdf4e2a445ee3947c3131d75fca2c15fc9c8e986154361b8a'
            '8f7b3ab0d751a173ca501102d71cd35c611e09ff2217607e89630a630352197f'
            'cb689cdff8a2547206f3143afed68a960133bfee2b62ed5cb7410b6365cf1484'
            '22c7890212544a3b346c194e9a5f1be4e3c2b5ac5492c3c0b7725bc3c045fe16'
            '821caf9087e0362494b5e25e6416231ab60147213ad6045e3131e4cd49c39e46'
            '7f0ff9c7cde9c62bc78f3feaae8c45886a4601eb6010ec9cda26f3f95d2826ab'
            '62828eefd8c4c73025c4892363f7f04eb5efac345a51bf7fef6fa410217ed5c9'
            'bf32131486cbda9ebc72e9653c84511884fe98c90f334db41115686499b9add0'
            '84322220f4469d8f97c59560b4f9382e3925fc82dddabaf2025b46466b1a6c85'
            '945fd6e88f4180d74e1daea7636a68e8b3d9e98b3e11859436f8e73037a5b47b'
            'b85e1bfae9f846ae1f51623d5d017c97ceee2bbff34c869a196eadb890f45501'
            'a592cc1ca229617fbcff41f88da95f79cf4950c238ef1985a9a2c0667b714b20'
            'ab9f2510788a889aafc6411b7a4091828363e4adbf47e3eb7309432a141166b6'
            '608ee88ce3abca55437958b3856cd5a1133ebed89afe0dbb05c9537cf3bb0a2f'
            '56d834cabf567386c1dfda6865637435c35ce53447162f564587e11d5ff9791d'
            'e42522c970aba947e0f8e8f31c131b82d77724bc71a50c290792a892cd8ac1e3'
            '76cd7ec58bf9556d55ac05f772a2d9117971608cebd1a97fb62660187f55a25f'
            'e8b30d8b58357334ff4ac49bb8bb79b0e583d5a7d9d748ca7d2ea86b0b87b02a'
            '10cc0256eb440821725e83d82b9d7e7357cfacc69faba7ce0fe3459445447892'
            '1e011b07d7c8f4475eb5e405569b0647454ae7f3c82cfb748eec3c5347f36f85'
            '531de361c2a0bd11fd9cf48778076aadfaa852e6744cdf3d15d6010a36206155'
            '318f5795b35932984e0f49dcb92fd03c0e72ea4ab4824fc16a3445b5109cbc01'
            'e09f684ecf89006bfff11a7bb7c35127ee141362f0531420d139364eb86a602a'
            '17ab3c87178e326009f82c02d832a0e235e4142de088d4c5c61ff9347c951f27'
            'd454c58382aa80b510334d7b61241e40dd587e873e15b4be195bf4f12842926d'
            '1986644bd0419081d01988cfcb4b730b8c3408d8cb189be2dcede0d901b42c7e'
            '6023d6ec1d708de63ed217e021d551f7a0bd5405abea3e6a9d9e5db02c900af1'
            'fb04ecfda3ba7509c76d47b1b833a500cebd4e6038842a46500971128f8ab047'
            '1e1fdd6ef21c74d06f4a1f22b2a0b911400644297549d6ac992f9ba12992c746'
            '084ba90a5480d28f04288ec89356b1326d7d101d2a5efa29d6f8c5a6fafec95f'
            '088c9e300cab4c7723b3bd68ee856243826593e7d98780adec3b23c645857b6f'
            'e26e81409cde9245839ec8cf4c0589623c11f7a1c28a90990144d5b8c2a2cf60'
            '7fd846d3e8a2ea0bb64866fb00769af9c8175571a2336e195796b9128b77cba4'
            '77c107a7566e968ca14a964541e5d55c96cb090f47caa22ab6f80ad5ead69927'
            '73d423109167e2e2a316174f0a77a51d6a2616d461dbd43443e726c7195dbe71'
            '1e97055f799d1e96ffcde8c6b033a0c084ba17cdb9ee2c6d67d21f871cac27d1'
            '0b467e7b9efe0178b3960a7595237c8f584292c3df827bad1e0a0c2a74bacea7'
            'c8c02ee68eba3d9016d1b02f797dce9446d773f8c0b4b9fe546b71ddee62ca28'
            '87dbd8536d8e69b1513faacd436909d128fcce54d4c7663f55431d66ace2f1c6'
            'bcf1332e14eccad8ae02792672abac1b80ea2e62f924fdc2aabfdd54dc2d0a67'
            'c3dd9c0bc2d4243b9e836cb4e52762fea0df604df09a9d52d85b53f54f0ff7f7'
            '2f27122673482f1d2d2cc0fd189721d9821d246f7fa1150907be777faabd9d67'
            '1e70e27f424eb881a98c32debe07b66187af59f1e4aa562e866fd8f434d5fb99'
            'cabfe1be9568cf5288a2fe5f184ae07f2a53299f04334686ee893c07e62f2526'
            '02f18233c3fad26b57f45370e2c9c344c652635c4f6bb7646a19e05bc56a8b51'
            '249b1d096baf760ea1c314708e6fd3a1f90fb0e7b349c4c2b0b44530cc53b13c'
            '15dd3334adb6df13055556ec96beaaa2838f344f1daa33e6252af66cfb82efff'
            '250840ecb0d5500484dc5abbb1762c15750e30a3acf5069eb7506ff93e056cd3'
            '6a58975dc199db76ffe85023222e6d08540b4caaba800d7d3297509aad2b772a'
            'b758fe6c6eb8304e8bff434ab734fb0c2892c1422238542c80529903a384b422'
            'e8f1b3e7e4f4483d1c5d2d076a08b2681c2bfd63931136e73f35d878395fb1ad'
            '9266ab454882eebd3ec7dd889409feee7fe8aa9a3cc4d38f7ad7e0aa61d82f83'
            'c2502870847a791d892a99d066b48cee2fd31756e3072c2e1ec9df287191fe02'
            '00fbbf42b20a3d79492f1413c6d528a720390fb4301ba0c634091813d03cfb72'
            '6efea4949c93227b65d5d57409a29337cc8a33ed1dc03f72238b734b81b8156b'
            '169b81eac627ea09261cdd011507c74c2d3be761249a682598d8223594e9a62e'
            'e153e91d489aa00105822119881d3c90f1a6366e81f03224bde17a25b195e919'
            '5c0276f1fcfd87493b96d4fb86d38ca2a5331cd688fe7e971c4635384c3639ee'
            'f9af6b1e33f9ffeca67a94a6ec91f2b18340753e2016d67cc441f74f5019cb4d'
            'c605deb1422c6d31d04b066823a9de63c96c8e945cc7f72ed0fe82e766206ef4'
            'db6e4bfe5cd298bd7702b2a4e529f6c9b4ea832b07c8194429a2c5540550dd36'
            'cf0534abde0d317e34f80904f28bf7b213c9be0f6b1286e1d913818f4bd3755f'
            '3ec6994d519009c6fbee8ec590cc3bcb1e8b80be2ad2bfb52f254df627fecc82'
            'f2e15d096f9066e7e08f0040818fc953471d922116403ed0adeed2dbf89f1f6d'
            '89efa8d33415d65516546dbb637996905374cc9b7156bc198d31b1d2455974a6'
            'ca3df524fb528b2391126ade9c71c0fd43330741fcfdfe847c8ee163a856b6a6'
            'b25ed543725c43b27fd0b2add07516e527ca65c2a100c8ed07a414c613991cd1'
            'e0d240ce6789c80d8da55db781aa0eacbdad1dfa7ee20dfd1cb1cd34855a463d'
            'caee8112f389dd03a94484abbb51b06a1df31ed03234111e1b0f62c3e683f1c1'
            '5413cbeb85f7d0de3dc6e26f795fc9ffee78e18f337d45055d9d3a8f8a523b47'
            '116c07f0ff99e0688b5bf3ebc43d6ae9180d26d49aa927acaff750524e3f73fc'
            '2934e00983de01ddae7f91e962f83963d8053ad0fd7f8ae02033fbd0aa9ef71e')