summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: eca94d9d45ea59a7a61d9683aa44019ff12c1969 (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=42.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'
            '95a8d67fefbb834b9dfe0d1d210238305930d52948c410d0ff5bbde1f440a06d'
            '4627cfd4c0202eb27950bdb2d0df5d3f097643cc5222e7d1f8e6d8d48b871689'
            'a5c4f6f31358fa5179968d8dada746c36f675752a12b3ad8257f78aa6b5fe56d'
            '2dbd20b906fcedebeb96e2397d06427d66e299143e9e6d0c79463ad6dd23a553'
            '26f6207b49cbde0ba2f1aad2e5a61696536ba6ed93e24db7a46c98756f1f5ead'
            'cd1bb08aaee3907bbbb15d22828be983afd834a6caabb6157081802133c9f10b'
            '9bc0dd3a6098a93341f2daf1e93dedcfa1649b88567e06a6df8514d2df31331b'
            '5cb170c8f1014fdd35cfc655680364fbdf0b8a35a7e70fc4bcd22865c195b03d'
            '9d34d99dc32ed1e9c6d2e0c5f93423b6d15d1bd0a725f97d5a83f87bd31d136a'
            '8f654df54892e71b9e4229840523627114076a89c29fec956dcf0ba0c8e3c839'
            '25408ef71a70e4dee064fedfc5d5970651ebb2556da79381f171993f769d7821'
            '4b07eef612e4a3c087f6d7d4763c48f09bf5a45f9b2d18c47e286a8faf70c1e6'
            '5d79f6beb63494b855f845f3974157763634f348c01dfe894f7ff00070153d64'
            '185164697bd3ee43d8f2589daa5b1f90366a4d75288b659ca845a5fb48488fca'
            '562da2dce8b280851424e9647fa089ebc33806393b9b3de7efd8e81e7d97ea0f'
            '65975825802f144e8fa088e109cd3b4cce90128aaae86c78fbe239f0ed87b569'
            '7db16dd8498a037036ebf81b01dc5f9381929382e163f44bd75556dfd64f610a'
            'adee70364d29f65194003b9d0aec472398b2d70f462b80770ec3f9dfde21587c'
            '67ca81bb67ac48fd1eacfde067e935ec4bd0a4fd19e85128dbc26b37a458bf4f'
            '74dc98c943f358a304b25285930248aaff1872d7d3ee72e3977650edc30a5127'
            '0127bab9e6d717152d4e9db6b62081bdbcd729c5b61950fb047b3c219268ed6e'
            'd7b49f9a5b21c53cf2a2448b89aa7123e35169ca15d4d813d13635ef8ca8aaee'
            '8bbf19b119cfb3ca4a16b30d3368935156af51e818380d48559aa757f3807833'
            '71a7a08784676e5619e7d63057070846f8c19e0fb917a7ff385ea1d1000aa42e'
            'e85d9abf40549a075a9ef3ba9acf8b75c27b6aaea3e7e1a7102479d098882145'
            '9034d76414173c5e2d92328292830d01bbd9bcb75bea82adffc872616645097e'
            '393ca2e885341a86aa3e567217505e374b59bc4b73b7f51ef361f6383b165929'
            '7e55bce3cad6d9eda564a9dd8c76785e811a16e147ce8f78135d2c4b10591662'
            '19a916478001da9bec5a2fa920ba8b48a0769b1347b07cc0c5de31276a121bb4'
            'ceac9b3b6ba6cbbf3786396b6f5c8cabe64de4205228c3dc2f9b9e1041bb56e1'
            '4070d63e8d957b24d8c23726a7ae825f38b27e798727a115b9ff39cdf7d7bc58'
            '1cf6763a8154bea9b8cfbc3c0555fa82ef2760008f0e4a9b597beb6b17078d2a'
            'eda80cdb42d689dc51e1e5240c5c02df697fa0d062acc60c8c32e5ec29d4525b'
            'be2aaccb088823da25fafbe4b7e1428897b09527233208cac44e267e2e9ff294'
            '78726365b78766cc6a0325e4af3b73fa50555256f05fefe6a95885bdddcab90a'
            'eeb60150a00ac9f2970aea47cd6df25ff75c449c6a49905384b921280d66184d'
            '90f2e5153f8b094c3cf2e76dd2c218151f55ebc5de90661207101ff20df90d9f'
            '4d0c2e8a805a90503dcc2bd70a7bbcfe5398a128bd274d5941c36663c739d042'
            'dccd5a5aabdec5f31dedde1ba9963ef1792993ba2c2fcdd20acb29eee57f7742'
            '1a4e9e99abf8ab8e9a22c7a4d35c635894173ad0b8abbb58a2489957dd833788'
            '4c016ec64d7c58afba644de8780571eb0986fbf30aa4945a0d6d307bbe357866'
            '5db820793f221ae7d46ad7aeb8ff985db1d1c6e8c9a055bf78716e4db66b1b04'
            '20dd9563e3c021481b07206d1d651ee4ad39c66584bb338d2948651005c48ea3'
            '16edbf532dfc13835810a539017b35b5e14c506d8c9aab9816a3487ea57d2345'
            '8c31a0623ffce76173c0a419f9b81681856475eb9290e6d60354b1dd9841721a'
            'ec4ccd754896a62575e821389d5645d7dd67790f0fe91a89edd9efdc150d2dd4'
            '337567b3f21cd9428cca0bc5056c3253898b0f0cdb76d1ee461075661cb963d2'
            '0e91d2821c87ef1283169076dd1f76db69b6e8d439414f1eba0d862f3884bf88'
            '469650c5d01dfa9b081332e79414d552d861a05f6fb35415d66de5269816f09d'
            '7daf7be47a2cce7ceb2c65e16bb6c2ff62975a1f4b27a3d21628068666151718'
            'ecc6d6c26390f089b48ff0670a4d0a98bf99525733e260a5210f27185b3ed213'
            'deb46e327031c5415e02347372f53a5e944f441dadec8f57f0d0dfedd56c21ce'
            '6daebb2909ca769856b0ae00bba59f29e14912dbcef69c3f99b92fb0e1ea2a25'
            'a1cad4b9fd56bdea57884403794b92afd0c3bf1d4586f0cc92ffe89ddc2cf14e'
            'ea4e4ffa7ee34b498cad9624e90fbec268cf7886aa29423a4279839eea4fbdad'
            '23c85e8cc6cb3aa2bb3d304712d1bff3ea10a091b97c6d63aab4714c77643244'
            '55d83debfac1c80c839970de639de5a0b522d8d843f8323cf5cd7548100059df'
            'aeb31eb2c0c5e56db7a984de513c823678fada899b155ffbb430110f79965320'
            'd854980511a75fecd50949a67f0840ac7f7f89e98f1102438b835040151ea8fe'
            '2cd18c741457016714d50b54f452e27ad85fb3b7b1e3ec44b0bca4fb75c0a697'
            '4cd5a890838bfb90e13e0423c4a50ec33c0d830c971fb61679d69afc4414cf5a'
            'b7bd002b440db76e316e31de8672cb294a82eb8ce15500fdccf3f8175396bf30'
            'd3c314fb890e6cf33ff583ccfeaa93e86f2926c96ef7ffd1aa6b3f3fe82ec305'
            '2674b01cf649d01e0c88d0c20c53b135ab89a64533a29826a7c59177d809ff2e'
            '0acbe9c9daa5a960673a0aa7846dfa16bedcf867a7c70c50dddc7150a98bff8a'
            'a6c781f1a9ba2b965849270a7f59751f720b780891845859ab2d090e261faaf7'
            '9622dd96610e83a08555053ff74551fe5a1e5c713ff900b9312bd4edb11664a1'
            'ba1db7e25123ec06eac7dfe2b5fbdcf6c3939163aa1449ff9341e8eab74166ff'
            'bf2fb42ccf626b211f7e146e5671e0a66cdfbcf2ed2a4c0768ba0e308ada9a27'
            '2b9f6b9dc73b9872811b8d69421903019e562e062a57d144e5871ff12eee5b80'
            '0eb24b5e8516bd2cace1f27d2c5cbd6ec7eedf6c5821eea739fc289f4078c912'
            'a80a38014254998059ca50d0dfc98995c71e1b26fb143b00162a4f3ab7e6ceda'
            'c336b9c5e8dd2a043e26d801daf37d2c4f9423f5373d4c32b7eeb1eea4290318'
            'a7c2a626fcb1b8711cadf4786fa42cc00347622ed05c139137536a374a758652'
            'bc2940ea70dcfb13eff1923a57721fa56fe65222dbf0979c71bf66427730cfd6'
            'b18f7265f9eadd52979230022c7c07f2c200a1b3ae3729a81d7ab163c33d2242'
            '0802d5a8f8d9d825705922b1e4a7fd9537948eb65a1880a40a53023987a9db95'
            'b8ea381c687d56659d85e6efc699e87dd4d93ab313d1ed9d59ec86ec76658f22'
            '9a3ffc97db26bf607bc1699423ec24160cd1a54bf02a24a21b7523286e5031d0'
            '4c074c881e41825390735d9a9e816f77de432b79eb15ea9eb94c10f3aaf57753'
            '36b00ec5079cfe7201ae0ccf0878c792218a1ed106125b7fe77a15b9e3dc8c86'
            '138e563417cc9ac9607db0fde3ac2888dbf278b1554f5c367b64b24776dd80ff'
            '4115eb0368071e95bd9372fa0ccbc6c252aba703b2d4f23bcfdcb482052a5a19'
            '586b6ce7125b5fcb8643f531933ae7287e74a2559d5865253fadbd1aebd51b91'
            '723a56bab1c935d16aadf4c3414d10c4b15667a82590925a83ecab769730043f'
            '3d770b379bfdae8d0c0143b7df0e44cee6c5dc008b3abae7b5f0eff50601fe83'
            'be2cf5479a1013553b6f509e25d7fedb542ba415acd707deb05d92d8c7dcf126'
            'df747c77dfe3251f4ca487b6fadde01da17bec32cdeb098c107f84148d4fc9f8')