summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: b75a0171044c0fd582235334ccebed03498f27ef (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
# 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=39.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')

_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,etc,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}
  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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
            '917ae11fc1f976e2ad1bd52ec55a724ea3bbfc3a0096890e458ecc51b9a1ebf6'
            'f6269f3bae576c01dec62f53b58ae736852137bd445471440fc85e26334824dc'
            '4e5137ea0186cd714ab46115d1ce7294757d2176aa1b5ac8d66331b60bf381e4'
            '22625c772d18e0fa3893c2aaf122a51704354458164eb3fd9d71dff9336f9a03'
            '984934d480506f53f88af1c72f03eade75845d212bb5a582e354f83fe1ab4df5'
            '77cf7eae203bcafd808a412df24374f9f8117cb7352b1d3ee13fea7ad417b149'
            '1c2fd8f725102bf2276a2a66d11fc9ac2b49862fdabda7cbb4f68ffe15cd011b'
            'c653aae7dd0dd0d3a5be1825a6c3b66e88e6ab241820b1b5e3f6ef52b2c1d9fd'
            '6a7dba4a352e18609ac72facce28ccfc15e435929c74892e0ca2130308af5a53'
            '39de03cf67a7dbc0d43055e01e4032b3595fbb141ddcad9f7c29538f5eb8bf78'
            'd46478ca119f7e69276af994ab3c3db6a4bf8799fd2cba49b30b25cf53daa47f'
            '6704afb48f3cfa00dd8010694c4cb095bb3f1352ec2aeba70b02f813ecdbaccb'
            '770c5f7ee71b886c7f8974c400ebbae855446f983e3de3168aafc9143b4fb946'
            '0eccda364422005ce40945086a598b47ed6196571eec34f5d8765259e3cbe3bf'
            '6afc1b029f2721e9465faf64a062ccf2b61765e2edb1a922f4e883f8a7904ff0'
            '42d311bf8f7a600e2def5647bc2ab1b7fdf4135e51818d416e0c359592687c17'
            '6b77f1556f4c258eebd99a8f4486147aba37dd7673264758e9bed1f530d6b514'
            'bf29673686d3b6d2fe98681fa6d1a04175e0d68dd8f4837a71a5c93c6ea4d306'
            '534e57b1d996a0630c05fa09d283945d1eafdca290cc8adfcc8730d9459e2ce1'
            '1ed3d9dbc1aebf1aa3489efc34d570aa90bb218a8b25c896a157f7986d7e52bb'
            '63a7a1ad83e5e4b47dcb6b757de746454bcca2b8385e856615f6f3f762cb0307'
            '28310a77f3b4c691a7a580b39381db53ad09dc8be27e23a55171533745847058'
            '7b3caea5f37e48744bd8b58565253907c1d45a2c90d7f5c9e240f65645291059'
            'e39c4e0512dfbf7f1a1b637dc7b3704dd3e6ed9b697ea114d638a12e4d2932cc'
            '9472bda0060414476818fd6daab4fc57520f4414551f0183a736799ee0d31f92'
            '46570e4fa2f5bbdc7ec6f97abf8f33ea7cb62f1ddc10e07840eed990d263e15e'
            '268f884a507d03e94dd64be106d9521305f505c955ef69327eb6b18bc8acedf6'
            '55d2cfb2ddbbd234cc2dcd0cad7c2c76bb38fe3ed42c6a23978a0564b74a49d0'
            '1a835e853ce5e554ad88c5d3f05c98f58a87a2d3fcbbaa45465a2bcd9b16c1e9'
            'f372d78d160b24e12acdf4fd9cbd9cc1945cda9eeac51c58b94bb06b1c3fc8b1'
            'cc539a9a58b631ea3398aa212258504b1af3f57d43e3d251f1300a1f09d03a17'
            '330762cf58ebb05a461ad640efe46a001b3abf1e371292719e405b16c970bf2b'
            'dbf3f28dfcc171a3bcf3f9fb563fbc898a3c226e7640f7ed5e00250d28373175'
            '081a9e81f129de4e0d7ee93a1f1b5d5963cd3c327b41854771981627213acf25'
            '7389700490bd83583347a0b4b96f8e983ba52ed604e34a307ce4171c0057c863'
            '104b0d05ba00867490de48a52d28469cfd8ce9553404f4d1020d2e1befdaf49b'
            '15e1985d9749a51e2a049e07b97674cc24694d27cfea8d26892fa9da81e1859e'
            '6754a3bb1fa63c26221f32e01642768bc7bac3839f403cd4d717217182e3cc02'
            'adb38b26438da9d5d44c711d7210f6c442961d638fb84aa7c0c322f17d12139d'
            '256d3ddefd879bfcedf9ff9b9d1ad2c852b99668366e6c9b0ce2520b48f261f3'
            '5ebdd8b1bf5d4395dbcf53140d222f75e72845fce03a93e721247774cbc81a35'
            '3543de4231ec0c2cc01923a0d94a41a1d987c1369a8e643ff3cdfe6251f66112'
            '010b26b08aec37450d6a23043d2c352f81c9c45752742e28bfff420019ceb1a4'
            '8b81953e58d2e076837d2913a61ba2bb718e1e4f6316d5fc879ba00ff5f46826'
            '88ec31106d057b52580f3704893522bdd853df1a32e5dbe0d5340eee0491bf7d'
            '7015fcd4568055905d74da5f3395f2b39a3388baef56341788eca4ec326110d5'
            '8abb60d6ff6843f3ab609f26be2ad0b367f42a74ef116e73938c9a81421a4296'
            '357d68d77d8535b3405d72236266c5c43ea4b798570fb390ff524949a67bda6d'
            'e83b7eb93cc897f3217e8815b34720130673bdadf4ed69215886aeb2e5696798'
            '867f9559b697fb2447ca37e71e42f3ec9d9e861f1498b8f5bf8faec4812df2f7'
            '48f1ac145483531881fdd95f3a4d39e6ae207d301fe3f4031a7be9a73a6dd1de'
            '995532c4b7d81b21d3aee7deaf0024159aa8b417dd270b41e4f4a049449a61a2'
            'e99ab26f8435a77f4d30b8fb7736e865edebdec62a5ac910d5f049f6d3a2dcc6'
            'b0bf847bc8f9209b45c5896eabcc035bdb31b850d63be7f123df2c8f05444944'
            '35b47ee3d72dfb337345cf1e84a3e1c9f16e492382c7c6cd41888304cb62b860'
            '1cb14db19ce8a658df81f27ca3bcc427278cee9f8f04d9253122834153d58308'
            'fe7ba654111f853dc91651f9f8115e6afb35ca295bf1f8b6a38e3a84f9212cc8'
            '90a312470c813e53a1a524a9687154ab62f1bb86e7a6fe0779dc6dda354011b7'
            'aecb8c247337e89a612b6f907ee79cda1cdc44710cf6f92e09b70d62b13304ec'
            'c1757f9c682d172810972674c9e00eae62d593d5202ee27feb42b6919283b473'
            '005a5d870dfbdc922249bd2bb2d14934d417da254eac6118f3bffbd377098320'
            '4ad01009ab22875174beec63de336081ec444a8c3ce0a5f2a7aba30701bf6641'
            '98184bc2b03eee568e0c7eb82fbace5ac4198521f3006eb2675755fb67466fbc'
            '9e835042eecf2ca3ce03b8f793882ae77f0838a986a3fc765f6311592365da96'
            '3e1ad243dcbd1b2befdecb86fd062f75f11f62e813871d99310ab8d7e2dbaa12'
            'e4bba44c28733a487d47c3357b36dcec99ee4e3422cb933803f15cef6baaac51'
            '796df43da460f20efc1654b28ec973de9a4d49c2f7c6c15d6118ca5135dd5e09'
            'b2d84e5273bdfac3e6bcddf2a80f0fbba76ab8f49c37d38104299e9890810f54'
            '64d707020c56229a952fb3f51a676b65823de50564d519fb2c22f4562209153e'
            'bb3e8f5170286a6e0d4aa0c5d17e9773722791cfbea36ab6ed27daf217529bf6'
            '2c1d19b6d0614250ab6b26197ec5f79df6cc01799cdd4c7316147598743e13a4'
            'a499c718cb9b0bd50895d1d5f84ae0e15edb901ad43409dfce52659eb309394c'
            '5e886797c436e4e67e8d115b8e81cb7ef10bb672ab116b2b064c62f152eea9e8'
            'e7ded41881560e5ad466994ebc34e3c8f305849b2bde30fd2e6847649c696365'
            'b2c718a0ca865b482be0f1735f1cd5530ec3b448cb1869cbb45e3c14fccc45d9'
            '9549570d5947a483dbfba24a043ea631a8ecdc1c1a84b7d0532b98718f7bdbb3'
            'c2e5ee57215c78b9214d7c13e47da72f8d9f82bd550ad2d714f127b96f36228c'
            '6d178e5c5caccfbddfece737a53576a7bfd122da7ccb4183117c5395510aca73'
            'f5342875f4eeecc66b50cc05d8c689b879124984be9e03560ef45c7493b4722f'
            'd1f8732e1bece6597b3c2e988989d3faa8f0510c1ab3f9d97d64e8ae4d3f351b'
            'ff0500c343ab6617dd3d88e5a42ca1c332c432fac6b84776587f45f1e4cef1ae'
            'e37e0ec815638d63b6c0797969221db15ca52ab29e91a17e6fd363e5f92d1f20'
            '680e3f90421abb1397101038585d0fc5cd82e5aec76b405d3021ec13d173d9a3'
            '9af87f17a3b16a43d512d23656689e2c6ff8ee5518ed7a1196819a79ad716c1c'
            '9b2ab341b3b9a5f31bdcdf6b2e8a661477b1dcf15cd830f8b7cf2288c23f4295'
            '41aac09b324b3cf8239d60832cde22930e0271de7129f49d13702467dc6bf285'
            'af30f99754851f689b232472e28c3c620f81dc4522f2c0c0eee67e56f10d2dda'
            '21c9063da957f43fb1570ab8a47818a732fa82fa924f7150a7362c5b641adab4')