summaryrefslogtreecommitdiff
path: root/libre/icecat-l10n/PKGBUILD
blob: bdda36969c95a370c157db01c492b030b0a374c9 (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.3.0
pkgver=38.3.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'
            '2f72ae6bad2fe67c93a5384cb32ab2991166b4507ee4d2678fd3c192719b4197'
            'ffa2d6e68d8c3ca3fe4d36372ac565fd34ad925fdc1f3f46382afa044d8d55fd'
            'd8d90a799d5e7d47a44f4afd5fba10f8815ff09eae34276f4e8e817befb9c6b8'
            '60fd61bc5ad7db8857232deb0dae2f49882d9803d86d852daabe5debaddac467'
            '14864a2372815dfd2c9bc726571b4d0d68169d55f9d0d150e91dfaa73e4cf8b6'
            'b0f9e9f5cbcd4e5b5dd6bbf3aae4d6edbf7f204e2d99f37db313a1dc8001f5d5'
            '70c7ed401c48843c96486799c54498405e137196ea49e643513c43e3ea154bef'
            '5b2ef1a4f93de18c8b27e703ec5da6bc760a09d67e863c0116593b7bacba38ff'
            'fa3ada11deeb52b3125b49428570c3fb8fc9956b3aa2124f6b5c1017512f715e'
            '865456f6c52520446b829ca001268b6a8a9c4ca8ee597c00e7313193adf52b9f'
            '093e4d5fe1fab9ce3eac28a1616857a9b8a106bd91d07047a80ec0f7ae87a1a4'
            'cca671ee4ee031d3acf90cf732b0b03a98a6eb14a3e10d0fdd4105d6fb2ca7cd'
            '1ae378259f25e2a4b8b08e5f3c907476c7b9828b8c2bbdab5f733adec486d487'
            'a34d02f928a6bef8ee204c331073b933ee4c7e85e0840ec7471c4018eea555ba'
            '9fa350f1aea6fd57c10908aa84a401e6d5b4111d34e7ed0c769807c62223ec0e'
            '78f9cacf491b6ff5888782455a3b4d7c1ed0ae5298dd825a8de15bf42c0dbab8'
            '6b24f9c8f926d28106c17e1adec975607f869d5f1dc2202ad1b0047da03acd0c'
            '64bbc4dce5f8bd357dcadec32fe18f9d12d235dcf1016b7490d9802dba9d2e9d'
            '80453680d665de33f10ed1e8f675d546fbc622fbab78a96119470ec553ff5e81'
            '736da042d960010da3298191613c5df4e3813f80519359725c0cce4b9071c9b1'
            'fb822610d286841e79799aabe37b28b3a49dd602b2115b0b44e25656d78e340f'
            'c323f421203600958b966bab2e7067948be7a5ce136b54bfe36b15eec74a0552'
            '524bc6a5bd979ebdc7f82f63d4c721fb48920907d356455943654759dad09e03'
            '97cde7ab000ed7167f45d86e0ca7452006f90961f71fc74137bed72e100b17c1'
            '599ad5f49f6578e1a625e8b594fb9d51414b3ac09010f133a15859acef8baaa8'
            '1471acb38112acd82a7404b8ff5c7fb57bb5f90faf5b99d6a37c6ab6472ec669'
            '31c80e68ddd95628cb8484677f830f952be96ff64897e11d128077e0fcbce7ae'
            '1ea45310456c3b3649ead3b172777d80263c7e18b2f6ba73d214b8bea3fee864'
            'f7df003ce694defcb73b6bce207c0b3a0a81226651780636b196f9badd590958'
            '11eae8c5c93095e5dd9161ec579775a7e84fa38b5a715ce5771e69dd80ee2004'
            'd512a79681dc961f3c4b1d59846dc2d79a75b04aa591ae38fe9f810c946d0b95'
            'b64d53d522244f5bff25e03b19c0e59e7c0e1af796296bba249b9aab82803fb9'
            '3c602755066a100f54726f813d1c7d0e02e634ad7911be1107c0b9f726a1948d'
            'e9f2a84766edf7dd97791d0b84723a48f6441d9ddee4797d0771f805fcac7c43'
            'ac7c95ccb1061c812fb88b736e0008fccc1faceea33cd8516a8db430ab297b64'
            'dd67970c734223e4152f987cbc3db474c54a331f0e11436b948bdd6b361b9bcc'
            'f2df908b7153976bb3b5c463b2e413e0d0b616aa47d13321289c23e546dfa9fe'
            'a6ba0d884228ea0cd32c6b7813943f74d371cf1094602773dd4c2aa09e6148a1'
            '8f1189a915932254dd71a2cb1bc1c8af2650abed6400ed58c5899872ecc500aa'
            '7eb0158c7cf4dc9b429964f404d9e5fa6e70a57c4b4b28ce70b998b62f847092'
            'da6a302f08ebce5f02d5fd09fe77148dd6607149362c44bf17aad943ea178939'
            '712603889391534f5bc4125621a00deca7d8ceb008ebabbfefb71d75393ea817'
            'de14abb876cb407f723025787ee7a1ca7820cc0737d10ff6bf3b9516959449be'
            '0d32d2ed9229fa268dde02e627088bab563671633b447bde7f477a567fd001a8'
            '9d95ec48a5ccff91c0281db567ffda7aeef684c1aa6058bd3a27b76d9d45665a'
            'f6e3da8b25067d8978043c5dceba199858650372cff1f57da61e65649b9a02a5'
            '961f916fcffbbc3f2852f3cb1a337e54e1f5b62389c3ae8888441c991c5289f7'
            '53cdacca5fdf51204a47dd20a395d6c3f77278196e4283d11e3e47abcc071f58'
            '41088142a35e2904779b24e9d54ada4e59f3bb398e92796a93712839f3ffc7c4'
            'ecc6566e22d7b522f8a5ce39e8264a71bf04f22d05c1f83f9c57704b1bac0259'
            '636b368787d841d747f1d714b40eb2ae5e6500f2d933d39003e9de6d52c7d54e'
            '489bdb57e8aa63fd54999319fdb0985a4bff5144aa558fddcf4e977226a780c4'
            '79084ffafbde4a7758118ad3b2cc526052833cb4e0319c9f8ea5b4d393a20bff'
            'a791d826ffb215f396e2c674efb29e2a4ea3b675b538978c46162adbb3c97b00'
            'b10fa69f49de1197b3ae30cb247b11bb34094c895694feaa770ed09d2a346251'
            '50eb11e00cdf99da0d4e1d06d83be903a060a53416baffb666dbf166600aeac1'
            '3ac79a90e37cb6f6cfb7b342a26957f38524d6a09be6644534917d2e3405dde0'
            '19615835b449dabf86177e251e5622945ce248497c015ea56d66b0aa6ccb8e73'
            '7d4093a8136b46c9b8122d5c8e6917a633ddb0fda208ab01a49bc4bc6e98ecf3'
            'bb2eef3b76d0218fedb51f5eaaa8e1232f8d0e4f9a4ad1df75b6f93f59f5db62'
            'c474c99d1d240ea93e891c9e2a01e39ec630024a75a3d809c08d56a75f7a70c8'
            'f07caf8da3bfdef6d35a9e0e2a33dad23347afb6176d6acba1f3123abfa68572'
            '62e4d03e108833164c0f00126782d38804548e4e958d2640937f85b50133201c'
            '05b3bfeab432b1119bd605822bbaf632d7d6e6704b8f34db8c407c83bff3daef'
            'bd393db4f3d07a0b362cc652c5b875d36b2e06b1fca85c27028d5a6fce708c3d'
            'b943b81c9a350804deab5037b14c9eb21ff0381b26fb9fb150c4a3bf0ea62f6c'
            'c461053c9c33023b6acc2eaebd231f7122b892e01dfefcbb2657c422bfe7319c'
            '30b4ee033665b5c364cf8d4a4f21f4b1575eaffc04afa5f6949d94257aeadb14'
            'e952371a3fc8ecc3302f0d357f76e2f1a68ead841404ac000e9bfff2db3f2c3a'
            'a0eef60a81db20e4414dbcffa603d62a0b14e5d0f2d5a84e800d67f7e0af3837'
            '761576f89459725d0c4d9f594a594d226c539544f5bcd6cc430349bbef012480'
            '9ff6fe74ca153036cd3d8b10fd6f517430df24b28808af549b70f01cbc4291f7'
            'ab2e346ac3b9f4d8b7b7ed7e72f668c44e6050a39905c93643c7ee2c37e160ef'
            '3d63cd25df083ae816a0b5cc5cf9ca9f4e9bea519a48f6385400e8b7764531d6'
            '5fc68ae38ad84c8f475eee261930c0625402e6e6302607c9ff540014c70e0e44'
            '578e4919e2b66ba26fb7a8f2922d8e2a13a28459702c251986a77a0cafb19ad3'
            '5e7de79f7a75219c0a5f7ad4c385c8497c1c126282202aee5a2a44d3b030d912'
            '01cd4582aaf949149c322c1a47a8019dca971d0c9629137d688c2b22f3ab3d9b'
            '38e36c769037bcd8b56b728de2349fe69766a63142a06798d9c9a617779900d3'
            'e8ee36728838656bb0d0f743e1ea28727f631bbec17d370b6b4c09c641c15952'
            '62528397a9b092a0a8eaaa23b29e8e0092d78dc7920e1062974cb0579898409f'
            'bbaeb1722a9e1e6b52a7569f4b00f54f1fdf87acda88d52eda2892ab103426a7'
            '60c8b03bbf4805c3ba69234fa9cb04832d05b69b0df96257421331fa676d128c'
            'e84656e44b4e9e50301e351f8fa7652de9b9e068a6b04b8718e1abca144a27bb'
            'c24aa36964a321b9cab209a0ba851ccc268db3114f9209ff742c4ec0f4e4c8c8'
            '93f9e1dfe71a596ebce79affb5764ea7057a8082bac65c902511bf3b5b48b656'
            '1c1def4062ce15660670d7d31ee7672359fc50e9fe4b1f8d80e96f0d8adda199'
            '1dbaae6ea46991f5298bb5c03f0926b48d77c058ff07c44601377ecbe9837be3')