summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 68e4c55ef8b3f19971830fc39b94fa0b74384b17 (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=36.0
_debrel=deb2
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=('652dddf407ab9b0e00ab8cba7c1ea9b3aff2a8f7519966010fd682ae182281c2'
            '12fb5ae88d296d1cf2cfe16bde439c34a3faa81f4bbfcb7a7180cf6db708e836'
            '30eedf6a495715883d2cb63b45f7a66300089940b5703d6b7d48704c2d7b2a8f'
            '17f2ce5e7597951015cc5af90ae59b6498d71de530c31d4a7eec921f92a35342'
            'd4a6f675180cfcaf009657ecd15b765329ca7c9f1502a829c33ba508e3145e00'
            'b101d03173b2bd67059ba01c12b7aca98b2f1890432e909053577ab43af360a1'
            '04098dfc5d4627dc16e6b81a4d7a7f1d3854141672ffb059bef05d1c6a01021c'
            'a75ad00fc95beace2d7706127c0560fc6ec66f867f95865eeb909f60a2911189'
            'cba1f9b68a00c0a9470a9782f150724e0d0416642787a702540a4f4b55e7a647'
            'ccfa3585a668432c002ee97293a84bb914c54641e9da6d0bb2eff829cefbcdc6'
            'bb89000d6a45e702062e6ee1fb95a4099d22c76da3b5a21df97256ba5b116e10'
            'a2ef80057ba090542318f60758ce702bd7a91ae64e6b63d5ca012a7c97ec8f8c'
            'cc410fbe80e9522fd5a31049ae76f7c2e9551a43435ecbd15cc842cbe372688c'
            'd11f8f995ff1fc2b95ede38390b8d8ffeea8d4d3b691d991431c4861132f199f'
            '71acee7469c279356c518023f8f7605298bf0030f03fb6b52f9f4c4415e6474e'
            '0846084092a677aa143cb2e89f69c3f33f7c0665458f4ed33aa608f31a503670'
            'b71749d565661070d6cfb7f8e2565a110e01592274783c0f597e04dec2d2dd55'
            'c7eb1f22469c2ffdcff5d857378b198d857a39ebe614e6f07e087461e34f7697'
            'b53fe8219146bb57bc22244565844496b827ccb0db782a3c06642329aed765cf'
            '8ecb63bfff408cc3a1d10197208bc2811999e3d4ce7c3339923641bb80134247'
            '61f432fe7543cff1bb2652f0926ec4b2b3724f21712338cc40792c67e4ede7cf'
            '599fc87fc94315a86b23ead909767e538cc473dffd19819291a2d36f07c3426a'
            '4d02e56b0d10db5a137fe08dc583d719518eae99a90a3b10abbdb94a6a8e8c9b'
            'c654566493f06d0e51c19cf468be6eda78a57717e2143ddf6109f81cdf13d772'
            '3c5c57bca8c268a909aafa2eb3e957a383250f90b6b012709abd7f6284bf3731'
            '1f9e35cfae64f2540b4d9a42935372b694139e68d0df848870530ea5e5a6f2cb'
            '02c9c291979dfcf4edbd2375b187a17853dc26f2beead1f38881d6df2e416b3c'
            '88537636948592a0291843a4ff844b5e79b0e677d24ef10aaeed113810666498'
            '09a33b9777b8e103ef4c57efd436e480137c808b0c30a3363d34e4c6305370f1'
            'b8da2dc10229ef297493198963e5bc2135a28d8b41e055c6a840a630fad34e55'
            'f8d36b7d8ffd4c00f61cfa43180a22367f7404aa20d4fa0713400c1ce3662d79'
            '9d7b19a64c3147c6641001ee88f3c19f026fc9e205274f4525b4846750333986'
            '48cb1b530d9a48e98885964384adf9aede1b3d16a3adc43d1844077542f20a3b'
            'c3102360c7f4d097a98e5a4931e8726e60be77de9683d71f171ebc9abae881df'
            'fc87e06d6fc56c49838479bdfea1abfffbe5163284304f6e8b243c1b42abf68e'
            'd79797539eb77da2865c641a495cd4909719a0d107699845d977d4584f355542'
            '2ab63178a9427e1097203ad77173464c21409792294d71dd3bba39d9a56da491'
            'c21d1b4f8620ac9b3af5f4445be0c4d925bd4b57c0f81480e6b69c487b7b4450'
            '4197f50dfd8c814279e2a5ed1403f9175990bf1c370cda4a764e66702a0f481a'
            'fa96a7079c56453da0b668cddd7bb61142fb76293cb66d5c0fa99cb1fd3f5ce8'
            '1d77bf910445d562695ad867362fc44b63d2d1326c9ecab120845366f12eb4da'
            '7e0af9e86f9fa69e5b439c54a516268a75a140f19b295601db81a90b67f94ada'
            'e231852cb92a2a5f207bcc853f3e3b6a348c7b69f50eb3a8fc49643543b0308d'
            '72a83f7a3acc17b7687fee6397e56935089e19c3c63115023f72a6bc525317f4'
            'a711fef735d725ca258917126c0c898cc520d6c5b7045af2ddf8ca7b59937352'
            'fbd07aa7afab5ce821f6a8e0524b44375bfeb1547667544f57831b5d56a723db'
            '3e234ab6e4715175b84658ee8d6ca016d52258637fc0fb91d48744c875ad63a4'
            '3b3b7bd763afb0d708ac668d5c4c7a51d4aff9e9556b3b29a60bc178b2aaf8a5'
            '10094a9f54545c8cb7ff9c2770e24e57760defd39016d4df7029dde604e24dd8'
            '4bd87cc0bb86cfd257fafd10007d2aadad5e30297c7ad1170e06a548a16e3d9d'
            'e71790b39e1f558b41edf896079bae97fb65ba894bcbe7fc8b3e74595c213e78'
            '60f70973e30228998fcb5a8029a54fb727570dc31c93081838b87f11251e5eb0'
            '132553f1d8754296237c4d9a1e5e5749d85fd0f742909b445e961eb544a562d1'
            '50de6d4622768db7b8fb11cc1d3c464ee673c8c909b20f6b661f789d2574fcb0'
            'c576c30e6435f8725ffd03502f9b58532e5939a1b586716f30e14266af0c5b98'
            '1a55e285359fbd6fbf3ca2ec8a6d1793f3e4a6848f8e05819297665751d4ce7c'
            'fcc7e9d09c2752e5440529d52360cf25f8a4d2a1c4725cf695be92af00e23193'
            'af777fb808e1aea952269a8ecb5a78b098b116d5d4c3f3575c14877aac86b71f'
            'a1f4b5fa0e5a281186db4f0ee7f4a628014583bb8f5b3f504675f6bfb7429e87'
            '0c9865f5f96f04a4ff57f0303cfed30ba4362225c1cf8d0e578c9c381b81f07a'
            '99fb88c50b949715856f1ac0f3721d62c0a90a5d5533dcbc69a33df888f10a22'
            '11c8f26f086b2ae7702c9025e8ea0d05b903d51d26c7697f6896676029e4b9da'
            'ec98ca89451b3e838c4c21317e583faf8990e197249831501cf4c09dffbe452d'
            '93a65fab26ed425e866be76fa804c50c5e16bc7ff59110a263858333117532f2'
            '3e85c2e86f1c7f9bc4b4eac8bc2be802bf19bc3a231b5bb56f009d1bd5765365'
            '56988c97c7f9178e1bdb74255e8855eafaefb1531a0b2110e347cf5a5f6fafbd'
            'b7e056b37dbda6df14cdc7f08b7cd48445a3608fe46958585290f5ae8c152816'
            '8ad7a148ddc3f2642cf4380e8248d942eda3e0a5ec523d23af5ce632675f308c'
            '7ef6e38311391ea60d05fd927b07e2c26fce29f3ed4357041e369ee505927951'
            '2ea61a3bb7a5420fca5eccd74f7f6f2573e60db0fb2003491409221d43fc3594'
            'b3822c2c3e8a4594cd4b96c60a28651150617be00f666326b9b68c4811951c70'
            '8efa24f307775e63fba2eeceb199643f6948377ff1022b2ffa423ffcb428fc30'
            'de2fab2fa88531d708c88bb508a84a376c9731be1ef4e3932125e86a1bc7274c'
            '31f671c9c980f77eb62a7b736644908c4c2a64218663479b8fbdc6ff62b1d285'
            '51bfd501afd6a59a540dcf6e86f4c50b1bea0209c0f9c33ac8203b8f609dc94f'
            'efc188d35d69e9213298ac4a74d9df427aa0880f655ee369b97ec30418fe6057'
            '3a5ad840e5d27dbe4b6c0804f3cee4f171159fc8a9dee91981b93fb0c926ba24'
            '112e11912333c95264f19d83c768846a59d90b5aab177ec21b4a4ac30999193e'
            '3efc507bf226e83b5f2c1bff45b75791780427081554699ce40ed6d567551138'
            'ba0d0b02feeb84bbfee86b3d423886b3a3d51fdab03a9b6895a0919316799424'
            '94a1166663ca7938ef746220fdef7f5f2266edabe3d8bb473a9c06e30d25121d'
            '690071783c35cf1c75e4d4f5c37dad5dd33e133ed8363e521d90f25e61229836'
            '92258b5c1fb767e774983767e365ee28fca37c2714f9deea87825bd92d58d008'
            '8b3fda28076b4d1910258ba4cf7a90eeb1ace74f61cb9ee56fa50698f31e685a'
            'e5e75206a93a44a4ce79c34d4a1114628b1d2db3f902e2a6da16279ad846fe07'
            'd4216278b8c481f9b8dd004a16912af3ecfe8c6bc24ade9904da7bff92ce6f49'
            'f2810ae61a5f8d1cc2d6c90737107057dc6c6d0a752ea09820dca1cbf819758e'
            'f9629163f88d49d2c680fd76b0962bff5c396e14a9e55abe3266711cb46dbe74'
            '0a48b3f6c2f5c13049f5a6e34c9327c0e9907ba3eaa5e3915f7393b56d3a001e')