summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 6001868ccc70ace0cfe6a8e9af79fd1e31b3f577 (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
_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'
            '84ad83aa66bb81ad033e18f446c8dc42879060baa06b5ac1576c21581e4f3193'
            '850de5a9c3831ee591297bf8a3c107db01f0bed978a760411b45c8ab370bb57c'
            '390471a5755fd3cac6d1055d198437fd180720da2c98fbd5806437cc04536139'
            '6a46bfb55167f0e42813db383bd1656c06eda2e48ccd94a342c0ab949c4d0ff1'
            '47158ffcf268650fdf1a19979e1708c5eaaa90a2e8b1ab096135747726567352'
            'd9d06ac4a0600496fa393982cbe1c257ef714a51fdfa7a16574f53437b4ce131'
            'df0f5672b3dd61076a0d6ed0fc12d1aaf61d8ca86c9a4387a371564156707c32'
            '575a3c853a485070e5ff616bfa86510874758d9d55bc25f456a079313b6a076e'
            '6bc2776fc0f44a1e4b3586f25825d7117efd1e185f2ee532f89a79558e411dbe'
            'ba81f301eafa60e4c5d0889e9c0b77694e0194a97d471a5cc7c9586d605a4a07'
            'c88da9d002f600e84a2336e68ca1cd90172f97c7f1ed11c50a266cf7bb2e6b07'
            '7080fb62ee138dcb63a7bfdaf8b390edbe8bedb196ce97c835094b5d5d46bff6'
            '38e9e53a414e5cc6a4f409c7f749fbf8c016518d179c5c3d4cefae0780dbd7e5'
            'e18fc39a1e421c0dd4cd76d3cee99d3d730129413f0b49b0e088e818daed110d'
            '7ec5a9cfa1cac1f42713c4fd1df2a9edff5d7ef31c68a55a33edf82856f6470b'
            'a3fcd9e4afe82b24cb6f6f7632d2c24e59b83a162756e7f9073c4d840d093ee5'
            'f6475ea84f62d81c76c064c983d2470a975568e377ea61412b28fe704c746d7c'
            '7ecd1a1be51fff305fc416e5141948031759dc311d85d76c29986124f36a11ad'
            'd2587dcca9e21c733303491b8813f114be59741ef085e1ece33751d1c81e4757'
            'bf60302c2f6148b2b53daf1e1d2ade669e9fd51b5272a457c6944a1aaa0e0590'
            '2528dc6b82e0faf9aea9d370942980f1a9201fef8a647533ba5493188f62148c'
            'fe766d9ebba72f6076d7a36d9da50a72ceafd7e17ffec56251e4b6086a935f77'
            '4570088dabb2b179328ba9211e15bb53b326aaa8f65c606cd6de0e11c5ae7610'
            '868ea1f83515aeb807436e5a6e56bc55ad2b4b009cd533649aff708633b2c88e'
            'a14ba54f41d857dd4d393072fd2d6d8d66be8eddca862b1456db40015959136f'
            '186842ef5a6872632773d8dc59593065b6713e4034359cac17653d0bbb67dc92'
            '0067c441aec88466e551322dfa8ddaeb99e839f08cdf28f9aa78a5cf39ce1fce'
            '67d88af0142a0e0b64f4e9e1cbd3b551054b757091f69b0e9120610115e6ee6d'
            '5616d01722d4262eb0bbf4136db16ee812e98406ad8554a4d6738f946e95f960'
            '1f736900ef4e216e637f4863813005ab3417c2d7be6ef99db12005721a30908d'
            '77ec1de03dde8e85d6757c3af5433efb47ea5c450fe7001a58938eef6cb29800'
            'da67a3a5cfe9b00664e01b259aaf22ec724fa3cf2f7ceb811f0dbb0baccd185f'
            '8d5e58f3e91e5922d1d17380510fa97cdf7f890f53e0e696ad4e5784933768a7'
            '6f5e289b9d192ad4936ecd8269102d97de183c4a32d4f63b21b8acf6c1740791'
            '98287cd66ddf6efc35be4eb2b46a7c99f3ef68818fc38fb19865ed17b49fc10e'
            '3317c33aa737d91e6d08a31c3f6998d09e95bd0b5a30cac4fb667166334e14d0'
            '8515fd8b195da34179ba033e2cda2ff23af8b10af0f02f002e59a9869e1cf0e1'
            'c34175cfe2589b148ccad7d00284aeabbe71e012981bf909d0b6fecc9ee6a8bf'
            '42b9a4164f88a1dc5ce7d316c40596cce60954e81a29ca72d27f28ac9302501f'
            '479c7f832e394e91cf2c13074a8d1c1bf016f1d53383d2c89d88b3241c5d3c32'
            '0eab3959fa4cc3a0fee7c0637c51f8b25f09867ad5619b7771c550b2649fd082'
            '9a9ee53a5e841398b09babafe11ac8f1bc56d4e181ac4a9ecfb3d4729da4fb61'
            '077b94f2dd3cfe780d2a3c567a30256d06b60f2285257d003f355805b545b95c'
            '18c47711b38b716ea8969e5bb7e482dd4936bd49bb490e884f118994237a171e'
            '1d8f03e58e036eef273695e1e73ed7b8a48a966a88c8beb5a4fc9433c8890a54'
            'b8b8c490e4b4b1a1fd00be59f094737a4d21719510a65ca7b66128b879c7fb1a'
            'fdc4660537b9328d69c588260b2baca7469b597a3db98af9ee2a75c94c7afa35'
            '64dc4a5a44fe1de12370d4868d9ca47dc9e23590bf6db041e17b7827a21e0cde'
            'ab94b3277c7158bbe3fa19ea5105ecc5e66462e7e9cd77b31ec7ec44dc5219eb'
            '3b22304749215825b160a35dec7d71849b36a91fce85eba70be88aa4c04e181a'
            '34ca0b1677c27c6ec16202fa5970e4c30602d28e5eb28becb3508ea01b98a051'
            '49dfe799e5299f549e85cb9038818213d190a25616a100d4fe40844b75f0b574'
            'df5a4be427a3098fb4cbd8e4e0bccdc084e59ff4ddf6d500076c2d81b9aeabfb'
            '32b010435aa6e1695e30965acd01b731318143d8f3a8bd759394f026ece999c8'
            '319cfecfa2336c8c2f5b597fe65f1430434b2b0aef38a85c085075e523bb6de4'
            '7e8a631919720d6112aea780f0b3bd7c04649dcfb1db2331fdb32a6708a0243b'
            'eb20d54ffd0a1cf600755302689ed86da155019276cf1b2ede0f707650e7d20f'
            'b02b4ad74172eeb8c9e9ba6d7992a8da3db06d1a353d2f32ce47e5dd658277a3'
            'b8b342931843324b56963b15d7d23bb3eb0e45777e4404c49d793e0663cfd211'
            'ea3d5038eb9ce47fa2e8b4aed0ee009ee8174be6112aaceefb9703aad2a20e9b'
            '350187a0a12c68a56009c0ef85ea9c72a2cd2c0986b8eb854c95ffd40a77a9fe'
            '729cfc947d42c70084498307e4ef07ad2c179b0e221e984b58a27b2e7fccfcd8'
            '7bb9489737dd4c4f617ace8a2a606b2a4f247d02c8bea3cea351e6e43a54324f'
            '12eb4b62f45609e7e84e65840484495f752f2c0894c970c812ff2af3f383790d'
            '310a5b5022d6ab249d5e0379dcc7c60bfe5e44e4e89399648e1b6125a078b63e'
            '489b4f47a78112586125fd8fe42514040b95368cc76c59b5851f52d599702a7d'
            'a00ff54f8e0d2d2f539cf8fcaa233be63c4cd8a61bb92744fd2b475b01806e55'
            'b5d03159141a0bf0c044256ee7fba07b43c6237c7c796d1d0fdf131e08700377'
            '4e7ec27f5a84fd74566bfdac7eacd646cd2de56ccc4a080827d9d9ed921cdd04'
            '95a9362875aeab294dce7979d7910a32801c39c463b5904448dbc25e578fb50e'
            '5c3ed09fffcc412b57147d4c6fb4c76f4c63f6d00761386b9ebecdd011a72f05'
            'b7793f762f31cf03d091d52c46d9c9b88b3e916487cab11be18d526827c51868'
            'ae98ad27b0fecc3b5541ff9c2a96c7d1ffc2b3363f88c72e25d3c1c492552702'
            'ca623221853e6b2653845c26b8428a419b330047497f94c277ead6edd1509250'
            'a009fe47230fb5bbe4fb0d5c039d0d3945dd6dff54f56ef7208b598e47dc1c4c'
            'b03d3b7e49f79692a4202c6e70b6302fc796f72fd58ceb523bfad13655f21c6c'
            'ed63ed46107e7202300d2e0f3dae842d65df546132314c7c0e7ce8f699f87cc8'
            '36356bbe170e6a2f4dfd45f59852840250438103e21338970c2b802dbf8b9c98'
            '4f1dfcc89e2332c957d0ee0e3b812ab329ac56b54c66469cc0a3c83fc5b3f601'
            '8b1e97f7f9b4e281fcc315c15a8a32b2f382178326bd6e14fbee283d5f91d9ab'
            '65fa3fb4411c010760fa76cc19470d1b08cb749ea8bee07b35d3552578ab3926'
            '3ddb881617b6c01e0b65b3ceb9b455d82a990fc30aa35c26483066d23318b325'
            'e2325edb162bbb0ca88d2fb954fe9e13d972cb816f738e2f450485fa7a6775a8'
            '7351a873b87c84ddb97a5ecd50f25287250096d50010efef05fb1b2577d2bb7b'
            'c5fa633f5c0aad288ad999ea431b581245a14346cd894f5552786d4de3bd0c7b'
            '65f83b9775897a6fea5c4338f6a00c09bb5db368e332d0690e44d3d603d83f00'
            '622538285af1bec9b1622b932a2179ca03bf9dbc21b82f478d60e568d155c886'
            'c626ba891eb4a6a6517eb39f1880d02981fa3a52008a99871958f0a9ae7c830e')