summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 5ac55fbaf483998b927d16ba3f05308723763102 (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=43.0.1
_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'
            '31bb220471ff9e5472920a97442f06f04162c28b8447ca840417f51c330512a3'
            '99557516dcc01b0e4f62be045c9f00db7022dbcd5dff991987f86af898ccc46c'
            '621de77f238045216a893fb01f8994fe84e49c4eeaefd96f9af6b6a99aad42e0'
            '98581056f77e8c687535753a5735f76b229e5407fac5eb199ed8dabe2c7e97f7'
            '2eccdbadc99c97c252cc22476243f7d4070a2feffb70c7fb06b9904ca0aa0fd4'
            '00822b359aa31e1624d2d5e49f8ea5b0aba65b66f98151f83afff4ac6657f8e4'
            '106c7502a7b91cfd231f93f27b9b1295d83ef7d97f347b0d835842b9c90bbc4c'
            '537bd7e712fff3eb31f48fdf4b7f1bb17c76ebecafcb98f51f7f83237a661c06'
            'c6db04e80eb75f75fde1bb930215220e0d6e47ce4c5427edf8b2a6abecfa21f1'
            '4dcc7badbd50e782cded05a6b33b5b238b2f31cfc65dd9641c647f87cefe9c4d'
            'fb5f1f9d28048ac1fa34d2ea30b5ce1519d8162a1de52d55a663143cf7d49f87'
            '454b64481c46d6aefa2bbcb74fdd71a0c319ae4540b0ba2b00d6b098c77d37ce'
            '71924f09c0f381fe2c51a870b4643ed142a3e2597c6859c5539e4290f0b76661'
            'a9dc99246e46ad16c5efb7bdf75778ecd343a7cfcc95e092b47e191516a7e43f'
            'd307a5ac46a6cd2c19d5606c631b0858b1d125f5d8b2d9bcaa804c13b769f29c'
            'ca4a2f7075724a3638573c9743c9eff9e78364f2f4c6ffe0297e685c66c46eea'
            '01137240205a3a93ede78ee1c8003037abff0b6211159e7f2b4f4dc17fa90ff8'
            'be8372612e6b44f595771a1f05b18cde682b96bd80199ff06cb14a1367d86050'
            'f8706f0effe1d5b838b0d0b50b15e64cc3086ea3a630ca148c744684e87f5be0'
            'b1053cda212d4e0816700ec704766df3842b0b68169a08f77f55492c5c485d44'
            '76ad92534c285fa9d507dbacd04c042b37071b7ed0adf39b4778798641d2d8eb'
            '3f87a8a0cd1490a50fc8ac106a0839863d9912a19ad8154368eb65016f99f31b'
            'ca551e52cef9504fe39c06d74684a4c3b1a550bb1d614e7b291996d1a82fd515'
            '221efc7e4aaae0697248d9b727f03ff6d05f170eaaad6b2d57974bae631822a4'
            '0c6582585224ccb6d98ebf7b2b863d33ae2c51e367407aeebdb9e7ea87a13eea'
            'f06e72b02d77a1fcb4228e8823b37bd595e5c844f7e18802c6bafbfac5b3e0f2'
            '47110d949fb57171160c7ce934595a8f7df4790b21dbd76a71222d3970ec01cf'
            '37a2520a248440e45518b2ec00d81794044ad66b08443ef0f2e541dc3a901127'
            '1747f0dac149161cb79597f180f5e5773be1305247d21250802c3a4060d57125'
            '807249fb52515e33d980ccc2c361d883b8b0b6a480f820b70597beae2ac26d85'
            '86fa3686359540568ad3323bf99618be38830ba5e8c8c4d3aa757c38e3ded546'
            'ae202eb98d36a310836fd125cc3ae173571a7bdab14179994c61e83bea305161'
            '2389042f6e88dd34dbd817198b5edbeff4b31743ab18923010c66e213d76ed8e'
            '74ee9db4a15fcfdf452a6fa4d0b7068c59fc3968a772174c32aa899769280e82'
            '4fa0740287f403fdb5f5ce245a2e03c7a2835a8635d6fa1a58fcb913e9c74fd0'
            'f35b19f926720a0845953bbf394eacca9afa5b0f99d77475e90fb8a02a12a49c'
            'fddbbf3d7a8040c5d9ece2d0df53f9f26a42e8bc3957c0ed3730ea51ca4b4670'
            'b9e9b92a1532de7b4ba0b44a873359c6ea943fc2de9809312ec0757aa3ce6968'
            'ea058845ae17f0701d44f6dc7e65fce20e5aadae11bd0af31043ae85184d5165'
            'cbc3702e4019024beaae6055419731aedd0b32688967d467604c70f15d49d841'
            '916309f22fa8a4e1753455d56192d56f289ccd77e2fe87ba3bd7a9a5758140c5'
            'b320200125b9d862345f285f5cd880a8fc228343492e11009e6973bcf1cc116d'
            '5bb3f887ee6a6514354afd7ba6d960b3dfb05731887223a28d463d8bba17be28'
            'd6567613b5e15a0814a2a26404f59a1661fc75f82a350225729d4c442bd895de'
            '2ddff63ee47fe1f48cf9dcb373c05939fa6c8a4a7a87cd8b151701e809256afb'
            '29c1bc81af83e31fe013561812371db22bebfb7b9b072371c60336c0061de8c8'
            'ef3315190edab34c54bac71bd29c3073dc8a3a1574d9e7f7e8b67aef01ceb2be'
            '3057e989c894c1190ad2df213f74083f3fa7e5de5d4115981e74dc88af9edf52'
            'c8b39bddb7bb720b4234489886d468fcad8c44a45524d9bfd57a8cde52f7c529'
            '9715740b6f1287811eaf88a5402c704c91c3fb3764abdab69504659029472141'
            '1123493bbed7f5be0884595081dad9755fae045688a358e44e74cbf712967a7f'
            '4d104ee554b3dbd4512c0f007027f89e9031dfa7881139dcc0a9249e995c5723'
            '28a8507c34cb26b36e27c3cc040f0b8771f476d4e245501325d28988e9f1f862'
            '2d24cd1f2c319d41f33afa9da53ca6ef90660846b9324bf6964b992871981e31'
            'deefa2d1f84f998473985c450ad52715a8d1392a5ea8c2845fe54a0a4a51e1f1'
            '795b5250c975dadb0aab5b7203a2a93faa78d82bc48c8fcd26f354c1f1b65cbf'
            '9b82384972fd63eada8981c1018c1e7c2ea896f9333e83e6233d19df060acde4'
            'c40cde8356fe057cb3d31141a22014414c069d8918331c8b3fb79db53d9ad1a1'
            '420f2b22f38b9cc870e60eb63e4f95d6fd8e53a40e346145a1d263f6bbdb9a18'
            '1d62b53e69ab0b2127d07d329f8c89e68ffff52844a6ab45bce748493a792e07'
            '5de4e313b5dac739821b40f67824e416ad49c8d37f598a29bc7ac63a0fb51bcf'
            '1520f91bbfe55cd20f5b56f8c85782dc1a6b073b2fd82bd1a0206940646077b8'
            'a4e7c4ae0de541bcee885235e20da2d79bc74fda2554da39fb06d8b3dce877ec'
            'f362a1e10a4c01128c7afe66e9952073b50b542b813e589d4d7014787a57c735'
            'bc3322e631afcb00e14ca076772b62c90e4999d2671369ff1512ca8237f824f6'
            '7169358fb4b741d437384cfd50244283b4898792d08e1a4759f097ed1098419a'
            '70bf381c8a1ed8cf7690929f79e8636a879e8af962123c749ef7ba13533a7f56'
            '955d2f7229f042e50df22ab184d0f3208b97b9fbb8af4d0bd27dc897a18c7f08'
            '64b6e7db22aa82e8f2c582e3d1e62f09f9d308babaf6f10910eeffc798616813'
            'f27d46f9a2246ccd064cca31dccf2927c19264362b61e58e646954e9502f7d60'
            '522ca8950560c6e83c61614c6e637758d80bcf97724c0b43b81e0d3da87e9af3'
            'f9d9ec7c4fa4d53dc74870f4f28eca3f0a6570e2eaa581d7150675fdc6fb1d43'
            'a01abdc583d82f6c29d52a0c7b929b4611b77e78e0db0945c955ade648733413'
            '70c425977ade8b4fac0fe2937ed2de0e119a22a38e57eada88695c08a84ac5ab'
            '593b9d43f05de2954127927653fcf0fbeaba4f8876252c5308c07577e2cbc9cd'
            '10212fb52293b4a7beca640e700a1dd268e73e72d3eaeebab46517b8f01a17cb'
            'e5b523b88543b6b05934fa335402336d62c7a4b8277c1b7179c4f3b082dff3fc'
            'a101678c858215ad9bae78c8a765ded6d82eb6facd44f3c69fc54a046ec54ca6'
            '115c0aa77881f9b6c8d8acd96978e5390b6d887625cdb6b2ff2877e318987d47'
            'b32c714e62f6b1e7b78cab192ab8e4295177eca38ab50c7b7cd29650c0b66497'
            '368927ab55d81e525d6a79ced521e4b795186bc2dfdefa11997b312a2ae118ba'
            '3f887f4b23d238cb6e5bbd41af3c3cd4e953ab556894443bd0fdd05f2e617e92'
            '87fb3721cddce08f6c0201d15328893d56f7d2ff594bcdc348f13f82bffb69e4'
            'eb2be137a69657bd973b351260cdd59f13ba7af3646d643f5be92641dc056164'
            'b85037da03fbe831cf7f7b77691d0ac8f9202fa87fa11e97dae0525689b3cadb'
            '700a42878a6bf20675333b2c682e3da10260df3a979572c33d8a799a3565a34a'
            'b042e9bd4f958b993f459b0dbd6f25fccda850836dfe5870293b093fb61e36ba'
            '6e713472a5aaebc373f21a8a62084614628f2a1b69c2aa5c35b27d1064009ed9')