summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: 5e107e7b3b5e513495d01f86ca0dba823dafc751 (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
# 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.4.0
pkgver=38.4.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=('fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
            'fea493eba8d01decc291a572a13eb9494c8a92c984152fc16cb9ff37cb34f6af'
            'be95751bc4c549d9ba514215f2cf29a14f729ba8a0062b8c75fab459a89e9567'
            '029ee2ddbeb4985f5eec7aa4d540e07ba2b16d4adcf3e654c7ce871eaf4ca1f3'
            '593f97bdebf52a7fb3c33535b6ecf81ef97302ae3409fb5affbdd2574f33f491'
            'cf2bb2a25b8dccc5e89cc6aaf560e2f8208f7bbb9940b83d883a9c47defc4801'
            '693d7cf3989d17996b9068c70ac8b92af499f4720fc67d1429c4b309118399eb'
            '87985cd9fa00c44a86f26b66a3539f6d64efdc710f5bb448958b89c6864b8b4c'
            'b8c94734e1ea222bb933fedbe3dd82d6badcfae2384988fcb753c3da333b1d54'
            '45c4a6fef1957bc0428d4790e25202ab3c3da8eceff24c1dcbdc47d44c310f46'
            'd0a73ceea96095f8af593bd2e47e31dc827e37cf7422a669bf5acb76aeb6f8ce'
            'fc4a84be7458d5e91cdff8f745509186f722f9eff3a03d62b327c8e26fe95b0b'
            '9d2454691fd7bdfb7c9881bd6c52f7602c362cca4c326d6e1e0daaae32d19ba9'
            '28d85b36e6cc6e7a62f8318970aa4d942ab3c67ca18aade830cd0ddde175a652'
            'fcd894d0e0d50d167c8ea66a9de1f75e6ad03b86f7008d9282021e50d84bc8bd'
            'd1ebcfaad38e760ab44ac776e5604e5913894d747fc83b257bced7c1b4cd0c87'
            'bf017355ce33eb7d641a03e09d6a380c9632be075077a0179624351ab813dca6'
            'f4889cd2952b4a9f6ff1bf8dbc86104860c1759eef5e67584cae262e72c414ce'
            'dcc772f241e067b7fd296240920fd282e7f813950bd32ff99009055b46cf090c'
            '4e6736c4cdf7b47bedd6e7f80e137a413fdde1af619d68bc48847ad81b8438cd'
            'be9309affbf1c51cda02cf33b7acbeea41e91e389f742d6e6a113517298d9360'
            '55e68e8b644a765624374b0b832801d6365ae56b9a0f9bda813de41d6ec74b45'
            'd17ae47c554610497ceea7361d1d21461fb5ba904511b2232c832f93e1178324'
            'e0577254be7b1b7ca74e540681fff4d095915de74d72aa6d6bda1f15e6749d9f'
            '2ccf8c7fe4ac6939d7c75028492d6ce15784b31f9a33e7f485711edc47e969b7'
            'e7eba35ae07446136d3ac9024dc19d9c2c17b15996d92ebf31f14ab3358f26d5'
            '143f0c0c0d66065f87a4f526c5a55f37d0aee8e28db28718c2b1536b6221d184'
            'dcc11723bd0ae97ce5ed6c10bbd712a3c84706efcd1c50cb33729b833638ab5d'
            'e91f466fc08a1a6bb0441c06c07461e4b1034d22df801e1372e921de2dcdeb85'
            'f2e81fdde68111f65698a00cdba0ea66fb722bfca04c541d5aef36a3a9acf810'
            '84d53a53bd0ecfbdd5b333a42acf3d5fcf894529078d4a6b55c708f31c1d968f'
            '04df55ffe188acfbb5f959560ca80241ef4eec745a935fe638736f92e7ef8c0b'
            '385d5e734fa66726b20510ed678d8aa5100569f3030023dd00e828d1edf5f092'
            'bb02c4238f91d6c9ce1409fbec28a4e9da4ec9c32800008e344802d1322eae2d'
            '88c0af44a2a10dd8822bbdb165966977521162a4c09b41796f5e2b99435d925c'
            '1efc4cf14fe27f830f7b8dd477ec7b5b62085b50e0b56a6c5a6b259276658359'
            'f0410521f256731f2e9bdd869bcf63b040a4002f0fac9fd07a90fd92f2b0c494'
            '44d7e4908a7ad53b5b941af4d669afe9e316ee54c4611a0c5795d119d92584b6'
            '2036a78f6888f6b3da588479f2b21660c081859a940ef302ca463ee0a6ee0421'
            'e0e4c7393ab47a6acc3b09d1959d048f1ca773376a1e8ed0946f80011f7e2ea2'
            'df063f34145f51796cb4f117e8a03b0ded3e18dd2889a0712b9394710e8c2206'
            '57a6f1870d663dbc6932143c7810e70ddceb5787a9b196ed443b806b67199220'
            'fb7e21db3c50a2984e9e828040e13e078e8bc94771cf2c179c85a9768ee38c54'
            '1fe0fcf9eef0ce4ae868aa1e7996f3c762270730511395ccebef3f3b64b2ede9'
            'c7adffc8adfa79207666a4a0a4e4ff4c6b3574b8eeeb5c8c99ccb56caf9d5041'
            '97142f04f1b0a811a549ceb9d4e0965edece8725ba4312bb8b1c468d59eef279'
            'd70d0b88c14353705fbfe5e2425737c8977f27a1739825c2a842381078e2e20b'
            '8bc1a8adfed1f243dc9ce5f21b1413ff3dfb0a88b609384fb766070f0fa452df'
            '7b82694cae36cdbf39a60f821a1043b4af2d9a4e7bd3a88c086a1c87fba5d61a'
            'a19eae6d63f768c79f3aa7605107e3b6d7bc5dcb359a0647a85c65c43dcdcfd3'
            'f4c3a69773e4cbcc68c1134b88e022aca3c93e6d45c45e85dc6387c5b9555ee0'
            'fab94235b40670f52d8530c63504f5f567fa26dfdc4ba2eb4040c98845b813fc'
            '7ef28243641be874dd24ee088b18c6cba51b4947f6ac38f9695a1811c36fc7de'
            '22b8c18dab263eead45d0056c734fb69a36e32c7a70de15cac8ee75cabaf74f1'
            '5df2b30a257932f5539798b17169f0936e66ccff665090b77f0013761b5830e0'
            'fddaeb220a5d920681160625337911b515a9b975b9b24275345db9623d2d73bd'
            '386a15010014c22c90f173db9510291e3391ea0326377a81071238cbae0905e4'
            'fe46cc5815654ed151722ebcac009bb9b566ed92ce4e291f839e0d697bad0947'
            '6d4b79d4f299f911799da8b37ba94c635e2e8afb4609521b1975db3ab5aff283'
            '4fe1a53d23e74897591859ee7c66a0f753b93ca246839767256c0eee237ee176'
            '9874d97e852b55b9b181aef5006b92dd3d79180da48a2e8d0b251f18d5511288'
            '0cedb43df657431afdd84492a984e699648d4a72fc082df95d2a987e70794d24'
            'b432bf196003ec9d18e770b180abfd092c98955590782ad2d4371ff48aa2194d'
            '1f9de5f5d71ac77c92d08f8aa479dadc23166a3e2c7a72f0e778701009a01293'
            'ede2fb2363ae29105993ebf6fc2746cae52e4015a524892592f9c40919b87f90'
            'c8d673f3f591977b4b1ab1737fcfa0300cd931b97afbd31ed344edf07a5cb17e'
            '0040c1f979b4a6ebc9d44a20a100ebaf38aa4247c46d648e6b5ab5215c61541c'
            '9977b9c2d1b48e70412a0104a7d35eb2c8665996693b6b279b6c8451558f3ca3'
            '86dce5a2f1685574881c626b5c0a660277ca07376b1b8b65ac85a2f0fe2711bc'
            '4407abdccb1ab3591043cabaca3e1e3ad33030a1522a07ae3b65cf8700f1b4c8'
            'ff16d420e503b70e48978e6984efaaa38fa09d6b6c6a9f905c3943fd5448b368'
            '7ee3e668fbaed419f5741c2337a6ab9ba9624657ea15ddb18fa40090face47c7'
            'b1d17d3ffcbfb621ebbcbbea7fe44bf26e891e4828bc3abaf79ae8998f99e5f8'
            '4be4132464f4ad4a2c6638b293f63f6ce0cc2de594fdfb3bbcde301a1e1e4512'
            '065ddf81128dfb23abb761982cd46380875ee5f65e6f94927d1033236566fce9'
            '8acc098ad528ac34206152538d3a4252dc441d601778ef0c2872151802e49f54'
            'd1d79b308b9016eeeb063d5f30ed3f325f80bca45e0162aafe99b353e747c86a'
            'bab0a1c2de51ce2c6e81082a8cb0a1aef08848420bc22e291622ce75928f02b9'
            '5fa3583b4183d3b5830585956afaf5c9ce0cba2f38c373109f5187701f3867b2'
            'e0863a054655ac6e1d2e280ea562f69f2ece19014688e5298a0c88dbc2104fd1'
            '7ac12953b9ad288fbee0ee855d41271c54faf1db5b81ebab7964d5c6338e02d0'
            '0b1d3cb2646c5f2c54477d27a1aaa3f3dbadada1f2477c85c85619a3454f20c2'
            '4461df10d5ec2f597a4d6a3d2d539ad3a47adc161fe91a01695b88f303f9483f'
            'e8a9436a1ea57ff78ccbd150615d0e1b5b16ab903f97c8d816a710e693104937'
            'e8e0fae8fee788fae7cb76ee2823dcf540fe7f6f4ffb072983e8d3b1c3797d25'
            '73175dbc809c9d83193fcb44193fd4f142fef342bf6cfc27dfaa2a6db2a697c6'
            '4ef224b59839231a8abaa9e4b7a62d10261c20ef109284fa80c1d2bf8fe6756a'
            'e451635788b0d4b1b46db75a16420c9f1d1e0f748971269d7316896b943713a7'
            'c61ef17dfdd6339155fdb0aea1001d5f476ff25bacb6755cf86cb0cc16aabe4c')