summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: bc15d0f2e45181452eb777f386f8f545cc098ee4 (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.2.0
pkgver=38.2.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'
            'ce4530dc72a4c01db088b46e7018a29a87fb8b719e6a640c4c97ee0793d8190a'
            '9f9a8b54932b3138d15fb050a6b04e574fc018d6acb2b7f23b1a9425513d416f'
            'fc301f3ce1f7d7cd995c7920af18f638e7dd40ade90318567c2bdb922d9cd11a'
            '80f2d65db6ba7c1079e36d4540c5364dadf50ee5cc00cdd1f4fe505915b12ef9'
            '4d822352bd0dbaa73dd547602e20ccdccb62b3ef9bdeccc03f172511e18b41ed'
            'c58525c2b8bca44c5242e15a3597d3c5af89cbd227a2f37dec0cc64b777eaa2c'
            '5e5e573f9cf9bb050ac9e94311887b83684c9933c8ba36021010b093b69c667b'
            '690987405cf31ba44a2bc52a040f79e07bdca5e1a68bccb65a94f608dd32a168'
            '81ad42dce9d9525aa2d4339e928d5675d4f069b46deffed0c1afa7c29f7b4586'
            'bb1b9b3e7ee14cf447780807ecda9789d696e83a6ceaa83a3f455025462976b0'
            'f025e13585be2126f1f805f431a2aab6f92064970a5d3ecf8e458fb35fcf1b04'
            'd566656889a8922a88bab1a06fcf6e49f1131cc7ebc53aa19ea9b177314a7003'
            '1d8a734901cfc8f4a3372ae7586e6615a044757faaa43d0102d687465a7d8646'
            '7a6e05c0eab890318718b014402168f30e2593a63cbd639b1dec9bbf88e74b30'
            'e5bc879e345784c9b4d9228a3e8900b4ffa4e643f01546db80cb4d9e11049a34'
            '0bf5d0e162a33a5ef6ac3059a5b713d88fff367f7384ad56a594ec07aafce358'
            'd2aaebad9dd838e9cb6aa4d5fcc45cfb2105cd655671455fd5a360ca43302842'
            'd3f1fe4b368d1f30cf93f6dba98af57491f2f23df1754edfc896aa7aef7bab8d'
            '7ab25f18ca0e267fcbc30503f47162319a5c1c08e1bc03518bab04c2c8fe59c2'
            '23147921fc13063f39818bc2d563d4b07b0a5ab466000d9405fd9b9249e67663'
            '6d4cdaa88f41cc5feaae869db51684d85b1b1d6026ba9309c0572261828f8c1b'
            'ff71942cac9c2548caa8f12df7005b5b9f91264f5b7da7360a99a088c4528440'
            '24226e706875c0f1c1b18c4f2f55fb83e5963c3e22061a2af436d92e8b66ae29'
            '2824d85c15ff1a0ee6bd69228dec418481c9a7c4565beb5b45d0428e0b6f127b'
            '7b103f2e7472388b6fea50c602a5950404e9d297a8ede752e04e93fecce4cc1a'
            '7c41dc63256b9ae615206cecd5bf008879443791b03269e1d4dfcbb0b6e73fb9'
            'fede8e15d08da232349fd180b17d208d556de12fcb37a98a59362773e67ceca1'
            '5957a2f6db01d593b6d82149f1ecd6b129e5322f74a254ac46d07503719e61c9'
            '2da47c5401a9e60c84859bd28635cac8bd03d07cfc0d25ffd2fed66819d060bb'
            '0d396f5f5ea77920d7273fe4dd3662b08997657c321fb7ae62c9406abd9135e1'
            'fac02f932ee8c93c660daf2b36ca6a8246724dfa5ac040809e6d88eb219b7a03'
            '492ac55eceaff28188516c154e738d4189615135e4434cde7d4108c6c92200a2'
            '125f97265b11efa49886c6ca9611b6cdedfbaf40ac59fa7ba2f5d86308dbe4e9'
            '36e58433af2939b69d461a4d21f8576c2773ab926f95e9742fcfa28c4b8155a9'
            'e56a3252d800bdc5ad2c18badf8a1a6743e7aa4fd29f459a339ef05a26614272'
            '959138dcce85fd35da81fc9a1ddc28bfb06435f9a71fa1f2a2cf0b44978cdf70'
            '3f86674161098d9446ea0736969c0d030eca100688880921daa8e615a9410e38'
            'bfb2eeb0c787ff5ca2afec939f4da875eb854bc5baafcd61021b2d0a4db4456b'
            '8acb2f0a4416f8ef182abcf6450e9169852524c0fbf37dbf15cb5156273eec8c'
            '53ecc5c4d83346d327cfea3ed8554b468f9ecb17daba0ee655268a3d1a23d276'
            '33799f5f28c4b6fd80f5ecb5b4ac1ff9ebe34461e50c59151d029053f1f73d53'
            '98f05fde9c1341b7d32e196660884fa24c266575374aa8fb26859f5fa75b7b46'
            '3a9480cd2345f00507ae719c33185acf5e9f66a9c996607dfac0ec95d0d32d89'
            '125abeb8f4a881fd68bb8f8bd31d7b89c98d35f3d04e18ade625a74e45723466'
            'a88449a67fdb85b21e031b894fc060e328c42a3ac1a39d13fff8446cc4df00d1'
            'd37fc8e422a2421829665a13c7b39bc18af76afc22639395fe346a3540a360e1'
            'ebdf5d14d7b97eddafe6fedc3b7b58b4823e2ba7e9f019facc65c469a1c0538b'
            '861b0ee5cd7130606f8db16d16855a932f62d18ea279aeb425d13043b88afecf'
            '17f205a9d775e3a97ea3d7b63ee931f4cf5bb24089978fc979dc4d1b5d057311'
            '1da955c3cb53ee2fdbf03454840f2588ec3731b88d5ea31e450c4473eb7c0c8b'
            '1b51688caa1e55b2117fe510d31485a3219c3f4446e3475c87699abd460e84b0'
            '9a445773926e5abf3df7ed1e4ace90e52c17ffcfc65e76bc81b14ce3f9a47910'
            'fbff5ab8dae477e73725de8f1ee346287aede8c00b6891dbb11d4500b7e6620e'
            'd8756e4efe30cf21178d51ea7186d0bac4980a10fbfb29534d0e3988859d2997'
            '19f3413cf7c9e0deaa025d254c8e787f2e2d3dbe0c800841d69f87dd02249b30'
            '769ad5652416a94c038f1df689532c35cf00804e7971f7d0bfa7157ebc24e95d'
            '692e7fb76eba7b2926300e2ae12dd1215c4010722cd95ece2893556ce1729ff5'
            '0e7a1903ee292b3bacf00a876bce9618a869a708820bb04cc4487536b7a09590'
            'c51b1627c24c48721cf799e9438d097d2b815e576042813a15d7631285385499'
            'e4be6327448665795bc83a5de98826bfbc78118d188e7687546b5b5d170a1e3a'
            '6aa7b005affd7cdc10d9c42454e841d94ecc94bec273755ef9754e033a3e62be'
            '73bb6c2101dfa7876814c68b3b02467608c72e0e8bc3517aa0fec61673069bba'
            'f4f68fd8871ab409f9d3d0540873167e693314278a16508450a359d9cafdfdc3'
            '8056a9169fd52a12f8f806f1e2870a2578591df8a2c711786bee7ce84436dbfa'
            '5dd497dbddcc664facae77de25b8b3f4e3c87a1747bc44595dd91b716ba82748'
            'a7371d8b484cb686965b3769f0bedf6c8803bbbc05021c8b3e24d99dfe66348d'
            '79db2dab58df83d308c614469a7050d3228898fcb2edfbdb9eaf66d37d541719'
            'cbfc04c1b6dd2de9f87bca693b4de8275ab4860cc538c0d7a60fecb58b88c6dd'
            'f7f312ed6907c15004e75cfb95a0e254087932cf8203b1d0419dc1eea055a9c7'
            'd13fcef16af096732c430b699a53b1d0d76eb3829bff5166d876ffcc94e123e7'
            '9cd4c26a521f2e0550ea62ddc27ca751a2b3f2fdc6d55af861936abcdd6c1efd'
            'cf88953513fc4b20a5318b3d4e8f771edc7dc3ef3b3b09a8858ad1b9261c0866'
            'd5151574b477c6964461ae75563397ebc8f11dfb9331e2ffeb046a4bd046ea97'
            '0289531702f0e2ad68984a9dd939e67dafed98eed7c1a6552d136d759ed74684'
            '314d1635548bbfd7f41927cf327c781d03d99b8ed1a2c8775a34ba6cd3b12a85'
            'd40e11bda881fa9703e51065bab7204bc5dad8d4affedd4638cfe96f907ddf07'
            '8ba7277af23a615970cc1384d3b54e8d88a3305da9fe03790819e7b1aeb41a15'
            '3709b10419d813e3255ef9022e276344ca90788c33858aec111c541b455bb79a'
            'fdc0e581d870726728aad45980c6f10d4141a0b9fa39424e51335c8751063e30'
            '6007a48742b675c34bd8a331c201f79a19cb52fe7dd7907cd73e76ff9d0c090c'
            '21158bf5a1286bc55dda4e34ef00fecf5490c55da61dfbb8de8a8f15f6c3fb95'
            'ec13ec46f071219815b200ab46f103ebdca82308187562d57ae9ae01a9c234e8'
            'b1ffd8fa3534f51d3ec9294288223898d8c41285c4fa400e096fc7ec1aff8b0b'
            '0e15637fcefb0e16c4722c242466d2f67b18eb0fbe79097cc29e5358cf7aa19d'
            'fae94efd727ddd145146d2df759e02e060e8302c666ea6cb2d09558bdff76abe'
            'd9871bbdffe5f9cf5275894c05a7934a21af421c3343844fb5efa78efa06aaa8'
            '3c5ff9e17debf3c7d865474262aad09c5e7d98106ecb6395d656caee27c39b61'
            '9e7dc043c3aa7890255241bdd0292a01d957fcb77434ed236df07401e3f7a9b2'
            'd41ee639470dce1ff3a103987c16ad5dc32c3b1f468760855d9c840dfbc0a39d'
            '6b58c8a6fd5e62933d8ec42758a6fc7dd4794b7f659855331debc876e8b80bec'
            'bb22672b52104fd11c28d5609d2c039dd0b3636445b091523dfb90538cf84e94')