summaryrefslogtreecommitdiff
path: root/unmaintained/icecat-l10n/PKGBUILD
blob: f545cec4db129153f28b8e4698db79787e44da49 (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.8.0-gnu2
pkgver=38.8.0_gnu2
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'
            '7bbdb563b020c04d2510360f3c1eea929a3cfb6bf0e76dd3e93ab0429815a810'
            '4ffcf9c070db6e8790c2f8fd216b79710e11d9b5bcda81364fccfd596e8ac3a2'
            'e8a9aff1f5f7992ed94b299224398dd0883b68e730e914d3aa9ce5e503096112'
            '5f7c63c16aa2c64bd82f4407cf07fab7f1951c1a8040dd9af1d107079161682c'
            'f036744ff3b4c9ae59695040db1c004b26698b82019e3c74f48a98ca6b4d3215'
            '4c4db2e6bd239dcf7da0d3fa42ff8c6c2af7036c7a07f736cb2f8327ea9b8380'
            '5e68099926beac0b17223bd6b37f76a77c642fdb13a029583897fbbc5f46bd65'
            '4c60013df47f4ce0786cd6db6f2dffc620a350c3420f3e9e5be285ec40b0a066'
            'e0ce35cdf5f863556d6a043012621d42f2a0fa979dc6548e3c761c360fb03804'
            'cf65fe00e3ead3db5c28abe068fedf3069a511ca6f41a14e6153b7f140dacbdf'
            '52e0b834668f2e0fe6cee3301ba4daef8ea877816d7f801191fbddd8878ff39b'
            'b90a1c4ee0355a4b854cb0f12bfcbb4367aa3339b67a216832cdb13c0bdd1ccb'
            '1db2efa07aab91609e570b6fd1e1287d800b0b71e033d182fc34527b8be3c402'
            'b5ad910c385d36996832c4b6ab605b87a6bcb51ec719feab3e3a3b0b340207d1'
            '396019b64c46dd8077588af8c71b0e5ba496d2243e083aea470adce90fbacd27'
            '77954203868f598cc6e43ec6ab629f466be4f017e9f89870bf3eafb09fa7a85d'
            '313d56d69105b77af6a9d399e188946e1a3ce44e7ee5f55d37ea96d25c07a253'
            'e25ed244b96c49c9eeb5b39583f35e822facf9efb9becc6ce5257551431da783'
            '4455d4eb58b899144b2946a6a8344e4419645b8c4c495e37eb8719efcaebff2b'
            'dbd3148deddb813455fbccee50bcc175b2cb40cb717900a5f44c77c1c2682c29'
            '706a9a593a69947b0e3882b4f7028be1f6a0b4dd00e92082e321ea0bb3a0e6f8'
            '9e5e68912f028a662b38076bb871675d10f079cdae9ad2aca65df465f45e0cfb'
            '722cfa3ba7c806cc82185d639b9abbd735860d9a7571b2186468ee9e4031e33c'
            '310f6b9e468c7b8e7702ef23766b532817a7982181facc3eaa33ec162755930e'
            'fd3af6ce224046db1feae88f7705041376bebccc9c2a4122f3ae9bbe8a092e79'
            '382b83831ba6399ab79a593c096c59b941e48a06f7ce2754e5984a18e03b011f'
            '354ce1cb88ea3ab4081b991aea5c522b229b7a9a5dc0d038132a4a033da5f036'
            'e9ab7fe608f6dd34f6123a7af921237b09c769eef23b610bb52332216d39e7ff'
            '55518283aabaf32cd7aa34f81f356ec173b6c196455f4c91423ec999210ca41b'
            '4ef6c0667c42db2ab052a6a15e3f65726960a07f90c83a20252013ea5f5b851d'
            '4f91680c499687ed2144c619208cb7fde5c44a3b1a17e8db9dc945c7ff6b2dea'
            'c93378a18c66b84aa62a6575a6a189b5de1880888221021daab3372978eac769'
            '8391a7c79574d0a7fa0d0416fb3274de12df7c8ada38c3c06a94a9b1ef295925'
            '9c612fcaa8a124c075a6834ede683f791c49735426b80442ae159722ef978e08'
            '3021caf567ad827878c36d4836cfc8880f8f06cfdf13c299928c878d6134064a'
            '382f4766be734876734a614f52d429605f3ca0e6fe6d327ff49e9ecfb829483a'
            'd936bf868959618f21943b633fbbe3b92b9065a9823a9c1d2d889d46128cf8c3'
            'e2f01a06d9e7e4525e504d2bba3e8ca50a636a2ff4b12ff3ef553c7d9b22b67f'
            '0583888b736a73dc761ea701004012ea05a80888172e0c5c9f295b9e6526117c'
            '6929cd21f66acc07b0f8ff699c21706e11624ab2c0fc563dbb5d34ede28062ef'
            '244718b422d8f0277bd335a5700e4d9ccf1ba8a681046379cd31068d8919555e'
            '7edb712e1a21894317b30304b0a595ab8e77d881c9e1a8838a1e12f6fad71d0d'
            'e34fce031408b49912abb25d7aec21d89a95226987ee1db82036c524153d7185'
            'd162f4b18420330a35bd7be462427d94a6df4e3b81bde7782f76b07639e4e79e'
            '9f89a0490a0eb37be9ffd15c7f896d9fa8f72d4cfb168feaecb0552735d7328f'
            'bba1056e3984c2bcf09c84de87e7bd4eaf848f619dbcd4133fdaef70bfc2ff85'
            'f813f9494fc8799c419d038215d7a69e5e01f913d4cccfc3c7cf96f999d61b6d'
            'f42642770076a2c513680444116861941ccb3353d6073493f03594b559401d8b'
            'd0eac65b19b343429eb632fc9de29ba5c3dbd7fc57df8018538eabd9e000de3f'
            '5b575464dec0d94d7fef36213ce3a7c800d91c86df8f908607f4a6a1cfd708d2'
            '77adce770612434e28eca4f375fac7417b885340506a20d7fd9372e5f8b2372b'
            '67635e30dbfdce0594f74d33e3200abe1ab7479287a6b7edf05dba040fabc96c'
            '0a31ef84ed08ec327cb79d6341cd59728d305c2b081109f07221a0066ac17e12'
            'b59b667d3805b45043f58cee2fee5af2d6e77ad13643af1c41860a26480b4b1c'
            '034c6308f33c0cc4463f8e9e6bd46c10b0c8bd14c3ea3420e02fb3ff37233bc2'
            '58e032e9a66fcb0be46808f2af09c5c3a1d291e0e9375a0db4edd68977b03722'
            '77fa69364e360dcef549dfdebc3fe7ed3e8f21f331b4c04d28deeac5c5ecb746'
            '3458db2d80be37712b0f3eb66372e267cc6a504a0ca7cf78ff532d0d94934ac5'
            '1b4400a464f8c9731ec905dcaa362b28d61cca1d9dbc8ffe213f794faa904702'
            '049df19cbae31c0d1f5f470a0d2c5d0b4bcfa383a178360bbeccadd3c1eaadcb'
            '32b2be415addc07d3a3c2abd0fa6eab49cdd754af0eeca9e95af963abb3f1e00'
            '4261c5d205b6266b9322d279be310df2d68c3efc9cf24de05a5c42888ea9d9a8'
            'cd746b2c0f63cdeff1d5b793a933c5b1858d3bd59fb79a2207350081a750927d'
            '2d20ac7ab065c93362d26cce2c0836294434648f4ee487e1a767cbd9d8e6cd82'
            'c2a17180247c1f7084ef686f3f6f2d671a77e219fedaf6f60e87fae61ea7d132'
            'b8ce44940c958a46d0be32f27837dd69c326690582efaa6141e3da2e5cda9f8f'
            'c621c99b0f18a5018da46d7d3ad146e5fa1d436312bb6c4b9538d3d82e295554'
            'e71bfcc4136d112d5fcafeadb5cec080b62932d5d212f95f1bdceb952658b68b'
            '17df86e5a32ac17b75e0a29497c6412f752e31299eb0532861e624cdf8dbf4c6'
            'bcebfdae249e51cd1ed3d305e6deb771ca4e4d9af186afb9080228b1241f18f5'
            '82e70d54f5c8022d0e3e145f59f306025d1f47d50ad21ab2d6b0f9be7cd6ae97'
            '7543bd6d0380276242fa7064ede5bd3730b0505340e10bca8608d0fd0d7e9bdc'
            '588402bbae391b2998af38e1b01086706ba30461186f2dae8a3e2bbcec54e499'
            'ae12aa8022e2a8f9d89e5c097b2976f460e4a022ce3fe7877ec55bc86da9ab9c'
            '6015c006c8e880177b59f1da1323753e52ef9068e5d11d9be7e04d22aba23567'
            'e249109618c7c9ec0525aa4fddb76681b90b3bb2184b06510188631be406da57'
            '137cfec14508b4a09bdd4858ada6e74a032107b8631ee945585ee217bcd274e5'
            '843e56d55ce5bb4a2e17bb2498487f48f7de54a2b5c45aa7601b6c821cc4c74b'
            'a101549c2524639d952b89a5b21b242f09ae27b33898ff8bf70ea5edc4539e69'
            '3c7118834f913f29e14685f6c119b9fede1c7bff3ffefa2c4ef2f4aeaebf392a'
            'e9baf3219ba2ade8583f645497c2588407fccdeaa9edec2e02e55f029accf78d'
            '44fddc2056cd2c78e9f1d15632266fa81828fb705501f6909e18557321a8f14e'
            '3b1d08183ccff6886e71dcff551a48bae1fffa1502a0e77ead28605c752ff1df'
            '8841a133f6ecdb218e07be154ef5ad904f88333904acd3bcc389f6c3e72514b8'
            '056134453003abcc6305709b7b9ecebe2015721e144bd9ae6a86545aba90eafa'
            '70452dd27e3f44663fe13e4046b0529d8e6211ea3b643e59ac296fe0c7550f11'
            'b6df7e9a0d74b99be41df3aa61d54b74fae04be51b8339136e88b071aefa426d'
            'ca4a3d24b694854588ac5e6dade7e47d01d061d6342c95d36c6a2ba2332d6993')