summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: e21dfa24a66ab079941c45f7b780ff1b315f163c (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
254
255
256
257
258
259
260
261
262
263
264
265
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Contributor: André Silva <emulatorman@hyperbola.info>
# Contributor: Márcio Silva <coadde@hyperbola.info>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>

_oldname=firefox
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n

epoch=1
pkgver=56.0
pkgrel=1

arch=('any')

pkgdesc="Language pack for ${_pkgbase^}."
url="https://wiki.parabola.nu/$_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     "Belarusion"'
  'bg     "Bulgarian"'
  'bn-BD  "Bengali (Bangladesh)"'
  'bn-IN  "Bengali (India)"'
  'br     "Breton"'
  'bs     "Bosnian"'
  'ca     "Catalan"'
  'cak    "Maya Kaqchikel"'
  '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"'
  'gn     "Guarani"'
  '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"'
  'ka     "Georgian"'
  'kab    "Kabyle"'
  'kk     "Kazakh"'
  'km     "Khmer"'
  'kn     "Kannada"'
  'ko     "Korean"'
  'lij    "Ligurian"'
  'lt     "Lithuanian"'
  'lv     "Latvian"'
  'mai    "Maithili"'
  'mk     "Macedonian"'
  'ml     "Malayalam"'
  'mr     "Marathi"'
  'ms     "Montserrat"'
  'my     "Malaysia"'
  '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"'
  'ur     "Urdu"'
  'uz     "Uzbek"'
  'vi     "Vietnamese"'
  'xh     "Xhosa"'
  'zh-CN  "Chinese (Simplified)"'
  'zh-TW  "Chinese (Traditional)"'
)

pkgname=()
source=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/$_oldname/releases/$pkgver/linux-i686/xpi

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$pkgbase-$pkgver-$_locale.xpi::$_url/$_locale.xpi")
  eval "package_$_pkgname() {
    _package $_lang
  }"
done

# Don't extract anything
noextract=(${source[@]%%::*})

_package() {
  pkgdesc="$2 language pack for Iceweasel."
  replaces=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,} $_oldname-i18n-${1,,})
  conflicts=($_pkgbase-i18n-${1,,} $_pkgbase-libre-l10n-${1,,})

  unzip $_pkgbase-l10n-$pkgver-$1.xpi -d $1
  rm -v $_pkgbase-l10n-$pkgver-$1.xpi
  sed -i 's|Firefox|Iceweasel|g' $(grep -rlI 'Firefox' $1)
  install -vDm644 $srcdir/brand.dtd $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/brand.properties $1/browser/chrome/$1/locale/branding
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i -e 's/firefox/iceweasel/' $1/install.rdf
  sed -i 's|Iceweasel|Firefox|' $1/chrome/$1/locale/$1/global/aboutRights.dtd
  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@$_pkgbase.mozilla.org.xpi .
  mv -v langpack-$1@$_pkgbase.mozilla.org.xpi $srcdir
  cd ..
  rm -rv $1

  install -vDm644 langpack-$1@$_pkgbase.mozilla.org.xpi \
    "$pkgdir/usr/lib/$_pkgbase/browser/extensions/langpack-$1@$_pkgbase.mozilla.org.xpi"
}

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '9f284521955c5288b00a9cf9b43408814217da3b69ac4153602e21f5a98708b4'
            '708ec52153122ebcdaf73c50588cf40e211cf8735dd81689d319e57b4a0432ba'
            '66987c4c963db384953755d1d6c6896221da8a62574692b0f52d6ff713aaded6'
            '0bd9dfd95767c6e03403b38f06f3e0cd0bf9c4168fef8c65c451aaef19b38d82'
            'abb9088fde31eab8a4c7e15c0241a1dd6f018b4c3027515ee890954a5ae49739'
            '4559c2201594ef2b2243e71f98a7f1a245cc5bfae9e1a958c762fc2b40db3dee'
            '53d71852e952d764163bbc97991bf15edd5ce035f3c97ce8ea364382cc9b7a9b'
            'eb8211b25dca43482cf85e121fd5f4397f0f368d0a2400f393b7abb288f697fc'
            '8bedb8067912eddf59a19d203f4dcd6dcb6aa2ac368f8a5ad8838d3b42bb9887'
            'f3549198626f6c9c55dfdd59f0d73bfd71cc7a378938f98650914d6e8d993ea3'
            'dbdc23f2e5b8630e1e2fb217a3a3c846c99095e5ae0e1a275dbf1609b9644a98'
            '0d6c272e49ef57ce00da2bcf612fd4b7b8aefb6d4391cbd28fe1ba979b34cc4c'
            '8016af6c04fa76e03e8f9446fcf199f3e9f7f6985da78c57152b8e72750d054e'
            '5f76ae9d5ad7646adabd9fd41577b74db909121ef0c30be324b7d1689f6d9d74'
            '587ff3f26a8ef7582bcb5a6392917bf586818970e8d01e488dce90ed7ca73420'
            'fc85604d385fe84c270142259cade851b52737f2a26bdfe594177ab5fdd411bb'
            '93ac985b804780f762d317fa375d3cf38585bb6d758ead31fce25ea29ad19dd7'
            '8e05141c5dbb72a19140c4c849ad0531c5318daa1c8540a7816882dfdc1762ce'
            'b269327762cf43a89567ed15ab43235da513270012486e30e5b5d13dfb0df211'
            '7198dee15dce499491b2934b7e8c93352d06058a8aaa09e2c31834618d4c55f3'
            '6b6541d02b37c1a0ffaf425f26fc67d829eb8b0ffc9c77a7a14d9e70cd1f1095'
            '20a67d7425f4fc854e02870a4a495a16009ac7c04e0c6320c505f3ba3aff08ea'
            '0e01e320c38e7707a1db73a070401c2c7807fda106bde89b7f2d93826497e395'
            '13a8422c2f770ed2234be39f7fdfcd66ea2e755213359e43586abbe0a9b2181d'
            '184eb2a2deffc09449f1a245ffd6ad1a0487d784e04e424676d1ae5463ef0ea7'
            '9c7c1728ac939ccbf2d6b6e0964ff2ca15bd580c8de2c356f999326aba976a39'
            '569a062a0c0d28ed1b8f5d53bd934ea3bf307134b7f6684b3694018b98056472'
            '6995892b26fee06bc81e287fcd3ccd0a4a9730ced181c60b97f2af44661b5f4b'
            '101efa0972578b9866768b833f16d2c8b7f080094576a9ddbf0d91eeeb57332e'
            'f4d5851ec8492344eb03d7c3f266df4223eb35cca7414306a3b57f3d4be96919'
            '775ee6afb9776266c0eccb03013c4bf90e70e604d6b1e6a23e554c04629a906c'
            'e4ef465cd8cea694a77df077e4dce457c2e27bf98f600e94e9ba75e559b74aa4'
            '0c9907334c78a0df391b723586ec9251ceddf703b6e395c524131d1d718c8388'
            'e868307c543675f4c7f9bc04a108be7e65de1db81041055f366e9c05209c5c90'
            'aae90b0ebe74d7545c8e320072af88c37f0032de01d3f5a9f76c54902ea617ad'
            '22f1ff599aebdc20d70e8e4f4ad30118c4462fed68b13c9f001bb271bfa7c989'
            'e051897700eebd6b350e549df50a74771cc7ea2face2bcd6233205c3ab6eda7d'
            '25dd90c80e9350cdce653a6208af2010457f4c2acac8ab91d5665c6235b8da51'
            'd17de05fa14e3024b86cff5ac9c536eb94eb6065f5696819e1e849364d048054'
            '16c7db01979b1d672a65ed617145b50450a2b3c38eb736a268c799555064d344'
            '831400812cc60e615278be8a3327f6f34581d83c246c3b5a7a583c02bdf4dc48'
            'ba6f1edfbc307a45b80c17962ac3a8ffcc2ea270d00f80d8ccee806bb1cd1248'
            '99f3944940ceaca067e1d03875bfd42284f270ddf2bfafc84a0aec9b4976aec5'
            '9bfb9ef6e15d01b58a1274513f8cccc06e2726e9e4fb61790f9206836bbe4eb5'
            '7a060735c524d21eb9eccfa669d358f65cb570d3a8cd2adf6bea580e6e56e4cf'
            'd2b6b38c43088db0ce58923bceaedbe6eaa8d55c3df2272276a875b3a9bde0b3'
            'ac82ec57693d4cac9f275ec563c99c5810a1f68564d767723867fb10ba816042'
            '265ca0ba0ba4b0088272e65d320c829e844b2837da39bfe68f86111b6b430d09'
            '7f69bc3bf4c304c5813a981ba06fd70e9bbeaf5e31559ab4b1781c239d7d98a5'
            '9f6be0fca35d4503c91e3b67c3511c0dcc2c08e272658b8a73676425cc0e4c9a'
            'ca20531c885dfdccc51df5db8825960acd297e8a0bce75ed669b201d8fb31ac4'
            'dedf5f7f8176d04ad6f9b0514787465a68f31c269fb92b3ea2b26637c876b5cf'
            '8c942b66ee4a9568a0fe694d91cac659b81c356ac95b4b3e230debb63eb7937b'
            'dba606bedf12452db5650e955de23c7c4ac0d2d418e17fa8af6cbc032c44d784'
            '839454b15e12552a2229f246592aa1be9ee29c75540f3f10a82b17b8c02252e7'
            'f2432182ec92846499e98120e859b31e800b8e01a45acbebc5de50ea92c0fbf7'
            'b4b3d2b1d873899b4a77bd21fe006bab4cf19b9bf41c4914e406bbaf4c1d9f0b'
            '45c23550a79c4f061fdc9b1e563766c266e8d5d4b0ad4101b328ef91bb442b24'
            'ddb6c1e7af036bdc4735cf57d299e294ca83d8c47e04b13a5cd326fffdfb109b'
            '3f040de2f2be8e7fb3b07877ccbda2779110953881f03f1813dffcfce6621479'
            '08eda83db69cff2f80f94daf3f5923ca8185bc95ba03550abeadba85b29f233a'
            'e7c3c394f6cf12cb96debea660462a700f49c9009cfe55a6a2fa593b3d546832'
            'a4a2a260eefc3d63333a1080b15e260cc144490c177bffb10bb820d20c9973f8'
            'a77a1c09a13009826113e5970ca22e6468956eb86db48b58f0e82aab0fa1080f'
            'd6d1a0d6cdef33f45d3c19a99e0e052f80eec34a8e1c23025e80b4e663095801'
            '4ed3bd9b0eaa9ce313cad1607fd5cf5a12f5ce39f7d5fbc18da5311dfb5958dd'
            '67898a380d324fc7b3e676621de695de8cf926ebc90c4a3f2f07b4ebd2c6a810'
            '0f3d94f7f7b93d516656160d6bfa589bd77813e4fa6906fb38a5b11da3297727'
            '4778700a808a7155b967e585578e41fab71e671c9dc3c0f5331c40bfe5e323f9'
            '39ee3d9f5b8c0e0ba24fe2a9e14ce6c8470a28f362c5d7e4bcf3835e7728f234'
            '1c89fc9e307bfe597d91648bdcae9bf528e43b260770bef23315c9e9c359287c'
            '8e38c9f5ec52a6138c882455db5ddbe4efa7f846fbbcddfa53055953abef989d'
            '407dc8e947de858814c551426cf67af0757b0348caa97703bd25ed136cd06f4c'
            'afd9bb70a2f3567c3ee16e3f2291c1757f2645891210ba027188710ef1bcde30'
            'abd278a93cb03bfe79347f6d4ffd37b1248f910c6faec53cd33d159c4806be11'
            '3f1893a6fb817b53af75cfc0af48c83f4c265f267e60e9e5ea0d26a729eb54d7'
            '96258cc88b1587330e1cc72046cd0cb067bc0bbe3f55fd4fc06b6f3659feb493'
            '226c7cf365572c9ceb6f54b345bc575913b6c8456d6026d927a4077a90864c36'
            '231ce8d9d071bb9798f0b4678a69213f1e6fe528205ddac9a1edb907871d97a3'
            '6eed457874c8709c72a36034b335dac000aa3ee9b6e6bc2523dd85ead47ba5fa'
            'a8431ff1336941ed17b84f1124f14bac4f5697a0e129f4155c2535e82e2b703c'
            '95163819b78538153713dfd0c20a3a53c73c658498f3406afa1462b3ccf874fa'
            'b8f55b2ded9f6be98ca18521435875a68dd3b49b9bd5a23d0c0c04588a0ce4fa'
            '38a83647c52aeea3bfdcb4e3d7e0413e97bac892cf820391349a65126c1cc3ef'
            '8ef4c84fd34279b71608161c761f57dd308802d614d1b7bb12aef630d3c7dd03'
            'cabd063c306339300479f671a24987f871d66842f21664b9823f6e7dfa6638fc'
            'b013e2295535e4d45fe969565d6d984c3887685e51865c8e2fd0676108974712'
            'e47a48132a51f1616c8a3991a8b5e9dbb2801b94a93e33d4d78f533ddf710aaa'
            'a3c5450a4dcd55de8942c118b69e5c52c5930ecf0c6d0bd0f35805e71cd920f1'
            '0e27c60be0a06f30b57a14b209293f17f98212536d496048a99eefd298aa1a9b'
            '8fb7b22d001da8cd442d0a269c4aed11c96a4a5bfa9443cc67569340ea9d2e97'
            'e3dbe47980fda1a504f7c4bda02be3a66680684bf599b4511de68693b749ac06'
            'bac603f5117493d0abb645efa8a63adabafb970f1847e013a46e703e32c6691b'
            '91e2e7ca6b338bed8df0fdea0d4d773f5d7ca3f2749f0aa0617f622b4df8cff1'
            '92f2d02297eb2cc688fabe0d5e3e62e70648292d0895fb564a27b906762435c6')