summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 6615197f9d297dd85c557029b0f1c7bb799d8392 (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
# 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.0
pkgver=38.5.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')

_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
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=('c57f9d372f056d79b074976a70d3f8b99ec9379eedd9b7a4ec33608b002b9af9'
            '06aafefc434b69d7a5156033e83ce757181d8912812e579aea6b87c77b06fb3e'
            '9f9a8b54932b3138d15fb050a6b04e574fc018d6acb2b7f23b1a9425513d416f'
            'fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
            '18fba848bafbdf9f1e3230463ba97ef8ebda8863c0c6e606166f840f38821117'
            'ed5123547065cd65691a60d1d2916115983adbe7e5ed4a526766cd7e37cb7923'
            '2634e09e125837bbb108262b83d38a08ceaf9bc198c9b6f99cf59831e7cb7102'
            'a3e651f4bc9f9ec963eac9058b0230c4bffcef51b5ea70cf536449039e3b061d'
            '6311ac7084f1f29914c8fe7285be8786ed278b75d733d62706ca36ee765bf10e'
            'b3e8f50517ada37287c3972d04dc01c60e433f30d076d31b57ca8f63412acdae'
            'c30009a21d680634d86973bc1e9f033ffe14b2b6bc4c94de4efbdeeafd9aff1a'
            'b61c2aaaeabc587ce5fa977b8ba260674f8ec57a5cc0999338fa328df78cbf58'
            '0c85c42f4e76d0df3331a2763fa65904e8c955a0abd662db1218edc4f9bef035'
            '55bbd8db0e1966d521b2cae6c2b9d30c7e8a8bd75c9536d0edda4d140cf1f2cf'
            'f3ca0fc682d4e2b24120041886ce5f02cc472e9111f1985fcc55a29723744f0a'
            'c4fc6be41c674fb5517eb1bcfd25667b1b61ab5eb8d6dc86cdc99d0472176a3c'
            '4921943cc54ac8f66d24981de95498ed819e4555a1454c68e322edd1dff6e042'
            'd5d77114955441415b9e30c8bb72adc8e16d7214143967530e387c1918a030da'
            '7ac26985bb3c43063f105485c06f52556b1d5a84d5fff65a49fc90b58663c4a2'
            'aaee976fb2ad8289cfac262d2cc878b877e622277402a178ba506639d2afca13'
            'b1b9ecc54a460368159ecaa3542400d07fac136c27098faed661cf141fc55f19'
            'c6f341cf51842c2a128b840001928193287689b7beb9ad29c8dd5714d799b6e6'
            'c6a424b80ea8e23a8d99268b832247f0f7b875e18829c42695fb5afbc7d41e1a'
            'a1f481a0cce0ca0923f620734db4449c0d6fe74e9e85b8132947faa2ce5e7135'
            '5bd5c0b66139c04e3a6c051828196f202cf0e63a7eaeb7a03658804ab96440be'
            '05bca99e9e644de8c2c970f48269df7a0fe1c17168f2387b314952c0b5a5c3aa'
            'daa0d896bdd350dd7a512fcf44739cab26e25da6c951b8d8afecf61e35da9c7a'
            '6d460a898b51b71e2fd636cb3294fd25a597e6650b9607bdc0360cf86ab21136'
            '17c1d1c90b0775e33fcd1231f97fffdc794d41a676302ce5b42a5abd6d26978d'
            '434aed974258fdae48e46ed8fa2432f992ccfa9d4664b48b49809cc5881c149a'
            '1f5bfd3ee120cc598125bb747272e5e32f33eabc563b4228686645c85ba60b8d'
            '2dea9aacd3e26771cd778f21d21faa2a4b9893b615ef7d8e3365edf44dab0632'
            'b5a472abec6cbe241f213da9bbddd9d914fb61fe1001dbbb001c8e56635c69db'
            'a624a087b925992144f0ec7d122eafaf79f1b16b4acf307b397fd5c83913a4e3'
            '62fb0bf85345d2c79869e64a65f1f636d3c1ec3bad9da3bc222c74f04f9edadb'
            '3e7e618950a051ccaa9ee887a85980290c0b214cfa55ebc9e0f0f5dad79a20d2'
            '8be24b5f71615348820f2f91271f8eb79f22a1b903deedfb242409350fd5318e'
            'c28993ee63371b194234fd0b45fd9fe805a473e65647618ce5831f80110755b3'
            '9a278dd0c3b7312c9f0fddfbf3502fa8af6d9a0517ad9d1ee766dab0318123af'
            'ae865a16005632a83a349cac9992ca555031c846fbf65cb6a67b90d989eb80bb'
            '97bfc8ab8d8f60905feb9b9e4f45c2907c2bac81f133de25c6c5ef8f803c104d'
            'c13a1ef9548495b81af1e86983d0356eaa4ae4adfc22f1c8449b788a7b64f4d6'
            '0456275c8ea0462a928b2cb6c5b39ca044e55464444232ecfbb22a3a58b05e2e'
            'ffd9fb218182e75a8492ad0acc90dae9d2bb1213eacc2a5e25caccf430991d76'
            '264e5ab1ebc0ab092aba6c80f12ed3f7ea9b5860493713050b51fed26f906fb3'
            '52a3336d7d835dbbe7e1fc1b854a5148201e81df91aca7f4c50a434d46706ccf'
            '5e4f75d43fc163a40f40990be32fa932c9421511799867a3428e981c5207c24b'
            '19ff2b1ac85fd0f8209499a6e1941ef212f035d85f2e09cb3d0dd8334eed44e9'
            'e78a516bc8097a0aa251d35dc0678ffee498dcea5db826c990ee1f2fca3cab35'
            '53a92cd6c5ddfde4ee1ea0e0ab45deebfe2eca8056b65594dbac00d976e30940'
            'de9e55c034d0f55f955f09696e0a1de691b91ecabfc5967a0c6ac1bbba2e9e14'
            'cf8dcb232e82ed458a6d43ebdb7febda128269d70090470374bd28fc87318ef3'
            'abc2961c529178548008e4103e4a1ce0d189767f14c793634ac4c41a22661352'
            '96e3a7e4ab4989095c6c2c1b3ce001128909d9b39f3ca901150b1ee230519f6e'
            'fe7c8d4042dea32c01db6c5d8804f3f110ba1bab4b179c54bdeaccf6f9c6fd40'
            '18aedb7263994de0fe22c99ca4134b0f5e9420a475c1822306184b20ce535a03'
            '631970aa5a10dd84c222d54c0e640427a227334562d2b12826aa6dc0eabefa40'
            'a5fc129cb73ac22cb218b58714b8eaa20c4e0fa1193131baf8e32a743e53abd1'
            '48b911e86554fc4997fb882140aa45ca21cd0aabb5f654ff9b5bfc1c75579d29'
            'ccb32c83d3cf0e3ef108ed77ad126fda26cef619e7451e1f012f26c031a016dc'
            'c1eb6cea142afeda64ca319fcf79138789e18a8693f751d19cddf6b835c28076'
            '3876cf8785af65a2d153c602c14020f4378fb19c8e8d3093806978f8b3cd9dfa'
            'b81fae87008c7a33fe1ca6329396209883e2dcc8bb226bab7e07979a9607c5c8'
            '423427d276586d4f2ad7cf42c60f47e931f879fcd03003b1729b862c97f34eb4'
            '821b4ea3c15e85bbeeb9f29585bc4a7849687ccac06da7570463577013e1f529'
            'c84d9d6d9b30c0fc777a714119ddcf3050ff7891ba3452eebb356965b5274b9a'
            '3f2123b789f3b5ba9ef5307f22b93e09adfd75fa72d99b649c24a55f53fecfba'
            '8d74c81ff37fb6f1e51fc0cd66a2cda3c5b9ae572b56a125810bebe7008fefc9'
            '540e942ee1df17e77666293c7b31630edd753020a2b4e6d863a1eab37c786569'
            '66526ff6e1f0704323df526077e1279bb181c1e093961fe4d289aaad6132bcfb'
            '7fa6ed68df5a7113da414fdb05b804b8cd166830e5fb3402602dd59646933322'
            '6204744a7e016ca8049306072f2ce5e08619e16670f4bda0f2f32e96c05d964f'
            '4324e0d1de1dcbe182e81a090c1f49e6617dc743c59098e4fa559d3192250572'
            'f89b4b3408c28325fbec1611ff1984a161c4f9f715671c13227dd97fef0ad4ec'
            'a9062eec7d33e57060dab292f6f364280148976da7d4d094f8c1aedb0ebde2b9'
            '705da1314284983027e6d84ff4cc26c98e8f3351a369eb2d64ca50173d6de831'
            'e1859b040af0135c1ce85ee775aa92edcf6c1bf3f55ba111c35fe56f23f92ba4'
            '9d28d8d93abeafa1068962fe01a628daff5763bddb69badf41e661e688e4fc35'
            'd24724b695c356a3f172c90109775eedf57b543fcff64ba81739f644e28ab362'
            'b9de1fadc0ccba4548e90a144a36a8415888aee58ded09fd073ea3cb6cb557d5'
            '3a9d04e5b97d77523f74eb8e3269a64bf67ad2f95fd4187c1440a9a599a4770d'
            'dbf17ab5c837ae677f07644e3b2582a784e06d869803e6bb60d5483b35005033'
            '6be710bf51c9ebe27a02932332b38b8a66b572130de0d0df5542563d6295fa1b'
            'd62ddaf94b1555ede165b818c6cefb222ffd0311ef9f917c932b2946b902ea1e'
            'aed525301d9b7e7a7575eaa8c0c85e442006b84d35ad56aaab747f1dd797a984'
            '477e9129885b763b8c9105b155b308745b08365a9a1644baba7be9408714ea72'
            '63bb631be43cb0044584d30eb28b45fa257baa2c66ea67ff71d9859a07c9fac3'
            '69c72be78713242dc36d48cc5430991ef7b39807f64413993354a22f25354a27'
            '8b2b644c428dd8601dbeb8c8cc35e83d122f127758873034b92b0fb25ba8425e'
            '9b89a96a283703284bc906a122f564f75704f4c0a1a28f8261f5d737991d77b3'
            '213bc5ad9d0e037a51f29a96dc5bbac4c550000dafda88271d4bda0ff89ec82a'
            '7ab324275d321eb78862ddbfb0628c14fefdcd16d89b405ca7a2656f77db8338')