summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: eae47090450c8b793237af2e8954c8a410ec8b21 (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.2
_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'
            'f926b0dd3630ca3ceba89c5977ee9d462e4447dce5395af23f4886515c2ee1e9'
            '490d6614f0c564ae2098cbf2adef089cffa00d4f545e62b7e0c1873d4418f49f'
            'f714a9237b7df11e316c245d5936717f7ad39fb64d470fde2e93f280017f7330'
            'a9b7488ca9e99f55f94724a63ece7d2ea496ac7e4341bf85247df8c49d4c9aa2'
            '30c5bbf3e9bcdedc44e1a73cc78eeaefd92de29665f9686355c67d948d92418c'
            '74ea1b1dcff8deecdc5291bdc840baffe66964bedd5610847bffb9b755283c75'
            '4114319850aac732cbcbf312206380894f261f5956aaca19271164d8b2a0f932'
            '21aec002419e88ddf48806988280e7686348b6d7f8f1a79f7ed5fef9085b6dfc'
            '7d5364561ae7d43e752962dc03f105567919a152a484fe6a1dbfb76aa2d7f72d'
            '4a50aff7d44a0fdaeee107e9e0cecc2789676850aeec8f5e4665190efffbdfe0'
            '1b44ebdb107f3f8806f6ff3b14eee9f7dc43bb9bcae2ed23458beba9b2a8f302'
            '21742333d0e889d2203eb947380c123b37e95e7286f8ebf9a8c92c4a7830eb22'
            '7ab916007465e9987030380f512f31ac383b2d5297afb7692bfebff22f02ffb5'
            '2fccbc114023ad9d798c54925fcccd3e9d258a4829758707578da4da07b0b363'
            '6083b6a273d4611014a44deb569b972a8855ce68fd3098a1c7fc316423c59586'
            '3033d9abccaa897638899da0f5a82a52384382d00ecef47787e9ac27920f2e5e'
            '6532753aaf7818061e45ced20b22f7c74955d4690230a2b7d0fd82dfa2739f89'
            '5d0949fbedebb4627bd34a8e3d5f1301e8e05f4517db9ed2830c633aad0e8b2b'
            'c3c4c730f3a8677c2eebaac83c5aeebdee85be1c101fbbe5452a13081711f852'
            '4c2c5e45ddb45f9728ffb0832f8212c99c1ee2d2d9ad925e1ab7056a57f07703'
            '9f925529264db72fb207b6d62dce34d79717a70cf4c00c4bcfcbd79d49aaee17'
            '6275f6c337326b1dfb158e9a3824c247be2e2e6e07fd093cea695074f50e4326'
            '3b421d1fb9eb3ed119958c61236fdb811b47e58cbc7bfa79a9e371048dbf8db2'
            '45e578f491b49f297e03dd4d359e9ce4f8e0c306a964d2f68d27be904060985a'
            '53a76b2739f759c390cf02a5fb70851af52631ae3e25347f1f922b1a61fc02a6'
            '7546ab70af44d171f5d4bf8656de6f67047a729f43c9696eb03f6b10b19dcc59'
            '3a20af49621fb7cbfc1363a340aa2d87ad45671a5a84482eb4770b57d3fe6bf1'
            'd35ff933718ed0be91199bc7f6f2cde4c9eeec67ea0bd38c4ace4bc759de4777'
            '44db94163b8b9033522923c4a228fc2cdd3ebbb73165ae1cac0c71914d9d02b2'
            '6ca0276684704208c302bce2ebdb4f6e5c9db8db1540911c359ab1eb4242dda6'
            '7543a0c7ae449b1a7e9ee2a1b4a36a90e5b2aef202fd3e13fb8fea1bcd0ac075'
            '14f0ad11563687d6f064280d6b58b1701e8e528d800b1fd0a125fc8f757cff52'
            'b26b02c4e5a19dd557fcf948410484a1af13c56479c07a3cda98fa8bc704c0a0'
            'ab421a8247a8512f35d710e198cbb6850999ee1e81bede965263b9c91aca139c'
            '49d8abb8ef4518678c259945e22b0c3ac76d897905fc59896192f0a735d98d3c'
            'e4872e450d2e37ea25705e4597c030d3b77cb8b37e82629be9d5531e38184bf6'
            '955d557415c3223ad61f1c2439070e4bfbc63b345c409c1eb7d09ec2e4a74efd'
            'd33642ce506c9237c95dc60a8ef34cf7505145932692fe592312d17d59fe41ce'
            '698e01b058ce6092548fe919080f3e3f6ce005f9734e53507a209e277d11eadd'
            'e676ecf1d049f4d0d5267b5267a3e029e42dd125dcadd080d61e293544cea908'
            'e11f3bc7457df248ad5fd16bcf7ac16a0c677c12b2d0df058dbadef0088a3518'
            'a382b604454397d0e5b3f96621b4afd0aa19697c774846f7f2044d68b561c0cf'
            '9c384c05674eca0191b64d52a1c8541d9dbdf88da67e7336e96bb3093c4e5cb6'
            '537da5afe3c8244b1a900318e8348463d2fd7d151a0c1222fcb2511aa187e932'
            'ca76369aa1fa53a8f4546b22af8fb8dd569408d35657d3760767b8c843adcbc7'
            '71ca63ced03e5a8ddab5444b9a204cfb46b0a5ae6d4d69645a19416608526738'
            'af16f984d3a2d42a517720cfaf210f25c3cdf89765ffe7fed6adaf90676245e0'
            'addffce2fc6a190b556c40311d6fa8b27e5b9fd84851e78185f8b03125acbc69'
            '9610e09f58aee284562cc6ff86bb860453be34b65d7cca625cf04f8328a8d6cd'
            '87bb59b5e4665075f603650eb2e149cbc83efeea8dbb58d5780cf17618c75137'
            '8a129ea2cd050667e25760f4ee1e24a482c9160ef9ef0d297d2c07d4db4e21e3'
            '95ad1855cb604f04e1222ff818e91ca7fb508e180765665a7083c7f70bef2588'
            '6215ef165d5a793a6ebddcb1a59779f78c0eadd4a5c085050b0354740702a00b'
            '055304df49dc82b9417356b808cd4ff41b158bdbef7d79fb4fe1720e37986bbe'
            'e488001ed8098fc275dc814fa5551b10c579cc130ef27b17abcb3fd99af6a55b'
            '1b60e4e62c4e4a2a1ef56a404ef9e323e9bca79b931af10e521ba7d105a3fbfc'
            '6851526ea8617c62952fb49f4dfcd40ada7a192f831665986e7b7c1467a8093c'
            '1ab7d5b7f3eeb3839b9b3813e0661fa3c1c67599ed7b67cb1e1cfde503257da5'
            '1d0938fb9df5f944104fb59ace7d04cbe3bd7ead858d8dff13cce1998b1cbae0'
            'c18e7c4b5323256f529188c086bcd7160c473edff40a6f17e4cefaddd7e302cc'
            '3915f3de08a34edfe316e2a650342f5dee7d240d5f633ec77a3785a3987acd14'
            '714cbc074f2d837e46c5a5f4c7b7bf9bab4d37a1b0981d368ba40d61d9cf8e07'
            '88703ab720c5c33aae5d6abfd457f6848b462e95a8959c7d4ab1e2a76d64a69c'
            'c6764b0184d4b624a0e7ebaa9bf4441672c52c65747b761b8762b2c62c9b2be7'
            '8c0b088a6d44c40fdcb3add21d5a3d66deb707297806fef146906f0da031d8ad'
            '433b63a3dde8ec74262939d17752336d9e2910b2051320cbe04d5d427347c03e'
            'ee4b0b31addda10ba009de0abc621b3f512a1ece2c9f7526497f906cd5b57884'
            '44687ccce62e5f55399146802972ce1ffe16ef3aa6d63a5dbf710fc004511b46'
            '6c79dd2f9daf0096d147ffad03bfeb7e58188b499380e8275b14ce109bfa0182'
            'edf250fb8a09b58fd16e697e2ad096bfb943dd1e0975052eccfdf49615983601'
            'b6498cc4c3c775d57cea501aa4a1237bbaa2bb071d63ea526ed717e67f655c41'
            'fc6819c4c3989ad8bf374212e43367e6bd764ffedaf096c07ac7a75400971f7a'
            '1c27d218300fa806dd5f607b3c25dcbaef73c74740177af5b83909c212fb39b0'
            '54f0648cbfbf51343ece7fe468c8585ec56067d1d12787551da75b9ca03b4c39'
            '07a4244351723b6dfc887d3e685674c11d2c952c3b00fc51eb5cf3b46ce66467'
            'ca8eab37eba51af6b481bf95d0105b7ad0e8d63bcbcb6b4205897489eb92f0c2'
            'ec2271a518e52fa7b601e19e33ca359197c4b173a1cba5853e84dae226833de6'
            '92525d274e22a70cab0a40d4e956514f7b258b10ce3cb88539d2b64aa15686f4'
            '7c43dab7dfb78dca1d5163d7534c6dac12bc23994d719c71a4e4128769ef78e4'
            'da42e65c235ebeade7ca91a6815483da2cf0c604248afea6da28166b7645210a'
            'b2e2affb43c81f1fe1d09640f1d736e51c10d5205484b2437783cb2a32702439'
            '67e9c3ac0d17b7a9cd2db04bdb2e28500af1db8bf7967c0d524926b595300eb8'
            'afa6d05b21abcf3e26aabb1b4c6d183538fd273ef501a5b1bc307ee02a6f5c7b'
            'fad0657668ea390abc2f18c6ac2c2f7ebebbb82d083dbc4a1f39a2652d0a2006'
            'ebae6f9442c8ac4d0e5340685f906f862ca519bf84e954d173c4885c6f9045df'
            '4e22b8bf54d1796c47a74607f1e57b588257ba46330d05882dad8c43c1a0d9df'
            'b506d02eaca42ce14ded1291e50475c8c09b15dfb68a6cb817df674921bf1093'
            '5bfc009f6cc2eeb9b17b046d743be93c725000a2e9dd00f97d66038237f1f8ff')