summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 9d7887ddbcb5db649757d581f492bff1358e2d49 (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.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'
            '11af30dcc94f418590d244f0313d82c908393256a760b121ea5c7e45ac660fae'
            '31ed22b4d5f56c49c953f1d4896ad10b43a3ae5907d548fc52a4a54b0fabbd9c'
            'd491c1d4f994c0db2025e57c753aadbf53c7728265e95f0566ad4a127470e0f7'
            '3cdba8682ffb08ffb6685c6c8506832b4c209062e73a274e8fb8373941f75863'
            '314a5fddaee180f36e0bc845f7189af9b5984e44470ba444430124fc2d0bfed4'
            'b064b7d35ce64566380b0d35204236d73a58a14cdec78826b46759dd276bc50f'
            '58ac1e2eda5d8d97639f8203f572b5bdde9a327fde686723c51aa873dd64234c'
            '7f963642b06a101a21b61fbb483bb410162919af267988ac6dc0d863b1ee21fb'
            '51a5b80f07fecda6c01b219673c211e4a0b9f8525246c2c621bc4489f677fab1'
            '625adf942397f3e714d23f7a2e44fd18450599f25c9bb26a24d55830ab0cc1bf'
            '08e33fed5b9a62e8dfe9269e9d47c7cd004d249fe8ecaae41191d2ce63ac4bc5'
            '6693d87008face5574e13c9dca2dfe11bc4eb886271504731b8a991e7b2706cf'
            '793b47a8b0b1c52f07832c327212ace0a3a0aaf78a6ce1bb14b53fa0481eb5a1'
            'f7cbe5e5f191a31438f69338923bf181c8fa16d05875c33f4d796b33b503ac8a'
            '78e819d4d333ca8c98e2c19ab5688e51b6cc2e1f482ee2b34f2fce3881057d7b'
            '4e6e95d97eeb0bad384896387a9f5a0a6e6ab0f50cd540780656582747b5a0d9'
            'd7df1f8d82b18d575fdc27fbba66e591f1856862c56d1afff83dffe5374f5b2b'
            '6c480a6e446a1210f8eb039f5d8b2ab89dfa1bad300beaeca66fad2116971fc3'
            '76427b4a0b61462d0de6ac61e9fa9014f9f322ed72eb7f40d6230f4365815d72'
            '3c8055cbfcc91a5dd820310e2c95692364dc0d2d20e45e7baa3bf91f0b443e80'
            '9cd1966af729ea11dd52356981e2692180d6a1d86aaed00ef0c2ed020cdade38'
            '019e2d14458fa7fa1a52bf041a5a4e553aa138947748e7c4b13460cafa4e0c49'
            '6e93cebf50db0ff8072f348c8a3e27b891ee976f3472ec3a22f24fb9e67bc21b'
            '9f4d31705a7a284f68d1a5293a4e45b0cd668fb1f3cabeefe3eef08c07e25940'
            '71e644f29574b70310b7c4d3b5519cdbb6d11f892ab53890a15fa31776f5e4b1'
            '5b0594cecbffc769446fa94ed619f9813247c04116859dd210099a441964ab45'
            '955bebfe7c81d16a8500b5d62cbdb4c1977e23b502f6a7a19a02500f17464b0c'
            '15837c619de3f8a81ecb5f0f55716b5b740d0c3fbb9e290c1e7a00618369d3a1'
            'd4641323433775d9eb31cdeb7bcae41548926c3f868c55f21e94c07a6fb1c20f'
            'cc1e0e1e58ef4ade4ed35cc8edb4175049591dea344bd7c4cf2eaf31d550a722'
            'a9247ca962a3081902fe736768dab37e14fc90f0bf28db9fa32929d5e1625efe'
            'b553cbaf807a805a54d16acc49f28f673f16fc48998b7fad61b9049150bd3644'
            '2853b8743edae5c7e19dc9fe5f474209a54c8994a4e0c7062a8d9923eef3620e'
            '05fab27b2a469a3fc8a2b37bce6e3b84ce11882372d493b4bbd3b826194c8270'
            'e94f77ace7d2e98f3e5b0123aac2c9ae630176b60c8428772aedc775d8a3d784'
            'a1ab8bc62111a689d570a3205850cb7f075d46f7b2dd177098103f733e071bda'
            'c8c02fb8636ff90b513abfa017d34aef03445877db35bf9b6ab8d213dfc2353b'
            '68ad78cd07cac4389aa5c09459fed23af80f411c69347e136e4069f0e85ac12b'
            '70e19527688a3746c3df9d75fceca5fb68b7ac34bd364175d5e85ebb54578ef3'
            'b62cb2a653e4af0de96334fbd14f55c2ae11098a110b44880f3b6af037968ce6'
            'a5bf3e3000fdaef934fad0303664ec056ee6febcdaefa7f19ed21b3308c05404'
            '9c981dfdb576a4c2cc5da0a921b6e154dd9c31e33155c2ea9469971f8ba0f53a'
            '07946fae4a708304f37b57926f0082622dced7abe830e2889d17aad391c1e2ca'
            '75e43a326535f9566bf15e1589824f0362ca4b252fc009cda00f64af8e8a3e5f'
            'a1d9aaa6ebd724eb2b05b4c02bfeb503fd931d01aa501653227dcb00071021b8'
            'b0c5ebb0bf08da6871af171c24a754b4f5af433fb9e799abba115329710a99fb'
            '6e62964dc5ecaf068da70140d2dfab1bf87ad6f28598d4b409b272e8135a0574'
            '80ed435ba45f0e7c36441faa35058e32c7964576ec6eeb737daa102fe0b49c49'
            'c03db4b10d5af1468b50dba90611f7611c49592b20ba30d8932e3539f672e3ac'
            'dbeee2e3f36f499e0b30fb36ebb4b32774f4ba0ba24cdebe27848143680c18e8'
            '763671df98c15df1edc998a0b9375d1b230be836c808024da3f3284bf8b448bb'
            'd72d9760d51df8b40d2da801d512925218cc405abb9691b6ad3df41ad7156866'
            'abc067e2021bdbc5748cb44ce4388071d1c52db81e72bb6b614cf0e333686165'
            'fd67d3933842ad0c9b040a649c46625124b41a1eea72d6910564bd7e560e8402'
            '6fdb4364ed85a095b17b20f30d0821f2cbf3cebe0e82ed9c44ce0d55876dbe67'
            'da3c37a2126d2d31b894f328e64a216e5da46beda336843abeb8b5bc6be14335'
            '3815e1c10e411c0129e63594b05a494063d938bdb90a5b5d0c212424ba2d4df1'
            '6b47eeb57f54919eed296983f97a773d7fcc0ba060d0510cc651be0243f9b4de'
            'dc733e80e18300e568200192aa69c5f80b5f6b2d1ab7d18b2d890205c9444e3a'
            '347ec4d8759db6b0ff8770fb2ea25a41d2346dcaae090d4eb9c6718033db69c2'
            'adb4e1ee09b18892be833dcd8076c715be06e1bedeede26345087eafbd76a0a0'
            '1bb0cc123245982fa80cfda5d658ca4e71e10fee4681624ac936efaac09cdb7b'
            '439037bef9a333dfc7f39fe720b5e7142e926293f0f5426151ea8095feb4fc4d'
            'd42b95caf919cba001a6374ad6a28271ade5256272c4cdf3b22d83ec506e20a8'
            'e4afaf1216888498dba242f91d033da59a49576d88824cf43fd2e59b1fb0c1da'
            'fd859db457ae337369e3671459e4fa232547c9cf80c49f2fcf834a0a61423274'
            'efca63e09ec205744d857710f723b1fdc3b3f9b238d0c0610e7d12bf29db094e'
            '3f9ac15797730678c09d31f11dd59f73596f13a03fbe7163ebd5411470aad321'
            'bf6b77e51cc450a065a0878d688b1a9e61c12d6892004d52c8fd4b12c003b52d'
            'a00c7c6070a2655d128afacacc01fd30c3ab422ba830e6c0f4c715910d722fd5'
            '23c3c6aab21b38fcba18ec0cc00c86de49fb4a792af79dc722421aabe789329f'
            '22748f02b4ce52afd3f9a2dff7ef3003c9814e71a99ed2a38e97331c20226375'
            'b04574f736120c0680d89f30c1d0a639048512a16ff18a4651825fbc02302e45'
            'ca79a535a2f485bca0b026aa18ee477bcf305dd300a153f3265b21984fd28bbd'
            '0bab7cf66e0cf3a3b4da3b48b1c34ea1e11f1e14b388d3085d3e4bce2620de6f'
            '9c47e2e9c292be059438ba874dd7d14ae5c15b18b30a2d66021a780a7d0d300f'
            '26bbe0ed6e859af34a44d501b86b18fefcf427292b8099b7aade6c79a9f12cdb'
            '8da012f028cf18cc371de8b4c9a008901167e278d5487124a2039cbc181320ea'
            '0fb3754a80557ee165db7e8909e639056f9cbac225a96b8dd32982937a5fc93e'
            '36d97ab80daecdc00fed25a9e24bf00579b645bc33d829eb8e9c3f08c2ed55fa'
            'c48ef360816ea143230423a49e0e2f411a60776492f8cfd7a683abde809bb166'
            '13a475ff3a003b491c3fdc4877d9cd093c0b0c6a1c6b501d25fb86f60066ca53'
            '1ec8e015cb04a18d69d4306df594e1741140e8423c7c4dad87dade333f38d0ee'
            '0a016c85a7249fa999d6139358f612ac2402ac4b4086261d1b0c2e31af2562eb'
            '40fb63b9ff076aca4d1ff422bb6c1a7eaf8f99a1d429405d0ce46770c44cdf35'
            '76d9412a24f5e3fc6e72b61fb8cfd5aaf92dee05aff77909036cff037436ffed'
            'cefab64e822125ed766f6271e4ea3c88bf1c4a6153b1b19de56e8d8af7237510'
            '6c1bbaeae92d4bfa361b925a7d348a596444fc3852cc6a208aec49041f5ebcdf')