summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 92aaca15b371d371bff5f62b6630185f29007edf (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
# 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>

_debver=37.0.2
_debrel=deb1
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/experimental/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$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.debian.org/debian/pool/main/${_pkgbase::1}/$_pkgbase

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

  pkgname+=($_pkgname)
  source+=("$_url/$pkgbase-${_locale,,}_$_debver-${_debrel#deb}_all.deb")
  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,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})

  bsdtar xf $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb
  bsdtar xf data.tar.xz

  mv -v usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi .
  rm -rv {control.tar.gz,data.tar.xz,debian-binary,etc,usr}
  rm -v $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb

  unzip langpack-$1@iceweasel.mozilla.org.xpi -d $1
  rm -v langpack-$1@iceweasel.mozilla.org.xpi
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i 's|Firefox|Iceweasel|
         ' $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}}}
  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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
            '46df91da1b1f3df067419a53f443f7f42bcd818dbd8f657c504870e9db663802'
            '2590b8aa4a585a65804cc4807665e76ea017afd3d0b339d95936a7bc4a12a8bc'
            '6394f641e50af7be6ec2e06cfae325e984f9733abb64d14e93053822a4806024'
            'f24db9ae64128546972b08461ed82c8e40e8ca80ec5bdc7fd48f248514b208e5'
            'c93596f85d5557b533d9fbf4a3785643885551609b79a3240bd38522b4ec4f35'
            'fc88e4f63b2ae3cae96c2c272c2c5fda4a6a29461eb37e5394fb4cc92827a21d'
            '7888e43366080da53a429cc386e100fdaf88f50c13d0ee43a8abbef6c5a1cb21'
            'f2ed4b3a7ccfa994bf4715c43f235185d6a7812a34ca34a4be9a4a8c9de2cc87'
            '26fec282a3c1466b918a1a443990d7c06160be5a9f29b5cca95442c40c7bdeea'
            'd0fdd728ba4115f44d894175f8fda6c0045a41d2013f83d4ec016eb3ba736d26'
            'e7628c1eda64f5b3ea1f1710472333c40290d0c9e3d21f1ec54b1a47059d926d'
            '2314ab923d5ede048f2eb3b2e93a84f1acb895b40fb7491c37d9bc8a08b7b2bf'
            'cec666e55649cf193b887499bae2508702e9561d1983f66bab243a350b2413be'
            '12a2905ff151bd5f210a2f2c3efa9815beb5db2c9ee3d11416845253a9167f1f'
            'a92af5e7a48f7d34fb8c68adbf1c9592637c7598cde4d6e6145b9a66b04f5578'
            '4f2f68c37120863e23dc286ebacc13a49c03ed3d6d94cf2d82eef7829bc289b9'
            'c28437d8b449f8ba303e230b8eff098a562dd63e48bf17487327bb841fb88792'
            'c3aa43888b1ded108b787f313cf837915579f84aa7e3b00c48a9157241259716'
            '96165ece3c25386a74acf16825404cd0cbb98396df5a51b2791d5cf2e1821614'
            'd23e4144f323fdd9629dbab91ae5b6eff1eb8b95358cea53c4cf43185533938b'
            '72214132772ba4d12fb27fbe024ce9620595b596d234727e74bc543c2abfdd9c'
            '20efde5f2a53aac94b082618d173b71731cdc5320bf5dac1d8e840851530a7e2'
            '71c2601875e8354e5ba51c59d63988ff6cac178e5ab13ebc7426520461a22d29'
            '30f1625e802a0dc9be7213483b258660b7cbae05ac50a7d323763d056e5e9fc2'
            '3a7d65c752b009504800bd22d8cfab699681526e9fec24e67db6da31f5ff536d'
            'f2cd4d92f2b6088771108de25228b0ce5ea255e9ee35bbbf950a09c9ff95553b'
            'b0719b04dc9592f5efcaf7a8ca022f3291a45e898b9d881ce68e1e22e00c3efe'
            '82944255040c681b71f31ffc686f706711d00d18f01b75a73d1b78f306e444be'
            '6894b549aa3775c6d06d43232fcf461cb644db47e1c2b8639f49e19e602b6e4b'
            '039dc23e10288be2f24e59438e8ae1aed82782018820f2062da171b83cf46b0e'
            '1dae292f8366aa065c405a07707bfa03ed2bb359c5f1ee3a4da7bc4641b2eded'
            'c6addc7af1a16310bd164963f1b346136dd828a5da2918b65ca9f42653712e44'
            'acf5b304315b78b7d64c43816774202a2b657735e52891baba57801e4ce51d19'
            'aee124897df46eefd2f34020f8356e478dd808b2c2454115a2fe89672982f6e9'
            '202b66f9ba36e5aa21a53fbcdbda41daf7cc5b811dd21588895e8246472e99f4'
            'baaec2219b2fcc7b22f771ed2db825488d3a8220712f257cab3fa0546fb088a3'
            '8f8c97cacf7df7b0bbfa145d643e684dd5ce33baa4ae451e4b7b778e748ea83a'
            '7fca605daf0525a43d9ec5de9bc931ba4d758177e9c2bac249230270739be2ca'
            '8c742add184120ccf6fa5298a1ffd503af07a9522a2c0fa9041a9ecf7486c042'
            '221b0deb134ed158b7634d0622f0f1bb3cb42b3f082d306d629041a8e1f8be7a'
            '0c636f0975dfb8f476f4f8eb14533de9b380eccecca7cfe7eeffdaaaedd9628c'
            '49eea65ca9c6bab4d1b487b21f1393d9fa1a8f41b04380f466509fc51b590e41'
            '18563024ef2d44f24d28160a3e64cd55c17e77e146bc78e58bc6bd683582e334'
            'df2f8b7055096ddcd7d4f1664416e8676eaae81fd0c14786a3887a2215d11488'
            '220233daf918d1d21f7eb4168183df55545f5701a9ad7c335bc19410d0078592'
            '2c358e388d019ab5617b4385204ae8423030fbfe78853d8da0485f9c798e8fd7'
            '8ba54a5d6346fc4e2905ce9c492a2c52b43872741f87d0be416628479a5fe1d5'
            '6fa794685b60b14d61d066509e87c9178af68bf7f34c08891f071002dc78241d'
            '2155e7780d829952f12c590a49927cf008e28de789e5faa3d364a2144f9dbf77'
            'b2db3f40e7cd0f7a24ddeab5edd2902299a8c9e247d98b408c2df1d97c174925'
            'aef01c5c7f9e14fafa4dca6547d670067eb0f7cdf7dd5281bb224d0d21967e1d'
            'fbbc6db0f8d48f1c7bdd4a471c73c9cc82fbcfd7bd0b8d79a9b1a8719b49e4af'
            '1f245ca7e43e5f88f86d978891ee4c89e28f2352973afa9befbe35691d164e29'
            '0efa33921795ede12c4e01f595e442226f715183b146c899f50def9ad6a9b0bc'
            '621df89a873179d47765b2c2fb79fca4f0b4fe9eb3471d9d760a1ba15eddebf1'
            'e0890fe61843a1942e4e95c0c923d2945bb90a4a39171f780a0ddd2fe94e470a'
            '6a3d778cdfc1eef899a14177609ba2a930a1559992652e833c294d7f02e36eb5'
            'b10f4108a12becfcd672a2bf136258bbc42d09d6c06a24bedd83d45069ea56ed'
            '02c0fbdb20b1cd2c464a49598febfcf9bd419732080b5a4b57311577dacb1c8a'
            '2ecd6df50258eae99ab7bf7608df8cd98030902943192f2de7fc981231f9d245'
            '6ada08c6af7c26a1882073b5b024f90fda8b8b2582ec38448c3e163dfed581cb'
            '4b695792624e41699218e4030f6ceb0a0870cc2938f892ee463475afb29f6692'
            '42dd38b838f174af760aff8e8e3567c9d76e113d88de17da1347bcfe3454eb41'
            'da586ee0b3cf471fe549c728b8d206c374cfe9c63e21f835868a92b88aa017ed'
            '2593444bd5cc24dbde3b1d3a4c01cfd117be2950c252a0f93f65c5f40959d74c'
            '62c04d53d34449f6d3f53ad07ab315ed6d8e377d82bb80d80d923904f2907a23'
            '13c3b617012140a685d3d9be8221f08128ca22ef61efc8c1113907555ed6f928'
            '9a0304a8736634f69db6ee759fe094f872c007735a2f14223c34622e00741c47'
            '1c21185e07a6a557b5ae8510cf30c63c95caa8e60c5322fd4b779bc4fabbdb0c'
            '948b257ddda17c8f5f4b7b86f47a1a1bf998b634451cd00639e9353b27cdcd97'
            'cca61891ce1787f750ecb527e62dd7a128c83b01aa6adf617db8fecd44fe8fda'
            '62d42387ecbcfe849003cbb66d519be0a05b28a44ca52162fef9dfc166fd8d96'
            '6172487c0adce3d9233ab24484168dfd482d91bfc2d73eb26934642b01e7edc8'
            '09ddd532bde2ceca72174e92b5853354f3d35bc58934d7d390e3e2f04ebb5a75'
            'bc0fe33659f7f81a584f3f3f2d2f31fc1a716b882c72d88479058fd18288086e'
            '091a9e2e1caee9d95a6697a5e9c7618c9c538fbc2a6fa44f0b17ed992c56277b'
            '905bdabfabf2fb3ee761be8d3cf8ef6f583f6a0918e283c5e4bffcabedf42708'
            '4bbdb5efd6a2b5d0dc8125654bf5ac868cca5666092213d6083e894530d58f95'
            'efdd83dca77c3cc63aefab5ee8d9a28b4436fae1ed2cb1c503fe81423845abf6'
            'a00f9011c6c971c09918766ed072feee05e60668c4622849f234ec2ddcb84c61'
            '7d501554b35afab436d400b10691a34f85c6e13ff9b01f7a4ba6f423e6029f5d'
            '5eeafacdbd59e29a26899aef707363df83158bdbcc692bf65d826a71b53ee6db'
            'cdf01aa75b3ab9fa6aa880b1a4ea91e3cc086b233a5174674d9895a0e1dbdcc8'
            'a6c373b4bf80bd15fe15faf37c55ae69eb3552d35104c137d1a982bdd12d82b2'
            'e9280e553402a42436b7025253c3a686e1b6cd7d4718ccce743ef9c64b177a10'
            'f8bac7ecec29c7185b2c682cf7b48ead1f3610f9a6fe98f328d846d50bc1c77c'
            '77a8555b964fa3baae54b88d8c329854ae2b04ff0825a88750aabbad9801a5c4'
            '402338eb236ffc3d963da03cde1bf8e8d20f902042cd4a9bb84906da25335261')