summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: a62dadae18fbb63e9ecd964efc108d274dbcf501 (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
266
267
268
269
# $Id$
# Maintainer (Arch): Thomas Baechler <thomas@archlinux.org>
# Contributor (Arch): Jaroslaw Swierczynski <swiergot@juvepoland.com>
# Contributor (Arch): Michal Hybner <dta081@gmail.com>
# Contributor (Arch): Andrea Scarpino <andrea@archlinux.org>
# 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>

# parabola changes and rationale:
#  - rebranded to iceweasel

pkgbase=iceweasel-l10n
epoch=1
pkgver=59.0.2
pkgrel=1
pkgdesc="Language pack for Iceweasel"
arch=(any)
license=(MPL GPL LGPL)
makedepends=(unzip zip mozilla-searchplugins)
url="https://wiki.parabola.nu/iceweasel"

_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"'
  '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"'
  'ia     "Interlingua"'
  '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     "Malay"'
  'my     "Burmese"'
  'nb-NO  "Norwegian (Bokmål)"'
  'ne-NP  "Nepali (Nepal)"'
  '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/firefox/releases/$pkgver/linux-x86_64/xpi

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

  pkgname+=($_pkgname)
  source+=("iceweasel-l10n-$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"
  depends=("iceweasel=$epoch:$pkgver")
  replaces=(firefox-i18n-${1,,})

  unzip iceweasel-l10n-$pkgver-$1.xpi -d $1
  rm -v iceweasel-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 '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 "$srcdir"/iceweasel-l10n-$pkgver-$1.xpi .
  cd ..
  rm -rv $1

  install -Dm644 iceweasel-l10n-$pkgver-$1.xpi \
    "$pkgdir/usr/lib/iceweasel/browser/extensions/langpack-$1@firefox.mozilla.org.xpi"
}

sha256sums=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            'd4fd5f94e6463049826f854f66589984854042c997f977049d4f8a990698eb53'
            'faca2b8efbef96c1f8362ba5b7f0b39ed76fce2e77028abfc9c1ecad4fc95ac6'
            'e39ea62741370620936c43c84adc34eb63618108633b2840909ec9365588d76b'
            '732cf91f7e5f8c21798ccf5ed7647afd7a3d64147393da23d6d5df97409685d3'
            'a862f49f7045e8a10411007486401f134c38e3a0fce9f6f3331bf18783f1541c'
            '43cb3a6e8aea1f876722508a6ed1c456fd313c129a93b0d49827d37752b320be'
            '7f09f746bb2afcb8d82c76e3919607b7fc2f8a6c7ac65221134d2b713f610493'
            '0c9d0500a9f85997334283a015528b2a2a3c86dbd604571206a5522d01811802'
            '6ce855064e22750088cd09d61fd3d77cd3a2cd2b286e8603df9d02386dd4985d'
            '860f9e8d7a7c7e8c35acde03a35f9f94182bd4172e0cfebc43d09a5057f54265'
            '11cc8e9eeabb0171125939ff050fe736581df2957fa96fc54ba0f5c5c6f91e12'
            '0d5068e3ac9293da71a2bfc3566e6cbe52273741cc9e82d5514b7334a6ed0e4c'
            '291a4f8e85977a8eb93ab52ae7caa857caf7998f1c561baa534ab8a3958411c6'
            '5cbec24877869340fd52eab4af21acdb0e30a298ad9e9d97b899a5a0223be1c4'
            '935960adb4cd204153f1790397ce3b8793151a6d9b1f5bf38630b7a274b36bfe'
            '266664866deaff544d47ffb90ada91c0d270fb563a1ef67baad86c175d88b606'
            '73ed7ec234a6e197688ec0fd7809d3bf24d6f6f6f8aad9e47bb10bc600d8918b'
            'db17d7492e07c2c825572353a1407242180e0b53d399b48579d5f1e53ec8d11e'
            '4e02cf24936162334435ecf99a9b1abefeebda06b34a75e527c6328502c1fcff'
            '91ef3e6bac7be38155e5f957756f21761bf548a2216e2588721bf59a10792f14'
            'c3457ea19f44ebbd2bcf34403c19d483edee46bdf2fa2de3ad78bb7ee2510f62'
            '4920efb507cfee37e39b705b5bda6b1716eb491274f9df5be505e2a65c4d8fd7'
            'fd95409ed5d1b4bbad7ecbff93528284f46734f8fb00078da350c7b30b5fa260'
            'd3655db524f7eaee1f6c735efe1697bc183776adb85edaaa4b93bfdaf8861924'
            'ca5d2cfd209a5c90521fe4fb014c1d3835b4bf11fd74f9e3c30ec57ada7e4655'
            '9322e35d7dac234c334a9b65347344b4ec47df1bd415d0c715ff310edcae3aea'
            '28b312de9234e3654ef5105777d195c6dcbd58107978407b4ff69ebabc75d4bc'
            '3bf4c6c0de74e5eb1202f5dd6cea420b38b1210289f4d8ed78d54095e9241846'
            '065e7bb9c94c38eb7d18f674a51076c6356e9c201ab647bc8a9f88d6bc24b934'
            'f19a1382ee7616d9c0bad256ec10b7dab3c4b5c2395f6cb306f242eb8ce99eb5'
            'b28fd08c3a6f923e4cd469ecf8ba58e6a323a754733f13144716e31ef86d002e'
            '0cecfc780e5d5fd00e9bdba9b4b23b1c5da34b520636417cd7636a679bbc50f4'
            '74ae886495cc10e62cf64eb6d0a90111e79a90f95fe365402b19c1c0d0dc8a7a'
            'a3a0291633b412eedd3e93e1e6726b74d181203a4c057a8a31db0981f2abd449'
            '17bfbbe27944608489b08a3abfa414cce964eecd03b9c341f29d5f125062298d'
            '61cdf4a594632ad0ae2f4cc224b61c3822b81784f6145f9632461f4f596f4b34'
            'cbfcfb995c91ca794714a881cd12701d01ae3830ff518477c4b1235380052de1'
            '65f578cf7a0c58592d75b7f85c2a3b1c847810ffc623ae3bdc6f8517d8e33c41'
            '9a3e6621a25ba77291bc3e78f539680eb679929d810d8ff51cbb4db21f4622bb'
            '3f44a6af5e7d75e283514e0a73f1a30a2e35865086bcfb4f47a76cc957f8265d'
            '105229e5f047d917f277c13d72ee50e981c92cecd8a342608c15245b28d4d303'
            'a1a5744ce47eaa193278f697a5bf267cccd01777d8e4d7c7433bd7bfe1ddd132'
            'b51b0aac6319414c1a49858f180949a07c999c866c63e619818505727ebca52d'
            'bde5da8ad592142500f36757d3327129a6343dc52fb7c63b4edb1138b290ac80'
            '84354abb5b8d735061284a8357dbf80ad0ab4d49618af82074d6b8cd7990339a'
            'a8c1ceb1fdd231acd78d91a67b79f4a0932842322b76a5cb6e495c8901b83823'
            'afbcfa2bb1f5201a832978eb3ec66ac779107606ee21e7ed21b118887e982a70'
            '8272d2de413ef02c0ae56633c1814004d4b33893853e2914c01cdd46c9427c32'
            '083e9ed9646f3dcf558e44b65ddd9fd56bdcf8fe19c35e81de20fb5132854589'
            '091504efc4de1c554bde2d11e4d547deb03355384776594fb794a818c0b09dd5'
            'aa5807fbc05cccb0ff71504b7669908744aa61d8e6080fc8a0ccdec015d43f3e'
            'eb713392349af7ed2383b59463554ee0b2ded2a4f8b5292de5481c056f271bc2'
            '7cc0bfa96e5a2b5203c78a123cf293f9150bf080cb901a97991658047902bacd'
            'f1ba41b49e0ff467b549d406d5554235251d75b91eca0eac193172eeb4a8c5ef'
            'ecddec11fcc909fb2bc520da8b4ffe573fde85a29f25b4c4ea72e15d014ebba3'
            'd70ef8dad857d4f7b99d508495b3f717d6a27d7b2aa96788c51af4d5e875cd7e'
            '7cadd99b0d23cf4f673ef76c0a5beab1ca6a4e9f41b686ca23c752aa2570c794'
            'f7e418dbb3b98023b080814c52bf2bed020b764420084158161c1cc68baab87b'
            'd47c2eb90d25be6fbc4f2880659902713495c7cfdfd31cf3d23166e584061dbd'
            'e6620d3f8b4a8e479d45bf572e3897be1edc0493735fa599c86abfe8d32bdcba'
            '2a549953373041fa8e36ae40ad913cbadd7af5a08555c5c6dc60459aedae2987'
            '6903c60c5eccd3e3ba29315aae1406b48841b9396be3927899d6bce6955546b9'
            'f5e80c52b4474f88460329cf8642287a96c7dd61bd03f70d5acb3cac0e25ec4f'
            '29a1db58dce400dd16fb13cd424bdba0f097d9eee2e2e701f8acc0366bc7e473'
            'a4be8ab4e2417c4056c92146a549afe8665071ba777d4252669c67c9ed6f242b'
            '354f738c0df3f4568c52cd70f4b0c59bea2764fef283a0d552b9d209dbf6c3f4'
            '97ade42f8ec1ac2c698e1777ce10a1c4abadef1e2987a3da4df50c64fe1ba758'
            '9f45d75e5ad7fa288b3794661ba2eeba2eb857c11d6bd200324ee1c2188a5467'
            '023e578ee98db7f1549011b600430a5800e89b75d8ef172719041fba4ecca633'
            '65384c5e4d3f36257f6f0793f311be4a50333ec67fff877a1aac01b9c403868f'
            'd583ae5e1ec6dff31adc76bd243db1c05c390adb7e757bb3be823370141d6e81'
            '64bead2c33ccc197348ecdaeae4bc2b16d947e2d17fa3e83fff9eece9fdc3109'
            '504d8e4a3e3c485ab03fce76636de738dd3bd5ab75e5c52bebbe74634972686e'
            'e34d92a38abdd251bf110b64c3c2bbf70ddefdc3d32ef50a6545dd3d8c8022e6'
            'cd0e1e1fb5063fd9a82940506777fd5a9447df36f46f604026b1a4987e65b8e4'
            'ab480af25495f57649c19cf54668bab1e209b60d07654907e13010b26503506a'
            'bd4918a2b0ce184da481fde4d6030991096defd8486a49deec07ccd94dd11990'
            'cd6ff4632e846c0d982faccbda31ee379dc002c16a11e119de1b35543bb9f912'
            '2554a16e953fe70e923778fac94aff135cec1dc83177b8d01c3062a27da3b8d6'
            '5a34546cefac845cb6131382cb04771ae20f18a6eb6c058cab582419cc9324e9'
            '34f7705c36c88f20ba2bcafd09b6ada3c90ae5d71acd4b7747ac60cce70c222c'
            '19d8af678cd2874a37bc5f5836e030d0e04c64de5f3cab994f25dc27c48048ae'
            'f6d897f43b61d7b476cf0bbdfaa9bb09c97e1b923ed93ebaa45796da17d5815a'
            'dd0fa029de2d70ac4982d2ec5d904a8543126198080ae8a45b1037100dfc1454'
            'ff0e506cfde1150867113f1fadf49a075c7b39ec1273254fd1c825c7aa3fc61d'
            '0062281cc43f2b132663a690eaaaac8c483196daed5fc1c8f1de02b59005ad70'
            '12d92d14cdb6aba7228cf634da62ba2ebca3210ed4db9119f4ba2d7c9c8296fc'
            '7026e14f3760b906048d45d25eaa73d0f2a657614eb07ba3a567803b4daf2bfe'
            '226efaa18781edc8c5ffec902c2a00047d3a0796507c9799134a5fe0517b2cc9'
            'a39db56a64511ced3451aac4cb6d6dad6e3d49f7a60e074742b08a492a04580c'
            'f4b96792dbca4b8de74dccce1b51d5c4e6d0cd2509ef2573c1f992f37dd71c32'
            '06eea9f0bde0e5d3299e59d76cbc486a5a9e4d36f6ee9e262b2199bb45967b59'
            '16f3a699afa42f645c0276b53be27d93f35f21f20289206431be0da811e3fe34'
            'b1abb414442450d836094dcae26268c61608102e31d745b717efdc92e05fd760'
            '7de47e610d82ec7ed7a57d830ef20c4a113770fdc659f19c47c17f4465a9e83b'
            '1e30757d37bb8f13bec733e302e393204bc5f9c9b859465252b25ae053e87b27'
            '5d852b837ce85c5a7bb4a4e95655bba83ca3e428a20b252c023125cc55e538a4')