summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: d032f992fb004fd91dcb9c3a1f18e545a8cb4be2 (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.7.1
pkgver=38.7.1_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'
            '022be5067c6502d5f91b1bdaa1cfe5e063ecb9634041176508a6345a5ed8c20b'
            '76729f495275d7751f2fffc8867418bdf632b13ac60d5b1fdf59f7183baea546'
            'fcffd4daf04d0eb47df02bcc3ba215739bc0e9819f1a5b2e3bae58ddaee23f3c'
            '13e038681be0986c3cceef6253b9f8cd00d58dda508abea0d607a485f778bfb7'
            '5c81af5398208c18f43d2389c9ec65723da65b2c8aa6c64060c2978f9b6f1ed2'
            'acd0f8e6d695d20b335837530b426acc36fe1467afb4f4ee25561dd3c4b34841'
            'aa16bc9bb6d81a4d4e2c3e87c0854436b95f1284e93127442df3241f65c4a84b'
            '0fb7c0e3806580c38c4dac5243dc121bb4c9b6e97fd83996eede9d7c751a45b7'
            'c1b7988e8fdb64575b8c0ed9b2a14fe34a87a3ccde32e719800615813326e57f'
            '3f1cec753c68cd6816ad0043242818914c9067b815ac0c9db501446fa3d20929'
            'd01ccc95d5bfd55b6632dcc93563be13a0ce8c7ae557fd3b2029f66b59b49d46'
            '12e5414994f4e5a5ced90ebefe520f3d64d6269283d2d36e20cae1201baa1e83'
            'f5c7a326abf9a0ae6506491490334abb00bb7ad0ab95302bf4f723674a3c41ca'
            'cd93f217a2e4e5ae9831f5eb8a09361c51f8e6b8fa786bab9d79b075dc41e64a'
            '5d95d3bf2cd4adba606415749bdc69bc08375eb79a050056b4abb4ff132524ad'
            'f69eaa52c41d3dc1412382b03d1d6cb91bb39b8c734e93c6944cc73fda994c17'
            '2657ef2ac72e001c77a85327873a443196a5175e97da0b1cce352a545c4ee1a4'
            '5e98e936f7635759534d369c8f9ff610cc9bf0a0bccd22854b7ec8832ee31509'
            '623f063205aaa2881009bc04b02c1c7bcaf116dea7dbe20d7b2b073a3d2e4ece'
            '9a71a88a260a4abebcf2f8e5487f5e3721334fafeaf8200a6fc984a03b7a599e'
            '0c21f797293df08f2a868f17d36e452b9d08c0a136d20d620e6224bb14524ed6'
            '573b3f105b17e69bf9a8e59ab3e9fd7098463da547dfad07f74b198d4f6997c1'
            '7789e1783126572efc3f0251fbdfc275dfd2198a9e390407ffdcf2ceb9474357'
            '309259a02f28f1d3e52293d40b745a6b099a3b3a47073faaa552b0320bd0e2d0'
            'dcc5b8e3dc87854675c1b4b069e11f1275e6792f66c001f23652ce07ad1ae190'
            '7c7c4c2f92c1fdfbbd147fc00219bc959ddb655c2ee970f6412f295cde9f5a8a'
            '3aa655ad6247039f3db6d2066ea866e8f56fe9ac627f93732e2bbea169146aab'
            'e96cd979eba6e82030374df8e7d3cdf66c537aa7338dd71c730aad6e50017f32'
            'b50ef8d70d1a924dede20c45416ad51933216acf1aad2ac91c12b75921480550'
            '05e6d514485ffc341921bbfbe9b671207a9dd03d64d0ec9c345bd22bdbb01b50'
            '3d35cc82a5360f57936eeb01114c202ec669d372468fc2cb45c1ac712f4d7c13'
            '637c50bfe4207ca17f76ab22a40c337a3971748efd5714c84f381c770cd1341e'
            '9405655633921f596efbb1fe9c8e38eac17786501e42cb59d29ad056252c0b51'
            'ccd15c9f89b8057c3a17400c84a3f46bbea9648bf42345765a473358be70d8fa'
            '1033978e388c2a1a6b0f12918a931a8882959d5b9bf982bb3ffc94c2be6c842d'
            '03b2af6540a20d586304030b27ca83307031641002e76144b8c6f3710049ca61'
            'b1365d7feb5e91c78ac4db0d5a1f0ba7654d1f51c1deee0639498e1bff0c7cf0'
            '001e08fcc639ce309bcef92fac061d10c0c0d0633782d6e54c207cc65a0d3629'
            'e425a06c6e3330aa2af20eb7a2cef683aed476257faa3b72f8c41dbd4f3688fa'
            'bafb0ad4d7a9b2d55b489b6e6077251a3d14dadd0aff8c68ddedb08ea2c68735'
            '91a6a88c1d62452a1812edf5597fa445ec4566b7e51374190c74b73b2153894d'
            'c92c545d16287794c0740bc6f5d9c1425092c4889998803eae5f79f8410872a0'
            '824d28f5a73d1d70a5f9b902b3096ff186f0c3b7f7698d45b063b7d9be7c1447'
            '3b1630bc09467a1f667a100bffcff3f5447f97c4629f7c7f391244d7cdba1272'
            '0982d725a233d3fe5ae1fde849bdb4c3cf7cd0e05f78c9a70fa019530e7d9dca'
            '9a77a40b9ff334eb2144259b686db0b5b7895ee71d497e8ff85ef62eb1b3d641'
            '12d1f7487cbc77280164e547942a7ae4505733932136d55531973513f039037a'
            '9a0dc015d917652811c2e66e6f14766dde1338fd2ffaf2bac5e39095147863a6'
            '5c3878f0ee0125e5493bac90a1f249176a8bbde743b5f219d2e63c0cd4870bb7'
            'a87a8785aa978187cb761adf39eb0eb376209b1c892cf36eac64ad8c19d7e097'
            '6815b3190baeedcc58399aace2ec3f048810035c59b5f1d4a3568b00ff838576'
            '7eaf1356c37d99d5e9c4fb3f3ec844381410209d066e64d5bf45202db7d57564'
            '4c36ce43230b2cfd5d1659e041339d8e65d8de96d2a59bbd4a2bd58c030a50b0'
            'f4effe3835a2d32b7f88202eb2c95e204845b2cd2e4bd3e0fac8fd2264fd6d2a'
            '06fd8441c0a75084a16b1f89b72a6b05d52af316003532862553766adfb69cc2'
            '8f2e822fa7bc1e0c19267036dbdc9a2544357a07d5c77cbff7a0217e053019a4'
            '91c4e7fae252772b15145230682ba5f140d8c585b19b159c2ad26c03e0a78a83'
            'fe4a98cd2c5e750b4c690f8467fa8b48461299b6dfe5d7528f747fa8a42cf3d8'
            '9559f97b54b23b425eb26feeeb176e1bca313ebb0c89e58d63396a0c83a79b1e'
            'cb48f30359be938e06280108a22576b4db13261ebd39b734c56da9ef43f21dfd'
            '2cc5213e02e62007f31e5d7965446c94c8a3d38b3995d52bcb27e39c3efc656c'
            '01be2d8267c5b091ac0eae3ff789e2dfd978a09617b89e5d7296a3b179384538'
            'ea75c001db2dc5b750802f95c6cfb8700024299fab7b07e77f61823a058f163e'
            'a1388addd812c78787651003cc8b2cd1ddae2a7eefbf173052fb1d2f3a71f07b'
            '7c0511244c8e585c60ff088d73978a9358d93eaef6f3d94b2131599fba0da3f4'
            '795bba7a93f78a394b18b18c38a38eb44e0cfdcd2d5592accada0c7777f8a048'
            '9239032676985d47be8f4bc84e67cc0c0707691c73ca418a992bb6d437322091'
            '946100ead0b8265a18559fa7dca1d517072dda9ba96ef5ca5390cb213792ead8'
            'f6fa24087b4c576559b992102cdbb86bf676f07118de20d85fd7a5651d8b5899'
            'aced3507cff6d71856b2692ce016fd766b800a8783022454a4d01eff661857b1'
            'dafe0ac1261a09a3d1a5668c1094e23453983127fde59f80c75481be14c0145e'
            '10f8222362249ce4569d6ae3011c9d9771d60d09e27ad91ee6e0228cb4dff109'
            '278d30bafc659a4390f9e4d7354ec50ac677cfafa30519f9fc51a4459fefffd4'
            '6cdcbf1b15a4c592427d1c35dc8f63d1f7aa730245eb31e7ca03e744aee23b65'
            '0dd3467823cffec6e6752a38a34fe635a73b137c5b006e18ad59df488889e915'
            '47a05085d9526566f5a1b81397f19051f6a73160ca6a85f45b1aa5384259966b'
            '8546a38a088e05c09fdc51a65885255a36b28faa037cf28dd70b7aa3a055ac34'
            'a3dd8886b879b1837e6779b8ebf5f01ed3cda8ff8fe8ec862d4e84f36a12e420'
            '21b604866360545526a9b904298bca875f8de3569f60c0397a352166d757b1e3'
            '7eb59c8688b91390ab8443d813b13708dfd3ba15d1b6679647ddfb0c898f5fe7'
            'd7799744da7da7d8f8750a80c5003446cddf90aa9be365b762837bed581db365'
            '03c96e0bfb02cb69ee330392f2b2b80eb8cab31964eca15c82c068555acdeaf8'
            '2fc79a046f51bfd10c6812534338b6cb2a06690fdb5f16916cab2f5de1200b2f'
            'f6b6451252c5557b973d01deeadd5b9507f3d23b3414d55e44ae45276ca63514'
            '0a04ea3beb0daa0e4acf310b6954ad82748cb23bd83ae727a7901e54268c5002'
            'f6fc2a07e86ecc70a833cc8f86f2d6dcc06143e53851e7232a0d5d4b672114c5'
            '5da2b851c719a75c80ae34f1ac48443deb56f2a505a3f07c8b383d863850162d'
            'cbb47bb7649fdfe80f18814450fdb7fde65127f7c39c06f8c1034eff355681a3')