summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 578a48dc55d087cf71a14ea2794e547a5edfdd87 (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=38.0.1
_debrel=deb5
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,,})
  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'
            '7651ef59153c11b01752dd7493571306d462757e6dd10c6124bf20bde3094c2d'
            '357e06999dd45680479b4b2dec29d46bbdfb3358045fd5a4d720e2b57bffa24a'
            '25f10ecc22cac08cc967e4755408349e206a113f403cc6bcc35b1427312d3384'
            '1fec5ebeb5ca41a494c1c9b2d0ef72516bc019119ecabda1e2e38eab7676dca7'
            'd30b7fc3581662c3edc3ff442aa4ca602296ef824c5b8e1eb36b080461d2329b'
            '0917afb609c742b89042d283a970f6ad8896e82bf137eca1766e5cfed6ffe248'
            '5888b1bec4cbe8d865806be7762624cb8c96a2ce5eb6c85746bfa40b1bf2962a'
            '20c52c133d284b354321f29536768b5671b4a837d8358fbb0c8c38ae59208728'
            'c7d854b72cf49d667c9d27078c58e4965246ffe495c0c6c1e22445e5fb40e2bd'
            '6bc40df96ad9f464a30889f6a52ce2a80b1e508afb96ca929fe5238fcb483928'
            '574f8303cfa0aedc0a991619efeca077237e36ee79997080ddaa3c114b0c6c86'
            'a93b3f0d9cae0b4ccb5c37d4b8be35d30b23a47dd1f67b2bcdd976a58222ba98'
            '23ea257afe431ec166f69d2463bc9aeb029d24a16d2201d36ad3ec2341725f0a'
            'd74104d42c2a347f062b793347785c2184c47b4b14afe90ea442b15b1d1df331'
            '25371dc232871a0e84c07764fc136e2b9f78b81732635931fc550ec04e046f0f'
            '48878b32463a1834caab502f6368acc65c7fc544c653069c519c90bd9a82acfa'
            '1789411c2421f03ea6cae589a145dd12507d428836de345080be1ba9e1e4908f'
            'f87645a4bba617e34b474563c66a47a8b16ef1dba8d44fe1af8ce1f1b5fa63c9'
            '0422dbae98cdbf2a853406d0c30a283f55486e5430520b27a4c0f7b02f32378a'
            '1b2327d1c5e4a2c76b88f535c892460241beb20226099b42ce3c6b2c0cbe1e2e'
            'c0c7df7386eff6b2f3b5bf751bf4b44edc9ab51aa41f9b69cb52b2a06d432c2b'
            '99b0d6cd23dcde78fd0b3b20ef2405408ab378c426c5a9601dfc8dac55bfad04'
            '4e6a80d39db82b2bed082810b6bb2f78fde7a097e421b67cc2db52515b71ec1f'
            'cb294361393573955fabb5868c9c4ad7ee00ab03aa0223116ad5625022b18e92'
            '1f80538457e1be8c87d85fa27cec123559873f37d5f587394f1e371663beb079'
            'c57f1c17f5d91686fd46d5496bd94f2c4f487f3318d52b2e9d2b75bb66ccf0be'
            '386e5eca99d5968eb42023f7efe46da249d245aae8af2e208ec2f09acca26ba4'
            '4fb151405d9e9f001b82da16519e1af7bc40a4b0fdce30d79f8b8c99fe2c5440'
            '6df0f249bff3547ce177f0dd107d8caff6406bc5b3a643c7bd2f67e50dc40e3d'
            '5f82e09cb57e268bfa15a9907736244140e90c3fd724088a32335c255452a94e'
            '6ac2b278754ddb15ee7078d7e80db98a35f5ef1503e59fef5572821725bf8158'
            '1542f58810734bf3b6038052b3370a6a6002ef9d531152f8b05fd99c0c1cce3f'
            '417dc4f372f02dae50fa1defa75c4d534c1b372b5f35c3ad5d8c0b9a407aa4eb'
            '390e78923d1ddb9d3df3496585629305613078c5a7e1674e04fb2dd1090db0ec'
            'd6cb39bf53b8c9b8c2fd3b37916ea290ba1efead3ab04d89e692cfc814e28fb1'
            '8ea2555cc419f8f5e3069d38a27eaa4b564933fbef9a9e11950eabf7d566b369'
            '41f018199800ab1fcef75ada8406b02524e3737e4d3da0f5f2f09ea8b7e9dd5c'
            'b298c6ddd9c59b472af869798d87fc97ea6a797749c39888abd054fb17d217aa'
            '22089755efd450bf079d956ffcd5dfd704e5c3b1d938320eb5a65f0cec5b7ca4'
            '23f062b42f93663aefc2db4bbde3a66c616c9af91ebcffe8c2b7e8144185ef98'
            'ff738080110ca29011744f67078770f02a14e0fe597b853e30f2876b4240901d'
            '90eed3487bec35547128ec53b468db92470ae7fbd00d08d6c3abc61aac87fb45'
            '05a8898259714ebcf519c0a8fc1e5e9a3c557e88f7b3f20af62daeb4b1b1ceb7'
            '880ad4f72e4dac3e4c8ab6da87cf82c97cb553727c6b5da65ac1c6c99cd96afc'
            '7da23ec1e8213b2781b41449ed183883a1ac4e0f92c657eed13d979556405de2'
            '769e0596f9611c03e467ca1a367ffcf01c59d39e956fa5a539af23937d51a08f'
            'd1488fd394711ca73fd2191869b66fbf39851222b3670274da3aa2e6068fef47'
            '5fc67f601553c47b205a204fd884ce4e3ecbb1989ae72e38edcd0fd294f68fac'
            '869ead6dd5acc66dfa0b0610bf5f674426b9ad103cfd4c86846a2a017f5b498d'
            '086daa1c8eb317365c8a46c3a7deece29e7a8743c456f5d61f186681835aa5f6'
            '11fc95eff564042f0800402903453a4b5984803a649ad7830fe29a82a126c2f0'
            'cd787163806418411a38e902c5e5ac3214b181d667970fc5da36a2b68403d515'
            '36a5e783ec72ee46aaf6196b785a9aea89d140cca68dd98f570fa35c1ab25c62'
            '1d127b2f461cd1689fd2360b2188bad295966cbb272b3175ab549f210510db54'
            '445a9ecb81f2652fdd799d4016e9da7784b7ec3f8afba62066f17b1317fbe551'
            '54ce94e08da2da1381746d94257f0f62142c9c3308e792d0728c24578d768a2a'
            'ce095d7e5c1103eed755a19d0f6208a7a52fa9d6d691865991373f229a87db2d'
            '2bffc4ab6ef20d8f23803e92fbe366b55968154c2141bec57ae755c364afcd91'
            'fb4088e0d30883374c83a4127f3a8552eaf53b3f57add12896ba4ef9cb77afa2'
            '5cd080376182633742963ca5c1d0c26d0ddad30a3120b67a558f608aad717da8'
            '10f41688ca0fa52927ae7bdbfdb450eeae564975b48db18507433306059a0247'
            '857f3c3ead078d48aec4cca93464a672ea42a553dbc081da45c357db5a76f395'
            'ff53000de910c77015f3aea61d884e1e2b97ab705bfc57a70490970483bd1078'
            'a284835295b7be812709bb172686893686f98c544b7f0165459805be38ee3d45'
            'e649986950bf02ee40ecba558816f467abdbcb1f93c2bb99ba1ee9f1143f7b00'
            'f8b8fc65af84da0395d684d7f5dc91cfcdbc3ef1c305bea74bd6b92f1716477f'
            '10e5956b02750838f4674e8127dea7090a4beab255a52b30a61b9cb9f3373df3'
            '7da2000b356ea4dc8ee459b2d64d42d66bbce3fc813f636116636623fbc1b18e'
            '434dcf3a335d2033d17f86f0ecc1e530434f726e5e2abf1936fdb33701068a6d'
            'd8126c971106012ddb8c0959c107b24306a4e416e157ade4593b692717df9bda'
            '184fd73de00400402dcadf1e953f3085458460c3fea04a51ec184e8042a27b5c'
            'fa02254c581bfc3d5cdd0bd8f9764bbb3f1f3d418af79b1680e172d4686f918b'
            'c268ce836ff370e83fd0dc5d06fbc06b27cbd212126adeab602adccf32d64571'
            '9b26d3fa841b6a2edfdced058c6d4459b1528fc1cdc1ac6d5a98034810f2dcfd'
            'b03010926bb052a11e43492dc65d8bcef9c0a5e95fde14e45b683efd51132e50'
            'dc02f908d0cf2d96e2f763591ded9afe0d805cb68eef201ed6ec1b793f04dd93'
            'ca2685262f921d1e67fcfd68beca709e6615a7c2741225d74db1f43266e1a9c5'
            '90eb5bf549d138b0a425e9b111709c6df28660685041a56da70173105f87064c'
            'a67545a78ba3c48ba453bc087bf0201198bc43a4154203b2eaa5a2226b3b45d0'
            '64cdd92748808b674b83005d4489d660d428fef9e258bc90a04a2effc1683e1b'
            'b4219d2f2464732fe399273a053f032deb1ceb2d15151a5223656f4cd1f8859d'
            'ee5fa4e9a99afeae6d11be3cd854298377add84d01286a5e244cd74189bcecbc'
            '87d48c04f74d189bf5010ef639b9a3e3a91e16e0f97936e4f437af60b4531f9f'
            '73ecca76b0223c49b1a47eed749f4b9d785ec7a1db02b60b0a90236a2c10fb6a'
            '04ad1655e117ea152ff929614af70e1dac879f32dcdc1ba63de6b62dc979ac53'
            '1d916c363bddf4c9c97321093c9cb94e9b387a083176ae48a8a4b7eb6b73c576'
            '692c191b682197d844bed688eaa2ee235f5d12e82bea745313fa5993391aa646'
            '98380f4193ed1dc521b9f215d4f3872392d9c9b00c023a776328d4b872d5f3e4')