summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 1a60682e14f0b97f05d9ea2316fd70fbc36366ea (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.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'
            'f69491d8186674c983cbe7db2fd08ab0187d80b33a571dff544d82afc108ac7f'
            '3df2a298fe2052ed413a70a5763d0b034f662c7803c434d8b1ec5fbd25f88144'
            'b5030471d3cb93b3a9e82c4f6361a5a0c6cf39633cac90434379706592da9d5d'
            'a1bb304de2828cf0db53797c791a9d3d1e2102c5bde4b82b2601ed8f7ac6a427'
            '6a37c01d96905a5176360b51c7eeafd6201e742a01757a0d394a6f46bc9663ab'
            '2964b0028780d81058eac24f3897b6ccf995a94ef553105adce93abbdf6495df'
            'cf11618287f53930f84e5b65e7af061b7854935f2ae5c749fd1aeca19689dc33'
            '6e04c83667b4a937da5ff405943fed43786e2c75b04478ee03b8510df0186cba'
            '79ea0fbe07890c492d7162826aaf8eb556c3031a50adef12499de7276ab50e98'
            '04b0f0e04a664f2ef3e104e1e8e3c120f60d57209116e0bf240d04539bee0eca'
            '36766b4d09819eed3faee57b90770c885b52ac3554f475458d64bdc883ba3326'
            '7c47f0a7f92d046b9b0ae1f41e2f926e007c54857ef586a1e14d1b84e11e12b1'
            '875813e7841a56f7c0bc32d53498531d023cb6c23a19df1b5718d6a2b66fb737'
            'a2b4b4e1f582c81f8a8bc4cd365b1b8d7b0d1d31d01c55680009e5eb465b2324'
            '4e63239ec1e8b37f71c4ba9bd7f374758df78c482be3bc0de648af6db4569a38'
            '7218bc01c9ea538ab785298f7ee62334f7bb48d05600d4e34e2d90d5e8e0053b'
            '106e29a26009f289adb9f963b2490b6191d6aef2a2d4cee69cae2e74059c8623'
            '81012ee007bae4045d2212039be8d7de0a9ffe1f0bccc7bf138cace7db1627b8'
            'a05029ff0706a5ee9d8d514d5db748d73d893518740ac5521eb2ade6a2b28c2e'
            'a797a1d59280cdf55f1ad078c4678a314168dcacc951245454ab30a508d7764f'
            'f205bd198f398c820e7e8656681226bf1bc705ee685d6fd4ffff1ad1c62c819f'
            '2b5f2e8c4941ac913160f4bff2ac19df1bf4ffeb92e826aea573061be27cc783'
            'ac05aa939090c7e5309774f6050f0dc248ab1050c2f2862bd5df08bc96eca27b'
            'af6e935a341f052a199bce6f47fc31958f1bb11c3de34a4b307370d70cc4b5ef'
            'c0b4cfa025e47eba87aa4bbb84ad0189fe1cc913c710931a644b1bc430fe6cfd'
            '4eb25ae58c5e075cbbf24b6ec0f54e4f20e0f30fbfa24eb3692860cc67fb4305'
            'eaa4a553f48062a6937fb30152d172cb6af568711ee869fc454548c7cbe97f01'
            '1eb9da5507a12af037dd12780ff40b5d9fd48aeb3b2824c676bd58c117f91864'
            '05981fe2196669def62e301b5eb7a0e0df7cf32df42427b7278a672675d8fd05'
            '7c25b4951b2fdd4b7b80053e81b45945ecbf1bfbaa6eb579c66b2e5baaa7e6db'
            'c7beca6223e47f613cc1fcb392601a669363912c2fa99410cae0b7bc6c0f4daf'
            '49e40a42da0c19124c22328c14d5f34a5248e4b3d4405ba28847171f1dd2b9f4'
            '6e8545a0cef555fad197884db0dbd4a18a1863bef87468151e0286248cb99318'
            '63cf63970667c855bf1e11ff4bb342cbb65a92e2d0aee5897c9a78104d531120'
            '7655e9e88e8bb7643a825e0b8552be46fe31f2872f12b0c2655a6b0a60d8cfa1'
            'fdd785e76d900b5d09474f255a0ddf9ecff1f8fef907a15f47bc16371ee0993f'
            'd07750933b097bf83c09f339b1cb0e8b3fd1bdd5ac930e10c7d0e96c5c847828'
            'e8cf8898e70810ebeeec21c6681fff076622eb755d172eda2904b782458e91e4'
            '09a8d02438a9e4f5c42dd0c719c9a81f0e3dd36fa35b20809bea5d8fd55c5081'
            '32a53a76595578dfd2a49467a37ffc8b3621a47d6ab4930b1561f56793f30381'
            '59a4a5c1b9c394bfef9ed5a1f9ebb54a034a4e2c3adaebd85f61ce4832c947c2'
            '67a9fa309af2de3a76dbeec416073dc785c7c80952d8957371143463d1231c71'
            '5aa144306fd93bad8cdef4f89d0fedbc1e2e8a9e1f4276941e44b3f0d81f2885'
            'a8fab00b100b5ca1ecb97164d41e6f912373fc74eb50eb4a09a80fe5d3de854e'
            '452777c255623e76e72940dd82a49fac47a9cc71c180cf6096df7b472221c3ad'
            'fe4307974b395f41fef42bbb15486098bc75bf2fa40f847009b4137786ebd9be'
            'f30e2a413b46f7293f55d6dd93bd42488b03d55153d41c2c6b7dc68b727e5a53'
            '0eb9d7bf0aaf51f4d6d7011f4588b25490adab212b41266385e71fb8e86b6b43'
            '959a60d350e20987d8e3a130d0364fb7466fe1d43df6b81a8d4c63be15c3e9f7'
            '691dcfb743a29ab1fb32f8e6e826d66c54567c0581207ddf87b5b09aee4b618d'
            '642af5e92d0d308f40dfa5e347192d003f602f3481a56ed9a9dcf95a827a30c4'
            'd8bd8366d99bf865829a967505ebc0c1e67f88c17541034e199e0de80413af31'
            'a951d6080c48e57c10b8d60964c9e103b46d283dce851ad61bc74fe0c75e15f9'
            '5f9d49d521fa4618f914f084bf527b33b7f2220b092335e35b314ac64bae057a'
            '65afe975fff4ffc413a358ec5a33a0c9371665f7be8f2629f67184564892ab74'
            '00464a3e551e36f9712e99ac797de1d9b0214048f64c73b757d6cb70a5084a6a'
            '6eb4ee9f227711492903f7c61b2bc30d797b215e3b998ed1c49ca969b6db54a4'
            'c430fa1862c4e464df6bed9dd28f83c6f39a01c3329b067dc961f50148b3676a'
            '94fcb657eb8aa73389732fa5bddd0958c4034fadc8cd86774bb4def4a25cfe01'
            '862075f42515275d00bb7b46fb11e8b1cf67617ffd664f32ede98c5d4977ef19'
            'bfb5425b8d02a88cfc4f1d88818a084cd4134c98355d7ee2dcf8430975cb653f'
            '0f8dc6cfa53bc5aa5d0d1ccde025b6b255ea2de1875280a3779ba01cdf8143ae'
            '84fdc92faca0c96e8c91b5880b4d437a18eda579c7a3e5be464e731fb3d2ae7d'
            '79ff4a5413c070e028b93c7a753ffdd6f3db077dba698833356eb9cb9d58853f'
            'ee3dfb6fee534dd687f9cfbcad57ae20d030ba18eade4b7be7b02d4a23c38d43'
            'e34b001b9604f16e28cb33864bc7bc434488ec485827f543a12a6bab60e17d6b'
            '6132d6e400c80d57db8060b9aa03b44c821d1941c7b2a2360c85127dbc863b25'
            '1ce2410c3a4bf3ea78d6ff73e5745c7f8558ce2f84af6168c69a2aaba648f1b7'
            'a199f98191a6a55c1915b657373e70390c882ff1d9ffe9d2a23ccfec92f16482'
            'd10ef48cc0dc6cbac5ff0a5853cfb56e4ab280e77f4cf5565a0a9ffcf6a23e15'
            '3787e2715e89fc5480577c2a50799c4bbb1efb39cbf5e826138406b8e305aa17'
            '9ccd27c6b29b4e095c8a35b6789eec46a135023b11bfc3414dd47928d020d886'
            'b4b422ac32933c79630c9411f8f7760400f40158138034949dc1e3fe7e09746a'
            '356d1baa6059176b69484ce512dbcb61c43576c32e7a28e57c9565da1d1d2a3b'
            'bca9007b570585e7a5c0c4eeb30fb1b30b1623808c09a20ffddcd107a84eba5f'
            'e086ffc4b6c95a86222e880cfd74281049725bdffa051663914011991db5a5ea'
            'badcc49f07db7b2467cc1eb6dd9f58274e4badc091ad62a06b868da7042ae9ef'
            '8ccba14c9eb91e8e37779c1d3cf4f3a0538a297792b1eb8b50c253bb99cbae75'
            '9cd2ac942693438dc09e9bd16a290ad2efc3372e1c50023da0456a0435f96a37'
            '7e2465564029c6a0a9528cab42c7cc8f476cb7157d8cdcda51cd8f9450328612'
            'fea27bd8d75834cd903432f6d8190d88eaedb6647ef8d5c68ae8e54152e5de1c'
            '1040dcc71c6314645232d25be6a9aff10393efca9d4f162c4c69ddd137017bd0'
            '44335e985d5416ea5a3210d10909f545fbaddbd82bf537f45fc59979f178311f'
            '1c7ab14e4ec4f68ea5fd1e092f93ec9eed390bde10f72a77d75fff2cc81751e2'
            '66bf93a9016edfe611dbb88b059e88251e65a587779ed57d57013ee2220d114f'
            '2a7fc4295fcec3902a49e7b68b951802b9ca3bf44d48451bb8733bd146b99b8c'
            'dae8e77d72927070bc5ee4869db734fd44e595275688b70a5cecd91f2409a42f'
            'e44c1d852a3b6de4d4713b5a0db6f7180b310b0913ffa29e2d43a8249de6ace5')