summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: a7cd8fe718e9973e86db6d339c70bb6e27c419ee (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.2
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'
            'a78c4900c9dac71ea312d5ceda13987f4f8418ab078374c0e292cd30ce79aa23'
            'e0ea5e99eb7cedd0c3893ae4baa3ca2af7f814bc069dcbf921069dcaba762fc6'
            '18e3c4e6f85fb296bd955b110ba2c6a381ba4ba8de3a0e2990bc4618f9438593'
            'c8dcb494321e5ef34092b7555ec67147461b387803df895c30858314f0509acb'
            'e77f99a72083b49e30f453d1f40ac670e42e6a637b8bb4e7c914f74b24e6b582'
            'e4fe6028af88b67dce678e6a1215cda2c2aa0cbe76eb95947c46e08d93bb23bc'
            '5d9cd26da6e1afe41c9d032054b066a9e0a13f7cfd9701e8126147f405ae6f1a'
            '647318eb3b3060ba2384ecf4b4b96fb70fb54f1428c20f776d8d99f75eed5f49'
            'a844374d3453747f30382acf6019d379596f812f68d49ba7245a18993cea5ffb'
            'caafe8df84189999ed513e4f88e91f8b8c35e8a1d13fa54bd54f3a0654ec1f02'
            '4278938cf3be47f2e7a865a2221c10f383b8c7930f71b2bd0c4ce09c1ff8a3c8'
            '65e8b0a3e55e99701e0ecfb9cdb0775afc0946f23eab34d4ada4f0d973d2076d'
            'fef54b5ba9231eaedbe216c1f9e7c86d831ed032d1fcd6e5dd15a06619ad69ac'
            '11dc866f5f2a16622fa45c36c174150293e123bfd970890e4403ed224d6e4eb6'
            '1ed05bcdb3977850ae21847f70122111ff459cc6669130ec9db5ccf11dde117f'
            '1191121195a77ec1315ec379b307819f1ce6b15bfa1bb9fc31ec0148cb08bcf5'
            'a04d0d37f46b89d2aba85eebc1524daba41b3a6db468e61a924e83b2814d8845'
            '3822d31c6b83317216f5124d603d9a8b8180a06d2407426dd90b71891c155f0c'
            'ee02b96baf96be7e69ff12f06576a270e48ca454cc8f93c51070ebdd9c2a03f7'
            '227588519f2ae092f6cbf0531287c5c36b7037c3355cc0d9e0e024d4e84472e3'
            'ace7c78e28297ea4dcc90a2b8c2881afc812a2416ae4cdba499749349bc2d3f3'
            '55fb37a478f2521b1b1543498d373ade08126c3ac71127bfbde504d8a3f95e16'
            '618f390c9a36aed65860d6ad20444c9c6224471d0a394de92a21262291327ff2'
            '2fa254426d945152e9eb01cc02a8f86415fa5425aefed9825bd1dea9b6d0b76a'
            'f1d9e7acc5bb36a2acfb1659ad0857e5d2c9800836d096f41ceb87977a6e7377'
            '12f34c15fb4cf11e5c007ea19a97f91370a66e192cc3c0aed5405659be36eaa3'
            '5239da279a01681c00ece001d1477abba04b41d50fd442e761140ba93b68870f'
            '98b7422e833226916953ac89201652f406f84c805d293ab949adae475fc03a7c'
            '9516c169b883f8208c996f461221e9bb917e2e56c1f67d01f67026a8f5de3a1b'
            'dff5cbe5b933511fc10c1209dde31c45a521c9e687d909f4915eaf3eac8a3ad3'
            'd47fe44fcab9328102334596678fe89289d8de44cd9018e13e1bcc70823ec6ec'
            '8f25e71eb0ee9ad9e90d9948012713013ee03b6fe1b3837b1d903c5102be0a93'
            'b8416ca244cb8c99744dc3c6daa55d893754ed051ea9731f57b49edc2f0e18f1'
            '1c6ecc0d72a500f5a77a8fdde5e288ce2c578bc1b1de3d1a062e6d7a71765130'
            '3aa8e3e74e35a4e1ca948cb83b42bb9b2c95ec6abdbc8b0872129f6f75d4e2e1'
            '21b16ee4d0a232d6860c9fa6db296544e13e9500796451a98adebcdf35f88c66'
            '4d780a2c0f362742f069842ae2d7ddf3dd8177e66405c9c570ef52b2e7de1f32'
            '9e4e1ffc31853fe3e0d4e9e23cd1ccdf0be1b50182cefc9581b902370a3ae2fc'
            '7dc3615f3eca3bc09472207b8d78644923526dd51651a6a04cf8449bf78cca4b'
            '32d64cb5ceb3a8b53abafd0699d9697f190e137155484fc06968efe3ab2da294'
            '574654d88abc8d620d5d29c09a281738ff463f8a0e09386373005a4c33cd7adf'
            'aa4437d071736c8009ff81f79cf51348fa7ce02d82dd603cc08c00997de79ddc'
            '9faa3d8242f2e13e82334c91018137a23a88374d6d8bcbdbca0bac69b709487d'
            '78ea8859fc47c3fd35055ad7dacd3c89192619f637d1b10a5515db49c1aabd63'
            '7e868a01a8c881319703dd2d40aa7a90a2a6afda350a93cdee785c1cee3e334c'
            'ba7c06ffe790cb31450c47ffc73c0ef402e759e8d6798c284ab3004aa9b1a154'
            '5a78e97fe3b0a106a9839714e2a811d52501e5c427ba9c943bdcbdd2beb303cb'
            '916e89bb2bf8fcd0671a1cfe34944643e3f3bb1aeccf6bc7b86329e1f3261cb3'
            'f424cf833f52cb6a57933e6173bad7a1df2e01b9233feb0abfab0e9f3fd13a78'
            '49e286eecc3e31a2581f728783f25717b994e466a1329f5121efff04d3400ccd'
            'f981b5dd41b2d2479034720d4d8d4ec98b936e5d4b092e954057a3135b802d93'
            'c84ec7d427a84290cc760cf35a900a188621c7c8fbc3b48f63d7c000642eb3c1'
            'e8ffa26d1acef0cfb554eced0b86656c4ac504b5459bb8fd3eb86c5292df7b3e'
            '5c918b32273f6a107c6a8d78be58c9e757884dcc28951949db39bba705c95d37'
            '52c280027d92449fda3cd321a091b2f65f401d417bff7fdce692191b748f99c2'
            '03120c4eb742e750c46f266fceb69cd1a8b97d3cf5bd0f2a55485d25af502272'
            '60171b4d104a456df4a7fc60dc506eaa0ced1a32a216461bbddd2a215200f61b'
            'b0b07f9e4be734145b6472ef506b4cb99c85eea98ece31dad6efa2003d59f893'
            '09302dfb196300ae49c47cf4a9a1ac9ec4df954defa8abd19bdd985852af94b5'
            '9f47b7ef87c55320d6d67a15f61a87b0cc9e891a5aeac382badfe3e3b27b51e4'
            'f16a670648ebdc3b914620d7fbe4f6095952f65c658901ecfcfbbc37645f5fdb'
            'e537b92b6af439a1c1b9e667939f146b7a2ad17eae3d4f9075d1ad70bb958b0f'
            '5714a5481f111e1467a596973c824e9d09cb1e464cc74c332582d5079b495efd'
            '2993e10fa67e526691859805b5bf928be5607d59ceedbbb7aa68962688fa6723'
            '7b4a6353a3b2e6e2fc923dc43191c0bc463aeacc9d9eaadb032f93f00376b6df'
            '9ef461ae9ec46bc6198456411232ed37a0ed68f11d4bc587d2b8b4d8247868d5'
            'ee407654fbfad2523ec72fc921b9072772bacc231636b460ac239c406a43132f'
            'bbba1d13636b0f03868d202893eb995f3112a56ac2453bbdde6b8fb856fe49b1'
            '8120d52f0e9a0ecd870a0ea0d3b887df12b129d3bfda7c83f09e4036907d08e6'
            '325acd5539ec48f65320ff0f5768fbdced82c788750f7c0cd00bf2a264751e32'
            '2e3bcfc268606f1496226ca549df40e9c6b8b9f972cdd7f84d4d5c4b32173294'
            'c6123361207e67bfd6f859c65c369fa0b22561fbb46b548d9b322433f209a712'
            '3a45de0fd1d0b18123e4f97de1de8f57c043a8c621a02f5267643fc5fb12c8bf'
            'b8412464435c2e3c79017bc7ecc6b7b7d7715b1b47d0ca5f6e7c320d2c2b87d1'
            '2054926b1f43459aa857234466b686553555e2afc2e6072ef3883f28b2ebc676'
            'd69ce50c34f429d4a6724b4b8d954bb3f78e5a7fb42302c2e9de9e5f870c4e0e'
            '2339cce445c2c01de77fd89079c121301dfcc082f9f8e3b0f640d0f42a648cac'
            '79c3fa18f421923b48505b74e39cd4fab474685584bb5daf71f41ebd8a388402'
            '0292ae81d9ae0af15489b2b420f3156cb2f7266cd881deaa4c9e164c987271c7'
            'bea8af482218c1bfde800e3461f64d008b46b1419745127fe838a29724098b5f'
            '6f93b52c42355adafc0778516defce16af99a17ee41ec0d25003ab39bfc6dda1'
            '867d12980a8d3ee7ae28faa4f09f63ed405f9ea18b6c0c776da8194ecda937ed'
            'b300ada0279186be68dbf292d41d446828acc71e3dcca94cf88a2ef34b38abc9'
            '0ccdf643e1f62ff1e41ceb3fe9c35191aece0efcbfc6b24293f88f7ef1d55043'
            '0186d38239a9db92394562eb70a6960eeeee052abce62bc3672c8644a37cb859'
            '789359330bdfefb1fc379582b098c040cdb6a46f770e2c80b1695a7eb634db40'
            'abeb0f7ff018d44efbcea4cba5c0c62a78f42f6395ea1535f757f2045064c880'
            'b3798722e3a732e422a1fbff8d1c9ca7716b3fe9b2f21cc219432ec998556e26'
            '6854f076f5ef93e72a4f38f03a8dadc61e3a2f8afa402783bbd00bcc63b6f14f'
            '01a4d64725be568e148d88dab405545f76a24a695d499a236a2be0599489324a'
            '79092d2f830adbf05cc884aa014fa9348e3449fa206cf91286d5bfb40ebe729c'
            '65633b00c1a124a23bfda2bdb7666ab8e12e113c956930cc975f838e3de04038'
            'af99554dc838c042310acbb0a7c2623d61ff3b3045667cf301cffeb29821c008'
            'f2a1bb04222fbca3845b00694342a74c8d54cbf1a64104d96f1856879aed0abf'
            '8c547d631522048d060be5305c277024e8038386dcad232ed742b1edf14a9471')