summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 6069fb7e0f9be403fe3f8f6eaa14974e921e0af0 (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
254
255
256
257
258
259
260
261
262
263
264
265
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_oldname=firefox
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n

epoch=1
pkgver=56.0.1
pkgrel=1

arch=('any')

pkgdesc="Language pack for ${_pkgbase^}."
url="https://wiki.parabola.nu/$_pkgbase"
license=('MPL' 'GPL')

depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip' 'mozilla-searchplugins')

_languages=(
  'ach    "Acholi"'
  'af     "Afrikaans"'
  'an     "Aragonese"'
  'ar     "Arabic"'
  'as     "Assamese"'
  'ast    "Asturian"'
  'az     "Azerbaijani"'
  'be     "Belarusion"'
  'bg     "Bulgarian"'
  'bn-BD  "Bengali (Bangladesh)"'
  'bn-IN  "Bengali (India)"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  '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"'
  'gn     "Guarani"'
  '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"'
  'ka     "Georgian"'
  'kab    "Kabyle"'
  'kk     "Kazakh"'
  'km     "Khmer"'
  'kn     "Kannada"'
  'ko     "Korean"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Montserrat"'
  'my     "Malaysia"'
  '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"'
  'ur     "Urdu"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/$_oldname/releases/$pkgver/linux-i686/xpi

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$pkgbase-$pkgver-$_locale.xpi::$_url/$_locale.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

_package() {
  pkgdesc="$2 language pack for Iceweasel."
  replaces=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,} $_oldname-i18n-${1,,})
  conflicts=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,})

  unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1
  rm -v $_pkgbase-l10n-$pkgver-$1.xpi
  sed -i 's|Firefox|Iceweasel|g' $(grep -rlI 'Firefox' $1)
  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/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i -e 's/firefox/iceweasel/' $1/install.rdf
  sed -i 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
  rm -rv $1/chrome/$1/locale/$1/global-platform/{mac,win}
  rm -rv $1/browser/chrome/$1/locale/browser/searchplugins
  cp -av /usr/lib/mozilla/searchplugins  $1/browser/chrome/$1/locale/browser

  cd $1
  zip -r langpack-$1@$_pkgbase.mozilla.org.xpi .
  mv -v langpack-$1@$_pkgbase.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

  install -vDm644 langpack-$1@$_pkgbase.mozilla.org.xpi \
    "$pkgdir/usr/lib/$_pkgbase/browser/extensions/langpack-$1@$_pkgbase.mozilla.org.xpi"
}

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '5a0769818c14878be1fc46c040fdd8c856914df481886270cd416389921e9862'
            '55ed0d5eeeb5038bc7cdbfaf64e38a5151b21331b6396b1b1bd67039290a1cd5'
            '6d802d8c8fef1e3900443eee558dd54e2dbf9b5d548e4aaf6aa70efe53216971'
            'eb07898a24acdbaa317bd7457abb6520e59b9fecd8fe7e66755e3f36b25d6c98'
            '3f0087df47d8f6faa492b580d7a3f3cec17ecaa74720c94e68a258171c94fe39'
            'd5f77499d40153bfbc74713c61f3c6fecdf117a6e5240981a2bf822f974519e6'
            '3cf8984a42788b2627146fe64cd2bfca7597640ee1bf9f1ad268cbdce0b2b54c'
            '011d719bf75c77bf2c5cf56f246aaf58067b175151deee9ef9dee9e90b96bc17'
            '01070a5c87a1c39b8f39f2f5b7bd143b662526642d90098542f5b6eb17b69c69'
            'ac18f71b01726dab12bbe200ba20282d98a5523f9d1dbea35869e3be43b12178'
            '106d600b21c6877a11d028a7b2025c3ed8efa0eb4cf887621d579442138c273a'
            'bc0a7456a118a2e01f408c0968ef8b9ae1c3992f50e5d190677b254881ccf127'
            'dfce1edaa95d5d537f50b2ec71b41c2258699990ca7ff51f180d3fc7f3b4239d'
            'd8056cbb6888fb408644fc19829c82b78f9bce429d2bc2d6a43124cb03b7d888'
            'dd5f141283676803730ddc2810f7bb645960b345bfe3afa6d38aea2cc6754cdd'
            '4c024e4244f2ba82e99435fcb368fa07a4426a49346599cecbfc5e83ba056bb6'
            '57e43f3c40c54127f1485710a72d6dab400389c0736e1b02d5314108f782e10f'
            '59e1abb36fdb7d47e74fd10d6033b86b9fa68acbfdc05d3da9e67378b7eb3b26'
            'f955f85aca61ffffebfbce54940b20177f272e7ff9c8096e274aef3154bf24ab'
            '1d3cb3448d68aa2fbd97d0d7771da47e141008595b78399c87f16615bbc8ef79'
            'fa77a8345f7a67a4ed480e6f702d32180fdbc1afc11ad0bad21ec9d6f52db168'
            '84c43b02c0ac41c4e4b8878ac1c29d620d9924c8fc8d0355591351edf9935349'
            'fe1763e1c86d954c6ada561a884df22d10e88cf9c6339281b3750155cc05f425'
            '6c0ecb3ff1e954d947dbabd80e9cc74969e5b19fec4a970006934f44bc28e619'
            '74ea18f4ac0adf3b4b246a6fbace1a863fa8d4a9c608a21cae7eedb6ea7f8060'
            'e1575e775c52c6d74148167dcaebd9805201f975871d8073e60854d919f3db9d'
            '8ecbb09d40c99823ff971f319a9012cae609207408e39f207b85e563c35d3c84'
            'b5d4691b663c223ac7e4d62b530fb9a94d1fab67d5c9ecfb6b8982451ab236fb'
            'aec75604d1071ef585f1462ca33b9bf2b6c9299d6d49b2ffc01096462c3794c4'
            'a7c7fdf6cdfd44e5f8786d587360d2aa022cde980fc17e67a4caa136197150df'
            'ed48e6df6381b74b6bb9525fc2401a39ccdb99eaf705ee41811eee81db4b13ac'
            '61d78db454d888a95c9dc731ffcbb6a6981c9de164a539b6d6d05dd5b52b4fcd'
            'c50d38ccc0b57b68ab98fefa8537f34f8b594c67139335826e4f17ee0e6773fd'
            '278f60e6f3e4b2c52365a172509a4e372aa062409b46c7706002fe69693b51aa'
            '303dc412abde1e69f44bf8f24fe7f8951ce42cc27be76c9d17eb44a4b1832bb4'
            '7a420f2f0c65f8fef734c7f5731f4cdb0e2900ea7559e99bb382ab33c5e713f6'
            'a2934ac63c494a0b3e0d22f622a2e4b53b96df4bffa8d053517da8299c7173e8'
            'b6a97f15d16b7ac69d3b1073d9c11ac6b20436188f3f0978a9115bc04b6ee2df'
            '54a990f5b50e065e4c3e13eda4fb2f25107693db14860e8ea0aa2236ef1e0cbe'
            'edae7658377dc3431149baaafb716bb411deeeb61d935254fc192188fa226f6e'
            'b175317b939d97ead4166bf61f8eb8381948fba4a006d4463e80d19028c0cedc'
            '69c49d9f467d426e41d32626ebca768e56c7861e6352c24519d9a0b4ca8c24cf'
            'fd75cea0e56a1bb346f71a902d487c2509f8904899492ee1f958af4e7df2c249'
            '04c0a9baa1ec3e19c14bc17d3d17a47ea53c993f3a81c4b3347e6a96492141bb'
            '77dfa6996b9a0b821066d80508d3fbf68d2335190f5600f5699d012fffd2fbdf'
            '32c183296a65eb0b10ace20c8b35d0a37d10278fabd4b9826ed16bebba4e8936'
            '44e685f7353997fe77176e9f60e90725603f3453857fc18906ba99a7f3241b58'
            '67635d7c4cd289813783cb692c56ee4e4ffee71adbb3d9de9f87338203fb8e80'
            'c6087dad575452d8a4000a6e1e3d7fe4152b86fa84add96288b4fa4e50f8d85f'
            '1a78b44d14d7f8d42c16b62539026c6ff1016dd8b249abf6bfd5a7691d840ac1'
            '72b665fb904a8c9b6a0d52ad8d00d6e6bab4cc5e4b80ec0fc8aeb4c6eec0767b'
            '7db1c1c2a96ea24f5cb431061bc8e35edf4614841b4aba4d94ff772d12956cd7'
            '7fcdfd89576f4bddd306fa086be78829f2d51ea8b8b711c08b38e3eee1ffc61b'
            'cf68f9ccead4f294b34b65d834fca8958bc2a37c87f99caf3b2b505b9983391d'
            '5ea6da095c7e6b2926be1344f9b0a5940d9e3c4afc7f069d090554e7ee505a2c'
            'd13f5fab53fe4c4a7c542f764d95312e77e82334b3f23503057acbd404a93403'
            '0325f0fc9944836effe4e8eddc4c5c7ed42e43e09dd7256dfc07c07dbd6391e2'
            '1fc0e47bb89335b6c53439e3b6d4fc0194822865acf7a4056ed779d4a77b0c3b'
            'fc688802b4746dba520dee4c671d6f326e540aea0608e18c38f0f2eaefacb4e4'
            'fba7bdde1975652c41b3bcab2dc469d11be9ef232c2873034de371b1fc76f543'
            '150368f961ab2bf857ed6595515fd3b92620f7d9c15aca7b3e675ce0ea740253'
            '8e430484eb3630f48cf00dd594b4b3cac2e1982fa30edb905137f35b8ab6c961'
            'eb87db03918f7ff2eab63cdb9228af635c756add32a182d58ad531489d60405a'
            'a4d4a5d410b421991b6935624651638679395fc7f82865649d0d2669244ad8cd'
            'd5d17bef7724b6f4fb0f9a96b779e8840491de65a865d126edfeb66d49198100'
            '580979d39ef1bd11960e9a9619b59dddff15b3636071ca9dfea7a215ca744078'
            'b9a5d83079adb7f4b4bbdad55d88055ca6981849a76db0d027e0dff562118089'
            '165667535c09f079820d14a46fd72191e5fb1def75963c3a47bc80b8dab89fc7'
            'ed42b684815c2bce7271afe55f7a06cde02cd399a278c0e54a3dbe840eb0a372'
            '306d2554a6f6143d09e37be0714ea7bb170569e09514b2dcb6de3ec44fdd84cd'
            '029a92c54db643481dcfdbab08016a569622e3d80ff12961dacad3a68faafbbb'
            '051ca15a827eb86a49fc899b08d90e447d5f6e3909642835c9c7163cd6aa8688'
            'bf68302a604749211cdc2255073d1d755727afdbefa054118c322292c6d369fe'
            '156edd762bbeaf980211f91516ac3e7967bdaaab2cfdccf61238fdcf726ef5b2'
            '2f2399082c4e7cff27f1d77fd7bd76acda1e3b61d4f14b87efc7dd2abb317586'
            'afa7826fa3d68464960d3129eb64e17df73e8a41b4e8a6f6688e76111d2a941a'
            '62201c8e4c4ac140cb5e82fd699059de719f90ba77a41ba396971d65c0ba9e35'
            '385612528745dcc87df53770a8d52a573d69e71ea5275a40afd5be0108754bae'
            '4d1a6cf70a5415a947f630ee41060ebbfea85271ce1dac9f3329fcf8c376115a'
            '4c5b93d99e038e86e8461ebfb1bcc4bfb7e52430d385bcb27354826fd7f1af09'
            'f203ef6d205f6b69c706399a1013e94a4fb4017ffed9cff1c47ccd60eec02f0f'
            'd029c776769e327356304886e17846ec79568a9aeac47f779bd2e0a24229ce4f'
            'fef5561cb30d850319544df750d717bf6a63f95ba2b981e0d8dd0857a20e0e2d'
            'a8819d2e17a9388bc2bf9f33219a85350470eb4c12fc3c752f90514198c68033'
            'ba97a17431b9626e5f63fce46d7daf50944a95eb36ecd82d1baffacf71981381'
            '06a0ef7059b2d272f2cd4817d4b821e12baf0667bcf9226f95154e0f2f1ad4c0'
            '57a0036f4d34487642e25011208f7bc2f7dec57e2e53003d30eae8eee54fd24b'
            '1b4f6c67df638d197a4a335e4804c2ace7f4418143fb315f8b1869d0f58427d5'
            'e9d58bb00b3c5ab1fd3e733dad500fc5b16f8687a5c734be3005d3224fce6b2b'
            '38d1ca95c04dd04755c5bc81428cc023f745b3eecd89a7d25372d5d0d05533be'
            'd1825e387c642e7138769e4ce93bb87f37c11af485d4f2304946c87cd3d5b561'
            '4cf4623f5444494c004e0e68bb1fa6b7fa19c4312b64ca5853b18f21fbc881c3'
            'd1180cc0ed1e5d06ebd13e3349374d72d43d609047f61f1e69b1cc9306aec8be'
            'b50a88457241bd88e7e18dcd909d216fa37f52017f5d33f4721ec774ec57c845'
            'b812f005d3a87a80b228e9e01ff2daecb43fa781793cf73a4178cde54172b368')