summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 213aaf5e75af3df0ba7e79231717e142c302c4dc (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=41.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' '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'
            '4fb54bcf6edd429d4f34089ca5a8937603420c375013b6074bbbd517a3b098cc'
            '5798458049dae01df7651c87d0839b6e55ba4782b88b82718cf926c5dce26291'
            '8d01fce2e3fd123dd645f382d6cafdea0db90de80464bbd3aac077219024f056'
            '8e2fd8b1542ca9adfcfcd02228893cb68cffc42ffc86e20953cea77349131e87'
            '335d6069d871ec037160b994d1a5911ecd6ef97d9ca56b39a5dd57d3262d33d9'
            'c983a5074c49348f07b47e0f631de33a2f8f56e11c42bf66e600cb7b405bef09'
            '27fbcfc68b47db4e40bccb220fa394c1e48bef6100ea142002a67b9352128ab8'
            'b0071d4a5023601ff3de1ddadf0ae69a0c8767a48e76e8dd998c701dee4d08e3'
            '3a3a827da90b1a0584434634596ff666e177be074642d7f39db6da7f0ff0478c'
            'ba65926ede605f2b8e78ce2eaa684a4dbb2d65a6a3be7765b80d370e8d05e852'
            'cdcbaf4c909928774fcaf6a9a95822281522065c013db4260a19f74d1253a18b'
            '6fe5156b8ff6e5ccadb2aafdca9d86473b43b84a327f7095445ecaeca8c6fdc4'
            '822a71d4f2fbb0138a37349260bd872eef36428198c8d641aa0775f48ccb307f'
            'ada32544967ccd2c5d9c2216e3facd69f7429f47026afdd2d6154a14ba46c6bc'
            'b21f1956c4a1c7cf9ab6110b816611f0b093f6a9fa69cb47254ba3aa26f309bb'
            'a6daaee8e38d0bbb5fd2935d80aec33b0fb85040b81fb9fddbcd6875d66301cd'
            '0d50751e98367c491c323f63f6bf2019dae8efc05b5ed58813ce4646af957f0b'
            'ef80c34d0ab6a8e46c5906f9bf37b7737ba3b822beb91fdf883c8237e7c7f9a1'
            '7c523bf17fcfa1aaa0ab00037755dc18f2ea4ab58461d1ce3557a71198fd00ce'
            'f8e0d36e9df6f34457787a990f79b13afee375d425f3d1edc0f6cbaa7d92164e'
            '82044dbc51a6b77bb5e3b831acebbfbc3030118a1f3a6aeb32a519e985c8ae9d'
            '10018b5cf96309da539f86400d727aff8455b1ea99b1dc27c92d20ea4f23fd59'
            'ac223ebc4b4802ee35a22461011a5040368b9fe92abe1ba527d8a83d26ac86ff'
            '44786c733da534781675de063b1bc4909ce30048abaa068d3d3df88a7f6ea4f8'
            '388743499d0efa73eae282f1af4c7d66879b203c0d10f779bd2962c0cd672d6a'
            '67a4b512c3473d0ea5293a2b9a2294bf88e20065c29fbf6e54b54052eba5660e'
            'e5da0e31e4ae12bfb653b0de834181c221be7d54968cff17c0d862f5a5c43c73'
            '897077539a8ffbba388b482cfaf16c5b9c732f7c7b2befccd1ad638f8199ead3'
            '8d8fb362961f43ff109fd2fa251f02e38286642d3c06efcb57e3e7b954745c3d'
            'af9ccd871d6aa098e74ccae1a6da5510a17af394bba642ee62d9b32c43dad2c4'
            'b2a3e76a65753b73a655693ba14e3d48aea530b3833ccec82d3186ce8ae290f1'
            'debc87b60260b1d0ac60f6f48fd5742c4194885cfa6b44bf2682217275293d74'
            'ae857402eee63d69e5f8d8066d9bcacd2b1f13a85895baf86256e12aa4a569cc'
            'd978d967fd257399b169ef44651501c6fae5b7798ac0a0c343a3ea8a5c4a67e8'
            '0648b62a8a77c27e052cf00c8709c856226637ed856566afa0936c42d5d2b57d'
            '5b99b2c283235e8f1d7e2d2877f6d5f262f175bf20baeb980d8659bf29910864'
            '7438371965777293ad350fda91d926e7bd93af900a100c72757cd1f8235bd374'
            '30f2b77562f02293758a139288933ad1d53cab969dba78a284436fbc8b060aad'
            'cfa71b9c42f163d715dc9d7fa707fc96454a9f1ca22e5931c7dbc33e85e97e0a'
            'adc9aec91e80ff0c3d9d4e068b2d31e8a2ee84b81ced246be59bf1324c08105e'
            '08177da4da821eecda10058c515439d906093508e748c467373e2cadfc9e04f0'
            '503c52896e7cc50b43b3f2601223166101548192104c752d3e4f5ebaf53f1384'
            'c7004696048b43980b4447fbb1a6ad9bf4fa222d53939a6610acab397d33efe0'
            'a18e1d25726e5753a7ff5c15b3e53b836e5831d48edf7ce3d3f6336379b2392c'
            '0877a9a9d61ae8e9a369a02bb4bad68fbf46424bae102da21bd0462915f27369'
            'fb17fec9b34a1b7b96df378a44a268eb9f6330d28fdd87f27a0a254b671027bc'
            '703ce0802578900e9e3b23d97c7faae540b862040e2e2a2c3ce28cfd2bd12c17'
            'ff70a02ebff1b9d261b2320862190c86186b027cef5f9be72264f36eb74295a0'
            'af8b8041c0fa67cc061f2fb094c3187355b301afcf19576b85110be707f8c663'
            'f7ddc82aeadf029bffac082f5808f2d8b63cbd9e9e152ee378a98fc7319a154e'
            'ca17af87523b12bbb390fcb286f3d2fde2359f0cfe9d081d7d6b21fbb9810995'
            '0b2e8d153af9289f7189e86df6368290ae2bd38943c7b5dda2639d9157a15a55'
            '825f22aeb0ce9268d8c624eef60a96eac93aab8af1cb93c86b97514c7b97fd8c'
            '34c9e6b2f146d56b50a16c621298e0c275a4521173b9af05658c0d26f2b2d3db'
            'febcec279aab7fac398cf74678a0178348e6cbb2096a37fee8b106659de49bde'
            '0a27a5cf41b47257d48ad1175e3af487170a2e1ede01fc6c871e0afdedf6fdb2'
            'b44b5a0d707b38857e36cb6fba06644e26d18de3a99054b2cbb5345480f3533a'
            'a256c821a4917c8dcdeedfeceb66cabfbb82e2bcd9ef333945380c900fb3e910'
            '5718d60d974c01afae3327f34bca664bf11218c144d0280c227ce767526f5329'
            'ad8d9f0a567762efc306aea4601f1cc152c0c28e6c9e8a7dcb00214d4162b0e7'
            '8e59bae91181fc1cf89ed9caae2a767c85313d942ed0705ab592e6ea43ea9f24'
            '80a21040c24a64c77a429707e42fce2899e63bf57d700d95388c6970eab05e6c'
            'd955959a559892eb0ecc98ed16113b18e9969e724c295eafe0410fc8a5c44dba'
            'ad92c25049839f5a6d49318b1ce110d6824896fba273a84916b097af21e8c12b'
            'f6231de08a895a063dd8466a35cc3197a9c823f10851dcbc6d6cecdd9c276c27'
            'a47d0b7be0d2ab228deda2b0abd1338928d775421094873cf1b2de4286c83bed'
            'e9c38c02364c2d3130c228ad06df8b00a5b589624a213143c4f38c2d55efd420'
            'fccc564dfb49a977e58715e898795f37437eef7afe454244093a94c93fb22756'
            '6757c9d17f3229193f92234c05c14eab0359ec95a67483d2ee1b8874374c386e'
            'b023ea667774fa6a08718bf1201f0be1ccf92bd430bcf8f3fbfa188f69a06320'
            '9cc28d41cd1f10bf8176f693b99fa563278ba5a37c9483f7275d744c02e265d9'
            'ee924913bb6e45c2e487c84a0a28b7bc8f43ca4a9e5d4f034b0cdec7b01d3469'
            '4ee26197ddca22ae0f86c26cf08d689f1087049685d8238849ba08834b231fd4'
            '5964782efa2ec48489419ef2dd12ab4dd898cadc0482e3dc0c4eca3d23e852f9'
            '39c455ab8a58adc8c5edafec1894759de106d41f8807984e703d3d50696b491f'
            '17aed6f0ec977965b2660894c3c454bc4c8a85054c8248105db987538bad7d77'
            'ed5b93d42a1d0c033075712106c7851fed97cb3a965cb9c9338ff0da39d1d63e'
            'b923ea218cb474290caf68b667fddc5805a27cfe2af6360c567a173554e6f7c2'
            'c6c41420fd2a1863277eb12f1544eb26340f3f0d914dc2d028e45dedd9dd074b'
            '3edbdfd9ea6bebfc60bb9a86a2570c93c1e0be6dfe005a64b8e3264f079f03a0'
            'd4d4600ba2aaedfa49e2ac1183a2e9818e1479fe4d4564fc79022f44b6b038e3'
            '5325eb75eba7f2e7e54cf4d3ae8be9e963547f18446d3ad2243d0c0c01a24869'
            '86edcbae2f1343c6399a9e52595354445b7df98456fa750d151672efc4a1f89f'
            '3c09db15e10882f9ce187892f2af9d66648ab3a22b1de6481e6ea772975a73b1'
            '1abdb09d0bd06516dfa8d1990de334b4741110e2859650513ded4b501afb8d7a'
            '48e3a408c799eb0080dc0f4e14a65a0e7e8585ed61688bbf01462db31ac38c64'
            '84455c188369dc9186649e30b1f36d7a615f0947c16b3a3e24ef7faf8b0949b8'
            '338150e1e3b341d1582b9d165a1edc74f84db8610127df43f8fb8d1ffd8cc189')