summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 1051bddb5e2808458fe09f135f9e94e76908434f (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=44.0
_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'
            'e4c07f36fd89f895bf4d292922c9d66d7fc5e1a6ce42cb3270449df4144df420'
            '6eaf0f4c2daae05a8d0fc4f0e65403ca8335f193e500fb763fdda604a2d2dc5f'
            '2c19acb9ce44f0299f815fcb1520d66ed51ff542e08305a26cd8df68445880c5'
            'e115589143355a851d51f7e6339155510101a9f283d8bf947e6e8743bc22e694'
            '83c86accf97d74eac1ec51812336b117a1c52eafcbe67c25c5b0b2c71ebc0a59'
            '578cae07d410e8b0df74f4ed71d086fb5049a040d9c622454dda67a250666a02'
            'dd9fbc4a3dd91afa6ba493485b97359a56f04579b8a5344e5d0351c5ebd0dbfb'
            '4960cd16509a5c692ebae9552c34585e92d656b2e259a4a1895daf8b52a83ce0'
            '5813ed7759ec91f95dc2fd39c80b69346a246653a40761753d5d19aedb6c46a4'
            '10b4d1a1658c675c9e3dd6ec5824755c6e42192b6a2734f2fdd5cfac3643affc'
            '0f950a46f6ddbc32145545760a5e8d68ece7dcf58a7a4cd814de3a06905bd4c3'
            '3864cd6d9075ab339962dab74a576267d1fbbc91e93c3eae22dd59fc7aaf5ea0'
            'd1bcd66cb3f146ea1dc4fab7e57275e2c8698ce3f24585fed7cb37ca092df6b6'
            'b4614786af9bf5b376e293f9a5c7164350ada9363c94e4e5a0ce11c0613deb06'
            'd451ab7831bc928bf7d641b31c2e9b03d904d74e1e201b61f0249862d301d85f'
            '4be3bc32f6346963d0e34317e3182ece74d836b6080bb2b7644fbb7d569e7166'
            '099b4268da79b845d30d31a4b7ced38d32d8b8baf37dd888df9696d010799c37'
            'fabed005bd4deb4a3d364d40a6c38642f52edc5f6d4673ea2657a75a5318e5f6'
            'daf38e6023f92e8a93dea630da6e0658e18635652319e13d15a433c14469409c'
            '048a02c0fa0fd4f14536796aaadf27c8f978047f4adae3316b05b9c20567daee'
            '0eae6e6438a31b10e52d83971a1547f5a7ac90e5a899823f716ed08bed8b4a31'
            'a6f4ef54c76e1e264b18d79531976e56b96f78fdaf2c1c91eaae2a0c333f82d2'
            '138c392d4e503d3c509f766e23a295aae8d3e0b5ee30f009525ea46dd0323131'
            '4736290d62172e977cd249a0911ccd096b7b0d2ffafd59c0d724b92399fe3759'
            'f170ec09bd1df625c5f62b3358d7f9149135651474b8f4805f570f0635b3c82b'
            '764034d5ee09a41321e25b1d404a6294b0f9cd6c325adea9061902f9a8bfaa67'
            '0cac8e0a9ee0a30b76705be3cbbfac965178f3f3e69282c35655567540c7a738'
            '6cd4b86053cf91a70905968cdaae84441cd8dbcf100b23eadf8b5da92fada74a'
            '4416074cdf77a792ab730707cacfb82d0b8f27225e3bb3f32b68bd65198560f4'
            '23fae74d0df35fac7bdb4ba7dcfdff3bbe547f90f12596f31cf7de0b63579dfd'
            '44fd05f9d4adf2d50d1a026b076d432db7871f85e0705c818bca7888d451af80'
            '1bbaff231bc10aa2c2727b13e09fbe5d259a1f949b68124f7b2c501f3aa02d2f'
            '3c0d4e675865f311e30ebc494327d080ada63924bbd4cc30beb570f8c41b742b'
            'd13adbe661ab63cda1976a5d659acb782817236f9bd150c0b313cd9e14182e8a'
            '47d4bc5256f960128e7a01db0fde404fcc602e895944d915865c21988026d557'
            'caa14da33070c1afdf1c50d7e6503c0ee879a68474db40e1586e5e765032942c'
            '4906970744fff537305e3162c47a1a1cf8e2e2ce81230a7d14a87936d7cc1b2e'
            'f2c019704ef8739503a03903218c788ec5ee1078bc8ab282f5b0f6db7810a8ab'
            '3f667629f2a888a0c5b6b7c9af3ee5a97e5c33f7b81f95c7022612c1d772580c'
            '2721c6068e24dc7010fae8a1b82a0365e5f8c14081927126b7510fea83bac810'
            '6117ccdacee7befab0577d6b3749b0e2a033da1ba152a71d7b5722a17071d280'
            '6b6ae8ba7656da80da6f2260474c70e3ef095f22165480bac5139f3ff7fdff06'
            '7528454217886bac81c005e25a95a024520912d344be7c76b37a57afd3548e86'
            'f99cbf089d98d4dd52e80d3651dbd611d8a133cbec5a23b0da814908838b9b76'
            '97f29e6287d2d0a4b2284f5b7beb7bd64c96048967ddcda99ab4ec67050f13e6'
            'd9476af0b5840038b734e302a99a4b7126df5ef5c7152fa3fafbfc227426cd09'
            '3c8d9a0bd3b7b75c0174bcddc147f4edbd269e3f87a072cdcc39a12cf95f9302'
            'd4cbbabf3a6dc1e83e9d6ae3d8a7400f0ee7273778886de91f993bc74629592e'
            'b528265b54745b42408e4e33ad429ba0e007db68e50d796abef1b98366bd6dda'
            '24590095dd5fef6599b74a1f1717d272256d3560e8bf87a23514b67f3cc3bb08'
            'c6f11ea827507eb6b7e609a24ccc702835e5b936d9d7bc6be87e1d4189472c00'
            'b8006c6950847b7cfcef264b2cbd1b2bcfb624fd2d8902835426575dfda9d5b4'
            '27025e34eebaea5b9e4de3a7bfa31b23b28f29d8c7084d48a8063a770d48f31d'
            '7a273b3992f1d1dd1f42815a76a678ca87421b55d6ef2fe9477bc83cfbf5589c'
            '27553e99eb0f8204b70d5eb8507ab2fdd274875a244f95bc12e82baa4b250a68'
            '385b829c2c58e56feaf94ace00b9e3cfc3cee55eca17c542854e84b4831ea7c2'
            '37d1ee805601b5d7fb451e5f3a50b7890f0a475500b47e03b172ff030b6668c1'
            'c0f67f4a1e308be2447639fa27898ee9229d11ec0710e1a1e7b9efb9ef072298'
            'baf7312ade7500aed2f16dee74059b437142a0fbb09ed6b876f6608bab87ff94'
            '88ef011d705ce5015f99d93259874e0cf0ca424c572f7b1b62275df9a6f1b350'
            'e4b4d74b2916d9dcfeae22c49f63ef8f32a1b4aef59d93cae51ba0dc230eb742'
            'f77df1f5663c760564d7243cc83de906838ff6ffa3786148a59b614594bfd6d5'
            '02257212f938875588f9f1e00b2c2730f52f88d07f974a15137fa31eae9ed9b7'
            'f8f7865f319abd1c05b4ff51c6c7598a91c7bf5da6f9e80071a1983a94927dfb'
            'e41d565d51dd4e88b6111ab648af32d263dc21fadfa3d2090d7281eba1489540'
            '2587a36b5656cf87a78db15b19832912119016dc8cc730bf6ee03882e8dfa63c'
            'e696ab0377a4d3f4eb6b67b86bc041e7ccb3f97bc4ce124de10bfd05679c0ad5'
            'd4d8ff66773ee7bf46657b616b03544254f77260a1a4a9cd7cd799efe020b1e2'
            'bb0f9987f34a252fa72930d57c8e5a20eb1f46608b885655e8bced828bbfe825'
            'f06706c75edb33b0a2de9972ddc6f8493165b75240e7e538fbc17c99a9f078cb'
            'f3c91665f0552ef2edd4461b25f56c5b1496894e0931267ba1c0193b94d7be43'
            '9d719a06e2ab5d863d0f1ca754527620524b5991fd883ec3e1f3bec2ffb53f16'
            '405fb03df2984493340ed752e538038e43dfb62ec38b9903349769befaeb455d'
            '98be34d4f8302375ab486f989ab4dbe0855eb652a82b97227e71c2cfcfc37dd9'
            '94c6a033d0ddf8f64fb265c27a627d29974f8262c4104d58a6c0348f8041443f'
            '2869ed06aa8cc42d55ca35c8ce0d4aa13132cacced42d99d169479ce44d11f50'
            '28f3d766a5f340d2877d53745a39edcc7b2826c244501886884683ae58099960'
            '3c48fd926fc95de710e603af2029e1516cfd5943fe7e12b98f914101e6d577b2'
            '4f8492ad68bcc57e877eb37ae4540ca49fabf2489b9ce3ecb80775d64c7955db'
            '1c5a5725ba535b7473f59a2c61273b3e41be5851a35bb9c2d4002c5d6b15e202'
            'bcf7b012e080f7c7c6281f9c1da42dd9108a79f099c10df7e978ec47f7861f8c'
            'd07f0c7d3038bc917d2718cc2a6480737fccade1edfa41c022c407fb63f52a8b'
            'bf45379e212059e902bc8e480749b4cd89f03c1cd3639b801eb5f1de305ee57e'
            '83c6c67f85df50e817bebef5bc1f78ba8bae2fa35f6a3d4b02f4d3e6c54b5e10'
            '702ae049fcca5192f5c9b50615cab04e8fe9efa0a70d62e81a11bc06e02d585b'
            '7e105c311a0d03381f76d44c0a91a92e4c364303bb084f022e460b6f2500e073'
            'c78b30c11f1d6d2be9fdfaf9f4c6b30cb7be5d754f4c1ab851c4a08c68cabccd'
            '68c5924093aa1c7eb9af9363037480db9e494c55325269176ecf06dd57eebb1b')