summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 97ddcad1bd649995189eb66f714f8c295091b51f (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.3
_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'
            '86b47b16b829c20b98c55c86920f840e24ed7285fd12721e215d32284e0a37a0'
            'd6b588e9d0052aaa301c13d0f36424c7ed451078327432a6ca6f7ab1fe722c47'
            '443e6895401b421d2198ed56eb6d1da656ca0f23fb4b37146944b34963bc5ff8'
            '6ddcac571a55ced9275b58acae1a32e6575b64127c1221099c59fb83a2f2dcc6'
            '350edd0664f8d169851c6f44962f5b48f779015098ec0473cbdc9e0012fcd88b'
            '8e03ea10fae11112e51d9d7f05ba96305330a52b15857157c3344ccf9aab9626'
            '8fc266421931939a03dc502a5ddc833240efee7077855e099c853a301d9f44d2'
            '2d112a487986eba88c9702c4a760d630dec268d8f743ab728dbbdbaa97504983'
            '68b9525ef3f69ee08c16b5c508d9badbfc22e6a42d025e037ba0472d1524a10e'
            '466ae762ad899598f29368cd47efb01f461036dcf163a0598cab758530c70605'
            'fa813184f2953a5262be1bfcb4b507556de2a3c3ad27264a012397c41105a3ca'
            '82f916f52fa37bbfef4d72c78a4b22e2a6f0fc0e534281250352b7b2d2f1964d'
            '47e93986d1c1ba0e7ce84489f89ee1f3238faba9c3f5d3bd751372d021140197'
            'e1a9ae8114ea3eea4f5fd88fe311334cacd7041352f819e734d3b1bba41070b9'
            'e30f0180b578884c52288b97d85de8bbc9b167c14520dc010a0aba90b354955b'
            '3da406f9a61f07182ce333b5f4e918c37c96e9631ea9eed0a358488c56bb8fce'
            'd633709e95775a051e9e400e04b97d1e95b5fe43ba4376c06ff6c40eb4149709'
            '9954fab2a0ff5fbedfb4e9d0c01a9cd5551cf5b442310be67fd1617bf28fc60c'
            '08dd910b3ca98baaf1bd2a8a5aae266244662477ca62725552c2d2e34a3b8b3c'
            'a24255006962e4119804191d45324d2bd92c3dc76c4b9a3b8c1bdaba2d869403'
            '9d25c813f63ad35ec37341a4296d40759f04f42e4713327b081a2c74687c62ed'
            'c9c8de0212840831d616482c4cb10ca0c8bb7e9bdb22ca6e4bfc503c7f54c4c0'
            'c374ddf82403ccbe7255c450b74cd3beb4f27389e41c49df71df45d3451bd683'
            'c6287bb90609a5dd8ada1276c588e9c167812bdc35b2a33c41993a1fca26a63f'
            '0a653d6b8ccea3d300084a1e9e381d012dd5bfab23e3dc18b0f58c31b8106e8b'
            'b325cea20c0de649029dbae5b86881bf94eff31107cb1a8d03b755e5712e91a8'
            'aea869be9d259982b666c0f8eac229b210429ee416f83de018a61c46300b0ecb'
            '92ef61880643f35368ace2858b506ed4ccce9a353259ddf67cae9eef1a96586b'
            '978ff6e3073c733d824e189bf6b0d607fe2b6c90acaf0439625f3af03bff103d'
            '78d0d43ef9c50a1abf64e76406163611abcf81b76e625b0db2dfbfe1ecae6f7c'
            '693205a11f6e889692b29e2f2e2daca934910289e4a3bac5478cf329c223834d'
            '074d3d2e2650e5a1530502b4347c6a1559f8c8fd1b4ec81091b4464dff1115ed'
            '98410ccd6e117704e12ca662c3f726379e618f8f891f7de6f32b33c0f33c233c'
            'a641c447c80175a312fa6a97f20603119232837e09e5e30cfab408ef05371587'
            '71508ecafe9fd1c2a5e293eda2735e366f80c6f117cfc76ce84caa51e864729b'
            'b6ffc5e8f06f7d732b47463dd23f6a82fce73baefbd61ef268c2003a42dde26d'
            '7f78d1f9abb554cac2b849c322279cde29ff317869ee1d64e7c53b2dcf35f20a'
            '856484815c1919037fcba7281d122c5064f6c723629b108e7b271cce95452b8e'
            'bebbf39945828681158c920a3a67205919c93d39947761cab97a3cd8f95806f4'
            '95948df90a11d45492f78127a12f7c85441ee6be99331f8697acf44f90c8eddb'
            '54c5fe05d8f0222f3849fbd9349a0287475f7f5cfadde53bda268a8be4e2e73c'
            '47b8023434a6386dc9553991ea3c47ee30aeef96d1510c30fa4b636518fb45f9'
            'd049504e419bfc5ad9d5a3a157f6c930a0a15c346c666a60412111b9623eb290'
            '4857976f2a17fc1b785e99aa0f4c6b599a8495db2d5d8c3fe2e8bf8e1c695f12'
            'ec9619e8757495ce77500d9cfa0888d527b2ed9d7417a2302ee7487da7c8a484'
            'fd3d223fda20f22ebea5426caf29fc2358b170bb50b5f2e32eb88d9619eafd53'
            '98e7e6741a7d791156f7eb9edd4e25acd54142d658928f4434ff0447a0b1fe08'
            '7e11cd3b6c14c59f9a475a93a28d65cb5cae10b26fe936f81ed9069f7b903153'
            '9e26dd8d34146ced2ed73e1abe629468de213c410a8efe5feb160056451feb05'
            'a8f0d23577569b5550aacdce1120a13bd7365e932343cc13a0409bc7d5fac2f0'
            'ad9d32ac29ece7c874316eb7712ef50e2e455e3d63ddacf439762a2aa0aef29d'
            '7b493a0f8cbc9da57caef1363f5e518dad3966b157dfc0e1d6d457df0107d08f'
            '095e9a301738d29e82ec14774f6197db9653a264ca17d00109eaac0a2bfaf7d0'
            '236a1ae41013db11e58235d639860c44a2c274d61ce135390cf844e2dac285e2'
            '3a0c47498128a84af7fa03f07a219e2f1986ed49afa9b0e9cc92805e97cb1ba1'
            'b6d578b014c9a283790007af286627c3ae414079c5d75cf015f5b973299904b3'
            '431690723f492677e265d0663f49d60db789763189600a803b7921bec2ee9740'
            '122ca76121d03f55d0be579261d29d4f53728b0bf5f50d30d50f96e6ad9038b2'
            'f60431ac3d478cfa5bd950d6dc0151598f6ef00d645eb7db3a2c90996629dc1b'
            '122209392c40c9850bb1be008ad5788be26a654e26bea319f62a8bf78fccd7e0'
            '907e3c213b40b0f1e4c734a2cad82d6866b89dc57f5bc5a5141baa937bffa084'
            'e66071671084c16ff7d3cd6bf5ca126b64ab9e1488db27bfed32de35d7dc88d9'
            '79e0f363c9f26a59a6a56777ae8e04baa413ca37a61de6f56ce5683e4e1d37dd'
            'a27aa417ff7054c61bb83c84f5208bc510b13caea5507f38b4915a763defa88a'
            '060612b92d791e246a37d86c240daf36f4cf8e46506eb71701339c127e193cfc'
            '7a6da2d0b7db4c18e30037c395c3d0086ab81ae70bf228a1f439b86d87e6f77d'
            '988efbd35f6e31f1870dc7630bd993ff24092074f85119e54f375cc79407c251'
            '49fd82563ebbbaed7b57031ca16558660e32ca9eb452cf1f51374dc49cc945cf'
            '8c1496efbdf6a65a45e999a617e404dca1553e8c22251b1ea7c0ef2e88cb0790'
            '2cfed7210f1f8a20781d78b79d6574eb3fa07c2987dd60a60179881c7f3bda3b'
            '8749a70412102617394d38f052531f5ad6b6f6f3955955d54c772bb18eedc13c'
            'f86b302b861f23a545be94c5419828942e9704813961f8920363de9e49082de8'
            'ad451ab2d1b8e70f3c36f507bd17737527c55e89300d1b0fb5bc1f8383277dce'
            '0f63e7f77a1d9fe18c127bde579f118acd1ee6d181ecaa5cfac9068589ec6c86'
            'b5cae9e12ff2927f141f2e9fcff999b48d174df0487883300c7f7e739cf744da'
            '9c1373adcd05c518147009ba7c39c0fc89f150aa1824b66e995d134aa79f971a'
            '24bd221634e1e5b97e08557c6c77423792741db655d4bf9b3fc251a96801e598'
            'c330fa0c305d1f07f9a5887628c71e5dd5b8e603253eafc3a2f19f9b3ca41073'
            '084dfa2356cdaf50bbbdec3132d7bea43003439cfe5b3a1afaadc7cc4604609f'
            '3134e9f9d3d9d38457da0dcf8ad2fb25a4ad23867d3ed432ecc54193b8f47f2f'
            '24b2e2f9c5ed64df69bdc4b397f286bd3213146d5d8e4fd534305439be414264'
            '1bfdfb22a278001da030037b1da0820cdfa4c60f22b73d426f3ddf06ed8b5d2f'
            'f3439c09edd6c9528913a51dfe5bad6e8c2d1bdb7ac8c94f4959a788f030e34b'
            '39feea871a31cee240b500c4a129d6a465cc60992cbb696a2107a093166cf520'
            'aeb5fa756166cd699cff21571a37214b63004e18845ff21df506f5c6799195c8'
            '1fe91255bdb93fede031a70c981ef25898082eb15f98adcbbf04e8898ea91473'
            '60c017d50b421ffc2901e667afda08d8e2fabb2792782696a9dbf7fc1ecf8fc6'
            '618957dc579c831f5fac0c0bce5252d9494f9e42405819208cbcd57e159c515e')