summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: f3eca2389ed95bb49b66b69cfdc9390518f6b65d (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
# 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=40.0
_debrel=deb1
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
pkgrel=2
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' '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"'
  '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,,} firefox-i18n-${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,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/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=('81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            'f8381fced418f1755c8f8c049dcb4a129d8b33f14b0210de251e678cc4f044c3'
            '39aa190dd7c0c97b48b87c63371b6eae1dc79c1e07540340cdb678d205f7361f'
            '577de0298525e340ca2d63ac1e7e642fb3dfc5961cae88dafcf601a2f5c6375c'
            'b0f7331b86458067f901a259938cf98ca25362b7d7848b15c5a6c00f907a371d'
            '56d966303c025d9223c2e610de980b240a875b68434a38cfa753cabeadf54ff2'
            '8e276e411448966ac756993472e8218edeb22b03615d2e461b88362080bc6259'
            'fded49ec20d531c090e95789f923a5aa0a2debd053033c38f2ed8a9fc20f949a'
            'd870869e20005b1f04d12f1f2aa6d797219d64809a1c0bf3bd6053799972b56b'
            '636b34dd6f20ac508838376b41b5768d90d2975c6fb7fde0e1a09a7c86161982'
            '20728794c36144d86073b61cd4c35a556907167aa512d4be99c2913de1b0c879'
            '5fee9cd2e2af7275df68f3591df50259bccf3e1b8181daaf518ef86090bd453d'
            '8a98570e8b6e6c694db42ad757a4571850f4c7202ae7883ff616b3edf3da8165'
            '0a7d2cb6dae6bd183059c3004253f8ef09045c8cb65b68c7a2c1a1ddddc33164'
            '633bdc61886fc3f5e95e50cef91404dbbe16ad94a216f231cd5912b2fe90b914'
            'b80dccf414c27a4d8ca625bd90e827ed345ea8eed69f4cfb851c4097733bb163'
            '59dd8d06fe06ce8b638bf5f4533010b2294244730da5022853b139f4a9032fbb'
            'd2e844c0bd9bd9621dc306ff89582c27b24f0c09bbaea9e04c833c7a58ab74ca'
            '9dd98304aff221ffc4045c01803f94d554789e769cc52d52af00d222c19613db'
            'c07c31b307785ea517244561c02f6d99d80e493e9b7bbab2667e115d797b48f6'
            '7e31501d0f4a5b7099c784f021306ace989409cbaa62fff08b82c7f5b196ca11'
            '917688a06459c07e5e3ff41393f036e57834254a7a480e2a51d11e1d3cda54ff'
            'aeb92d075df453855d7483642f29da5ca6e8e01a94498780fe6a548ca9271095'
            'ee8dc905a3d6f1f57e98b510b01f5ae28876b7a047976676f62b5c1e935ddf46'
            '144eaab557cbf28f98413b63ec592d4c958459c0167aee4d4e88449e8f41e291'
            '7b8a811ebc2276d13604aa54db539f1efc4074804574570b4ff721c0b0f19f77'
            'ca630874ff59dcc93dc1e74a3512384a6b92fe3fd0eff4d40ebf7fa04fd3021f'
            'c40ede290caabdd0e0956305e4b0daf6810311a65399c80a87fd51d35136dc2c'
            'ce4f693b6dd775a7982b526365c5d852757bb0e104ab081a417972033a4a7bc4'
            'd8eebfe57c2990a538e458bd174a22e3b44499e5d961c51cfa780cfafa15af7b'
            'cd7f4f34bc9ea30c92fe663f71f223b5fa3dede00308fb26cbe4079c95a0c1ee'
            '5efc92b8ca4232c853095dcb3c29b996a976fbd6328954f80177e75f7d98a4e5'
            '83df66a3a2f8369a4c188daf3f73895777c89902cdcaaa5883f8a30da76f2d22'
            'ea0e2b0870ecf6cdfe9485c0cd4d493e2a894c03cb1e2bf31f8405a8e44e756b'
            'cba52593c321ba8a91afd9f49bb7c8399ca69dab25e10886f3a1a701954b3c74'
            'e951cbc3b90a4a8a7b8643cc100f73986cae2f3ab8eaf184d2624cdee9de3aa2'
            '4c1a877827b7f50675897553687cfb88e21d78ac28f3632f3836e1ce55d9970a'
            '1bc782f56cd3c7dc3b7b85b79a15f5bc61188b1fd778b62f6ae91fe407c8bdcf'
            'e6590c1c08f13a2993485e19b772dca0bc86ae61a03c2fb326c272cf67ee6cb6'
            '0ed202dccd6a49e839302f6174fe2403c909ed2aaee9de8e76787a2d9a84b413'
            'ee4432ab70461aff6db7c18f02156de3b80eea840c6c839ba8fb7a8f3de74c90'
            '5496461c60f7c7bb64a55a7e9b794dd58232beec3c3e475cfad27e38ebdb6836'
            '97c3ad35e151fc0005245876ea06e30ea714a621d9f87c9b64929fe6f5bee6e8'
            '9c3f2efb642bf3609703a6d168516dfc26ff5a197a1b86f61910e15a6d55fd29'
            '4970c93c92cc2031443e74d199994ad9ce27731656e346926f3b5becf31daf6f'
            '2bd32edfeff77790744377f5da93afddfca01c47eb4ff2c55418bbe2b8648aae'
            'e9a08699872c94119d0d70c6693d0bdc9e24936f1d0558d669921a8a033e3af1'
            '930fe92859bf9649172d26889a1c36a0dbdcfaa7a7f769a421a0a817a261a19b'
            'd732a985f2985403f097ffffd2e2f660abe72d851c0d050f06d5db0b19ffe7e3'
            '4e8a9faeb6a4adf3a31ef79f4e3d9b051bf88ad65c046a3cd853d07362cb2e2a'
            '0bfbdc9a329f89f6568e7867ea6b46a4c3f9bf552ed8bef93142709cd18b012e'
            'd8c62a32a65a7a69048e4c2141797c480dce3f3c895420ca3ac063b633a5949f'
            'a604b30a9829578e4c51adbab3bd4a2145ff7581491c06b15400051fc934b2de'
            'da9a81ac15ac060ca6c171230fb842f202e15f400111b53635df1b39d102df2a'
            '6323f25414ed131fc7ea1be76b2bb0702ab56becc0cd60bfb800d5cc02be4e44'
            '46c3df328d691ff90c27f5705512fdf425813029a06dcfee75812ca526ad4413'
            '2674d38e87ce335309143b19617e22660d872900cd6359165e52d4829a46a1da'
            'ccf4e442dd7637697b5d3517ae33c93a4614138763ea6a157f64b06feb829f8d'
            'd98e0fd32214148cc7840640ca9f6b4881b9ba213ebf06f1ffea45edc4dc4200'
            '0f8b0dfff4223ab8e60709fef891247bc1f96550cf35c108f02e74b5b4f2ecb1'
            '59f7e33f9480575a6fce209a6278088c8e1e0ca52f7642415d54c07764f33a10'
            'c91498dfcc1a213a570211f0d7feda5ca16f8b223205dcb745743d6e9167d6aa'
            '0b1909b54f07a729dc12261c9ea711efd4386cea41ce8bc4ed7ea3f4b5dc70ba'
            '944369ad2da6424dc7eceec6f585d1daeff59ae700e0bbfe0106f3c1ae07b783'
            'b442054ecd9685efe9cb2824021d989cca8790b2b6049fabcd61636fcf673ecf'
            '051ca0012d994c38cec1a16bd4055663ad891f78d140604ee00f6f34db8ec3fb'
            'c13dcd505baebd615d4f50c5d4dae24d7dd6a96702eb3c8bd2d42486d9630213'
            '5ad7cffdefc967dc5dbe21152b3d3f66205968c9f2f412e96f782827ec0ac0db'
            '0fe74b79fb104d6e4d8f82e9fa1660ac0cc2a2a9de40096eafc86f28fbfe3826'
            '21f42362d1c91ac809f9a7b51170e69f803e93b55b415dbd092a748edeb2c503'
            'd12be8c849b10e9f809744ea7cdaeffd4a3862872edb0b375cae875a59aa3291'
            '87da8d519a477f95067eb62e6ba2bb22479e5971bba3cfbdfffdb6bff4d8290e'
            '9e4fc0295200cb59b271036f71ada0c6af77ae077e7b1563dc999acc41bb9b01'
            'fe666b83f218dc7481736eeef480f53e5cd426edd07341b9f67797eafb38f480'
            '2bc77f76ab00f9fcd41107217fd831ae18e8f3660cc5de6d83f09c1748e271ea'
            'c788db7f1ddf91b33e17a7537877351e3becf4ff1ed0e45514d87dada39e13ee'
            'c8e8ed847900a0c988a4d44f7c07a03e72317a8b7fa98a641d1f2343d98c5eda'
            '5d35c326f54330811eb6b952da1c92792c6cb4050b64c3d75de5d39e28cd54ef'
            '1be17a4d0d59e1b235178ee5a79598eb0081d861391a8e20ac104395455ba54e'
            '4662e78e23e657eba8f2f61ffec4fc67b58d0f3dadf0b562c0b70089bbba58b2'
            '4dbdac371ec585d1bebf22a2378ace9ff686d85064230a179e6f0d28e278f7e9'
            '3567baac551365dec8d622bc6687291c560713a783cf30a71beee984215f1e3c'
            '9cb527750e461629ca89e3091c998a097f45abcdecf2fd4bd88158bfa7430aca'
            'bdf9a49acb6a9f673601d8d1138bc271dc1e26e612030d3ce22b2eb2e7e40d48'
            '9f3a7717d5eab14ebf869376536c3935392cd42ec941688c2df389dbb4375298'
            '707ac6eb97a6474f8b733f43880b5a0bfd86471886d761e1518956e96b6813ce'
            'bf723a9ecdcf13ed416b6c34185ef92c16a1d3b0e680e56844f220a82a18e5ea'
            'edcf58bdc34e1359e12aa7aa62b33ef0fa143ceca590e0f65ccce09b26c500e0'
            '25593666fdbdeae13e66496486cb48fda04e73b3f2c5fb1fc6f5a5db22756635')