summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 66f387768e923f1929d657f2a20b21515496c820 (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
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
_pkgver=46.0.1
pkgver=46.0.1.deb1
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
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     "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"'
  '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"'
  '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=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/firefox/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 Debian Iceweasel."
  replaces=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,} firefox-i18n-${1,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})

  unzip iceweasel-l10n-$_pkgver-$1.xpi -d $1
  rm -v iceweasel-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@iceweasel.mozilla.org.xpi .
  mv -v langpack-$1@iceweasel.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

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

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            'f0d47951dfdeaa97752afa5f860ec90d775b6124fc393a7c8ff04e507afc61d3'
            '94a037ca774b48f44db941c0074b118c9c2a226f8d7448e17a8e35b93626441d'
            '5f352fd2d500c224c10e6762b73940f8cfd11aac84c01635ff3af3677dfa85e6'
            '8e22844d0e461b908fe4f5213a22ca1722afaac4106938eb5e88e18565b46cd8'
            'fedd32a271d0980d2cf6a42560b240e744d87be38c7fdc9c9b9e802cea11312d'
            'dee65a28152aa0b09bfe59f83b7678bf29bebb2e41eabd07684777c782e9d920'
            '645e6d94631cf67f7238658795ba8170a4cffe4a02247d1b6aad918c1bce1fb0'
            '37451d28220bf33640a58dfa2dc3040b4b0bbe49b176660b3cfbf6850982f7a1'
            'e99d5bb1f5f3f60e3a7ed89b5ec66f2409249bf80e6c7904aa7672083b2327ca'
            '14608b1a98e48fecbc54908f748569184aa8372927e8e60301734d8da4da763a'
            'afbe7cdaaeb11d95485b539e40d9624c5ae232ff5deab4fcc1ccb13a89f43d15'
            '82a7326e73735cdaf21b2867cfc5e2f64a7111d03fe0d5996b2dea19e29ce43d'
            'a1404fefd9f65c9bae4fb6728ace056fa72d6263c394b7a0915e5df7566d212a'
            'a9642a3d72a83cdf8083262381cf68f43118784da20dbaa105314f8661c747b5'
            '70b2fec4f524afcc34b2cbfc43fc9f317d7191d4811945be4e6ce069fd65169f'
            '32110478415c096040c843042375bfd8270e98ddc5c395c74f63ed5a97fe1809'
            'f0daf30e06e84ba45379c856900117c0971ff092310ca04b88251222752cd400'
            'e60717631e6400fe3129b6419d3a33294ab18fe1c509f80598f799d16ec11508'
            '50b5e36eaec33550245267a9965adfbd0058cccf49882645cdcd618dfc63083a'
            '0423a99f8eb2c3b4fdaea26e073169537e67943831579242e3b9ca95617eae75'
            'f85ab43812f9e36529abd7d0563f0ba6047eb0520c6ff96b845e19abace29a5a'
            'a259e1e77c5d008044843789c16479979b194630e54a36d52289a5bce1bd9a8c'
            'fd4b4be0a5ee625f11496b4e0ac80b516f0f8862458bb815878c10cfb911e349'
            '578b12e91a596cad9c78f602863cc3473dd711ee83ee651a147157b17a78eada'
            '27f880560d846a81ca19de6926e2dc2c70e3975f96986330e960d8d7ad24ce75'
            '94f6c156574add6ad334b6ada0645a56d67c7de67dd7d385381622b9a8d4381d'
            'f2a064adeac314b67dd7896284dfb75ce4942850f8dbea57db7caecff59c927e'
            '7ed3b29ae516d11267cd5e0637dacfa188894233291bf8f30c3b9094c27e1c34'
            'ea7c9b8ecce4f42dbd1c71f922bf50d50c66b63bcba8ef9f4d52f7c7e5236b2b'
            'f7183cbc12774a41e7d5f7b701afa5d0f7a4ff7b3104c9ba9fd36099019b6423'
            'b5d4e0961d1691dbb907fc8ad544dd479432713871b0fdcc80ec5349bfe24a92'
            'e2c5608bd13f0749221e05be448e9e626e24966f9f7cce1870308ccaaac9cc8a'
            '5707d498995be7a8576040d2308502f4c310c6406250a8e4ff92fee6c47adc2c'
            'a4ed390004026a5b4757c944f016ec006e0779acb6471f18f3c7b44eeb11f7bf'
            '67cac34d026365980b2e68e4c87dd9089005a776f25e477130b301e9856ecc36'
            'd3737b985d8912cab025a7c24490da1a59cf4e4bc29f9986aa42b6803e5896be'
            '42233cc32d13dd8c5a3f518db6056edab6219c44f8313436744eb5d35b04faf2'
            'f3ed9eee677aa9b0ebd6c43f63d695557fae3b8ddf6b8eee7827708a7b5a59b8'
            'd0a47f85673f9ae38a29bb522c39f09761632e2d143b2da8cf44b2c658cb9355'
            '9be91c79406f5c3cfbbf7ce9dbca81e8b63473253811e13883b27f4528bef5b8'
            'a83e219fa35bc40c464a3ac6d3868b4c40f8b9d3b9a5e1f98e1e7d152c96ba2b'
            'ae3596469b937e216f6fea4f29313ea1935231b979c6bd23fcde877369c7790e'
            '856745c8ccd328545f9e5e1e3cd5ae56b22bbc53f90a34dba3c7d76af4cf7af8'
            '5e4e98334f6938dd9eee38869283091f54b848cd75ad69a85deef91887518d8b'
            '5d58d351167c5f062c8c74713dbe3ec86226ea13babba5e26b46c891a84fa392'
            'afd2c57e56dd7e42249fda83442c7e4fbb04518665707a6b02fa0684dd14bb7b'
            '813f7da71ee99418d8a8256da843b5c798ace592d0d4a6ca8d6a0ddcd7dfe7f3'
            '1fe6cea75803b9be36167558cca32afbece3b01c158c754b5a185cf7dcadae30'
            '32d7aaf26a0cdb92d884361931483a69312cf94b8e62758f5b8033c3d2b6d2bf'
            '4ac9051a94a9587cf606c0c6ffe0275c6fa038c7420e410d2768b78ef0e2b917'
            'abfab1c0e4276b87b97f6fb41823805853d43b7ae213f3ffaa4ef529f164075a'
            '5e0265bdf3d5101539e88d711052a0ff467dd06489fd3a691c40e7260c448568'
            '98e1b9cddf40a6cb71243d951202aca0b7c7f9e470d53b118085b30a11e669de'
            '83cab4238a3baf60f253d954a2e7b564efb45aa4ba4789d87ef30df1b2956cbe'
            'b683dabe8edae09e9c46b864516a8f8162e0902b6d5238e2b1194db546f40e3e'
            'd1f35372a9d76fd979d7893da186abdf19644613315d2916efe1216caf738932'
            'f267d4cb4d8265b458cef3d0dc5b3f4d4908cd5b68bf95d1cce4945f868f54ac'
            '2667a8c68472a8cb43f6bf33615c5fbcb27f7b55b3da71ca1f6d214c45706401'
            'ae7f8bb4eecbfd6f633f7f5e9acfabf76bb0e98a685706da531c2a64d16dedd8'
            '083b99cf39f6ff85486f21ce04c9a8362de18b8911f9e3ce11bfb4abb5271b0c'
            'a9bd85db2eabced2bbc133b412d4a75875bd0eae8125ef5e72c748493e41d4cf'
            '71ca049757dd6e55d48a49a42f668386f78870da14733307106d4e7187fa04b4'
            '6eb39f4716b497a14abfdb366bccb5c8cd35fa1bd50fc563c3bc904c69c7965e'
            '12b23858b7b33767823bdb7e1960a78391c80c6874cdc0bf61d3328556842743'
            '861f4c661888e3abd2cac861870922914f096c910b8aea2385bd0ede4c0c909b'
            '6b6968aaa0dd15313176677b62de5dbe9dc5ae8952f6575b0e67830f23c36d24'
            'fa8e15e9842382da18a47e7b7974af94194a595916c93c0831ef16e4f97a4d47'
            'f4c13bce735a1554a560c499152a11189d8443d79d2ed18d659d6cbe4218d31e'
            'b0110cb8a24ba7908a1151195725dca3bf7e448e18e4f5b87273a3d19efc7163'
            '52e28fdac9edbae28260ba50a770080e5c4a4beaf17f383ddec93a759c2ecc57'
            '5bdd9bb5a56e536223f0f36f7551efc01e56d847b2f73e84a76bc010d5491f6d'
            '24001217f6b2f222037fff74d4de42ae55b301f668eb6a3635d5d090c5c0ac10'
            'dda3c6680a62d27d1465c2c018521b214b1c0a6d9de53290a3bcb1e31e6cbdd1'
            '6150daff402bacc8e4c0dfaa2df9d87589c24bbf4f565ef7b39d394164861b4c'
            '0bb6045168dc2c64d3c936bb09178b493924c04ad769a27ea118e2ad35aeba5b'
            '0d2a94aad4bafa4e626d51a3e39a57220728872893a6a45d2b9682121e430ac0'
            '9fb1822eeea4ebce7cbf3e037ad89239125a1d012b972a892bb50d365f19b7b2'
            'edfb6133babd29e6d3b6083266d4bcbb87d51212668c5f27be2f0d66a08dca58'
            '27d6287973462dae2b6d6e4874ecbd9cc8890c2408eedfd599e62efcfeb146ee'
            '354e5657999a12d3a2d4dc564fe81fa4c0cb74b9452d893bebc0da092ee022d4'
            '1e86f0ed15a928c5f9d097ad7e977d4d5c20ed7809c9d2b8963d43585541e673'
            '0f473c1686c97c96788176a4df2a799bbba180c36fc071215eb1f5e84c2fcb3b'
            '94050219121fa0a4102e636e8a72be638dc180ae9d21ef62e41820aa355b9871'
            '1c131d8ed6b259587fd24629fdf17f5a1b502b605e59ea87190c28e49ae0d595'
            '9baef189da768da46772a31654ef4151e6f42212b82603a8ae5d305a562fa4b4'
            '33ae4068d12b9f30b4ce6da59e5c9ba10bdcab0fa8436033187416f586076ece'
            '29a5c75fec307430136ef6a46c17ce77c7cecce31da01e912d92ea5578ec8590'
            'bccb8ecc0ab6262f055e40fc9af998fce2dcf50890963f3d463acb8ae3fb18b2'
            '1f8e3aefb8eacb5ea0fa9fb631ec0eb17000408cb15a6d39e08c09ff2f2cdde6')