summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: e8767ed6c86476216efae52ebd729dc1828d41fc (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
# Maintainer: Márcio Silva <coadde@parabola.nu>
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_pkgbase=icecat
pkgbase=$_pkgbase-l10n
_pkgver=38.5.2
pkgver=38.5.2_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')

_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"'
  '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"'
  '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"'
  '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
_url=http://jenkins.trisquel.info/$_pkgbase/binaries/langpacks

#source=('brand.dtd' 'brand.properties' 'browserconfig.properties' 'region.properties')
#_url=http://download.cdn.mozilla.net/pub/firefox/releases/${_pkgver}esr/linux-i686/xpi

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

  pkgname+=($_pkgname)
  source+=("$_url/$_pkgbase-$_pkgver.$_locale.langpack.xpi")
#  source+=("$_pkgbase-$_pkgver.$_locale.langpack.xpi::$_url/$_locale.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/brand.dtd $1/browser/chrome/$1/locale/branding/
#  install -vDm644 $srcdir/brand.properties $1/browser/chrome/$1/locale/branding/
#  install -vDm644 $srcdir/browserconfig.properties $1/browser/chrome/$1/locale/branding/
#  mv $1/browser/defaults/preferences/{firefox,icecat}-l10n.js
#  sed -i '\|firefox-l10n|d' $1/browser/defaults/preferences/icecat-l10n.js
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
#  sed -i 's|Firefox|IceCat|
#         ' $1/browser/chrome/$1/locale/browser/devtools/sourceeditor.properties \
#           $1/browser/chrome/$1/locale/browser/devtools/toolbox.dtd \
#           $1/browser/chrome/$1/locale/browser/devtools/webide.dtd \
#           $1/browser/chrome/$1/locale/browser/devtools/webide.properties
  rm -rv $1/{browser/{chrome/.mkdir.done,searchplugins},chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}}
#  sed -i -e 's/firefox/icecat/' $1/install.rdf
  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'
            '1a54d70340b3e59652b6fb446616b4dc1ff8d89d4206d851cab29350318533c1'
            'b57587f3f4e33ee9306e1a89d0e749cbc935fc793b58c376819c65bc9915cc4d'
            '7b9fc01cdda940197368036ebbb0cef32419449cf844f19bc617da215b4f855e'
            '4793b5a7ead080bebc7a8feed1e5b8e9ca79c1809951d582fc302b1e4f857832'
            'dc60be30096071248034b565be98ae0ada574a95d6bca322e6b47314041f6c1a'
            '3a20f52f9b46b63aa6ca519eb795a2d6481aac677cbdb3a5c44862bdfd913ea5'
            'afe2e9ac0847dde74523621cbcfe21d664a9fda50f778074af5423c6fb14ada3'
            'e9c8afd58237ba79a3c3f7e41fe6d20f3527ddbbaebdc1505edc679c6f5c18cd'
            '028aec06752339dd64b37ae450a9f039468ac583aaae5338121d3faa19bf6162'
            'e16150237878af72eff7385ba4b6c8dc2f906e9d7b0d76f91e67591d3b3d1254'
            '72a6b8c381dc17034e96c5c03dba89734d6031a5fe413c6c311c54e38abda672'
            'ee91468513521be2b3db354e1375e7e3dd31423d0b1f0a56ef3afdfb0370defb'
            'bc3c54b3f926cfc19ed908db733c3398aecda5ae2c6100e97ea6cc4543b5e127'
            'cd6cf1451acaa4cad86e22d6ab9a2600ff549005be9f809aecab0ba9e5b8677c'
            '7b26bf04cf482fe2847a17e67b8d5cd07f6668c079ebcda985183dea746f622b'
            '2dddf1703171003301b61891f8748501954aa871be101cf283e5e8c4ca5e30af'
            '46807dac208106b1da794adce0a301c1f0432551ed68e8d3cd85986d7ecc844b'
            'f64cf97a88f94cb5090e8c6bc2ae921efbc079a81fdde9987daeffcafd3a235d'
            'de52ba6cea22afbf063a73ba86d84a58e4b6476bcdaabf783be97df847e7bc31'
            '7bd05a26e8b55997b09195bc821be947bb2038c3278881237e9eb24b0f9faf4c'
            'ba5157354b701d98692561996bd488a8db12bb1299a19e1e32f71edde6c99bf7'
            'cbf73fd9c0ad1a3e5859600caa27cf2c21f9d5169b9233503c417346c25d3f75'
            '436a2d56e6307b3c1025c01cbbba62da08ba851aa413fa4feb6499f3fc48044d'
            'e7d8528dfaeef118df23e3ab577904015b9a4e572f0f0061d2309f6e3d7c41f3'
            '9ff63d01bb5060d3e04295fcec27918c5a2568f8e60ae7977641cea072389ecb'
            '88fc179169f67142bcc1b0944c17acc24d4423896c321af8e7f097fdf897535c'
            'fa853a645ef1ab3e681ed85e7da73d87885b5fd61351d013cddb9de155694bcf'
            '192824a402de6d3d67ca80d4bdc55ae3b20c3782363564cca98c55b3708ab69a'
            'fdcaa9293a2233e6000b4af79309b7b5a8098b0aefa6b4b67d6461fa771a4a78'
            '65bc9432d876d322831da7ebfda3d92fef13f19fa0e34fce0d2d6da89db12a6a'
            'b2eff41438d3b4284a3e4ecbe9c5d3e8c5087c6422274ceae553be7d6c2234b4'
            '3f44d6ffa2e8537be703c4971d873c02ad22eec86d5f3bbf96b70977817b4461'
            '55457601a9a46cd8fff218a86ecbcad2ef6f947f6da2f4a8e56496ac6e83be4d'
            '18f5cdf55effa9e1af08a9dc783a22f15b71ed2de2dcc9803fe2d39c042cebc0'
            'c2a9d9acd7cf77c2961b8fc221c41c7b35d399b3bda1483c706e2d66a990c3e6'
            'b181383dcb2027ece6b084453f7ed4906f61c394bb01935dcd95ab96e242b5e3'
            '860adbda0f151ee6008a6e4a8939b444fb9bc5fdb33d3b2e00e68d23ccaae6d5'
            'd60343404e2dd8cd59d92b34b6a22aefd320f73f0a142a06c5ff95e830b60d44'
            'abefa6189465af1fad1a8740439a5d8cacc000570de0a69c22bc82f2b2f892a7'
            'a734aefd6dbdb23b8efd03f306413d4ff479a81a40be81b287d4cfde164907d4'
            '8dcae8bdbd3075f2260bebbc08c3dbcb87816a0fdf62aa22454212bef954cf16'
            'c73bbc78c577bbae2c5c94ea9063ba319299bbaa9fc6fcb3b1d048880d9d390b'
            '77f51037253a58930d4ed5f32d3912bcd4001ec56d04d0f93aabda679ced8d04'
            '9bb6b7199be8a6732277fe69c10f07ad4084396cf3f7aff22f26dfebdc427675'
            'd8bbb46c18486530c6ae25cb4fffc06902dc5044288f933b9f6d1ea471bd5545'
            '182e40a8bacaf02fff4138888aead67465a9c610b12fd8e863c614ebd30a05a5'
            'e91064878378287093fabcf2e8e7c35b339a3ad7cb5c50c343c28d432bfb7f44'
            'fe37f6083fc060e90e334c77c649823dc8a5b269552476ee8d5d19b7513a7f4e'
            'd9d1a74f9baaa6e1a79a2e70d5ff9a805c176c408285a70af7677dfe9c1c38a5'
            '7802c14e9fb4c0bd092de2e53b6061a9e623cf25c4c4c6df7cb10a25ee5b659d'
            'dd6581721b601cb34f5891e2ee983c83d73f8cae35fe77b5357ab96c34ce8056'
            '7de147b00150432d22bd34075b1c22f8245aa0d8b50ed34a556abd3e7ab70ccb'
            'eb371ba463c65c2d549f947b390641d6d53cb98eb6343cd1c54619d0f61901dd'
            '4bdd77edf746e69495b1c4a47a0140dda10473fac9751879588032712b2b18cc'
            'cb0e1e8f1990588f5e1c7010f3a4fa7518c2e35ed18d641440ee735c8070213d'
            '1f08074a91e272d3ea6e85c90000c1cb259999a5504819075ace359a630253b8'
            '90f05f260cf0a6e2cb1c16a3ea47a52a8d478d6650e1339458e122c04b9196ee'
            'a8b4696de994b7baba8925ee4592b4178a75ca29dc8860c624f937b5e1fe6f26'
            'f6827baebb3e8684c0c73acae13025bb6e1efad465333367f44ebf084c5dfcf2'
            '5d5f2e664bcddc7cce0179a9f6e571b49d70ae3520d9bc0ddd7c441fe0d0c4d4'
            'cf6b0048d073ad7287b63de0773517030387056b81fe30352ec1dcf27c218b1b'
            '984b044bb147fad09781b242eef4c6528e09f7350cc555f4ad47de41497d0f36'
            '6478d8e8a37cac1869c6f5714dd7d14784f209218161185f6ea47cf0eb8bdf02'
            '192476dffe09974cf94a321a76198e294a3b8c40305536b1df1a4a53646437c3'
            'd6e14f23d2855695be612dc4a4f50d016873d4c8da1306636a1fd1fb559edb7a'
            'c4cc667c7f304b23bd634c5f99333fc466c5d8c2a3717d9263eef7c48fcd56e5'
            '8e11b059005c664c0c371d89e8438334aa85c4263fab83bc9b8bc2793df92166'
            '240ebd6a14ffa13a0a60dfbc07863e229eba8ae5f917cd3257c7c2f20ce26300'
            'be9f50541cc384637ca18d84d5ec1d426f17f2cbcb4dba8ec0bafd9637f89e2c'
            '2fa072d9ab64ea2f821adabf93149f3fe28c899fb02dc890951306a03500cc2a'
            '07dc7ee173c5a60b6de7df5837a040d219d81c346977869bb0696235bfcf8ee1'
            '192521cf480124937efe4ffc1135c788a2dfb01d172c8d3c8a17dc8a79a325c0'
            'fc1d6bebb8bee60f65ef6bb69982aa57ef479bff30371b96c21050c24ea5c04b'
            'ff41222076167d3eb2a8b52e9620fae4bccf248b4a10e203e2833f9c5e985293'
            '98316e4de25572f835cf6a4a62cc1b8fc5d12c783ac5aedcdbb7bbd14560a03f'
            'ff546d31001c518154c4142cea043a9c4d61dd7a921df0ad099b5b118325ec2b'
            'e06d6f66a88e0d2ea6544f5c06f654744324594592ecfb8776759e6ab68e3fef'
            '9f9a9aa241f17d545fdd23e956cbb4ee973d6d480420d3495b9df1633ee844b4'
            '78288b8bcdeed02fce8851f91a4c0b12219d92215eb874c4e39e88fe5e0e5642'
            '84df258673f2ee768a57fae0771b883b66cd5b0caccd93c590a27ce18c6e4898'
            'c4305f52a09ecec2dc3de0cad255eb618bf4b351128d979d4aa306f8c908c0c1'
            'b3412228a2e42c8e1897c8f57a631afe53fd2094519d208b1fdace72b86e8206'
            '9f04b9756395b80a1c2c66bce768907ead9de220e19897953df8ab72d94e3c48'
            '05e099e71a429972a959464347facf1268abc84c322ab83dd46117a12359a6b1'
            '55331a836fab0691653b2ea4f089e58b3e5c8f53a8735f627b4fa47fba67a14a'
            '66335415d23790a995ddd823d6da36f4b04ee804ccbc2de2587b5f2791e2ab17'
            '9a0e2650370318e6c330a84c485c94c6b15d3210628e441e8b3b2a965d37151a'
            '8252f10772eec11d125c679883e3e6f96915902660e3b3621220c7276a37e66d')