summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: d2b7144c649f8c31682fbbd1f8430126e01a71fd (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
# 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>

epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
_pkgver=51.0
pkgver=51.0.deb1
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
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"'
  '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"'
  '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=('brand.dtd' 'brand.properties' 'region.properties')
_url=https://ftp.mozilla.org/pub/mozilla.org/firefox/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 Debian Iceweasel."
  replaces=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,} firefox-i18n-${1,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${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 -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@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=('d319f07f17268240cdf0c5f996952f09fbfbdfb2905f9d7b1741a7a42b4d8085'
            '754ea5ea2fe184d3bc1b1bb60d4caf72cdaca5e4d8f16065b22b988b1ede9ad1'
            '81d1f98843f29a81c10a9a96655505c72ee34acee45225dcd307ae9a123e63d9'
            '2db50aa5fe8866e0835316817a8f605dd517711fc59ac87eb1c27d259e1dcdb7'
            'b4ee7ec17f3b9334630ff35e01c1aad47a0f493306eefd21b7dceccb274053d5'
            '3d3a2396ab5083853e20b2cd3fa519642e6f4cd2b66cf446e80c7a794987c64a'
            '3d93c078f8f89dd4993069fa673ceba70b3cc5be7c452afd37063b11e8f5dcbe'
            '2ba58525cc4f1393015ddcecc286df6c1c1fbab69fc38e697a694625dc325e71'
            '267db3935e315e28c8fcfd3971b7885f7901294b90172e808fbcd28c2c26ae55'
            '7fc38d646f814b286c0ef2c8bbfd1a7b17c88d3c628c22c559cce018ab1ca461'
            'ced3d6568e3421dafe0b8cda07f7d29c5421e038d42bcac759458133a1f3b272'
            '94f1f7a8decc0cb8c4accd1826b8f335b16abbb259359566be5e25529998d349'
            'c02c9b776479800c2815811921d5c334d3079fad1b10b5668f1cad2883d40951'
            'ad0f3653a2f98487de066e7f2bfc5a3cb164e5a813863c0fda921ec496fa0363'
            'cfdcf39092ef00377d7beab3859b7de11174bf7c3654cca7b9734ac4b255e6c3'
            '1115b657c3899829009f4c8e553d2cba22fba271c5750a596920d81065d6dd77'
            '326ae3e466139567ed2877dbfb01fb696c7a02b3818c48e65923eb64df13c358'
            'bb4b595d981bbbc56058d41ce73e9f6666ab410d43b8bd49f899fcc941a2af80'
            '96b50da1eb50b38a83dd6e0065a79c069dce2c762ea4dbb87a47282bab68ebda'
            '7206aa12af4f69d70f598438fb4c8ee528517f7595db5d1d1b51055e851f3a88'
            '4e10974ed2d4e260c9eb1205d131cdb1fdf9672584d330396e5f53a28b977cf0'
            '53a4d8c6175091a724a5c5d94d552ad761ae6aad2643d8f3a2d068a3661dc117'
            '011e683dfca482754bcf7a722ad46ec17a920aa012d8f238012c42f05687e5a9'
            '7f7a3fbb98c0b0411c81d8fb04f300f0548ddbdeb99a225a775c35742b372134'
            'eb92618d4ce84735671bec8c9e7d8a1a310d1ce0648e259d8b547cb73ed31c5d'
            '0f38d937e8d6e6560b1907ac8fc21e72c1daef9d87b244d9dfaf7e3ccdf1dc19'
            'bd828cdeed17fe2a606ed6bda40852b46537ea320741619dcfefc0c29878d40c'
            'a14285e925cfcf01cde25cec6dd6fd2f7d90c78abc0f0734949a02a48f981e76'
            'dc3a1b1a50dae2885b24e8bdd58e17c67a108dfad4712f291007af4ddc5fe8cb'
            '77f11998e4e5dae7b1e42a3d4601bd32c720df72496bb5b526ff05cd90a65301'
            '24b4d7ab975f624618ec524e0fee5a64b943d90cc339ab37af671efd9448f0c6'
            '5cf55b5a15eb77b13557646cb7db1963ebfe717e9ce291fea868005dac7d7174'
            'f461c631c33b90a738b7e158556408966f1a429f4bac27d01f14e6b823385f75'
            'eecfff13c273289228c20fb710847f74236e60088afbfd62368b9cb66f3b2b7c'
            '1a43ec5bdc3355486d2db56ce77c21d8361a4745ddaaab82e3a13349d4f801aa'
            '2fe646ccaa1cf4e5e2601459452e364f9bfccc0bb8ff37d5105505576d338e0a'
            'b03faae59547ccea4b55a12ed67874eb86af4d9b6aa3c7b9a2f2c6a74194b6e7'
            '8be3e3530480fb9fa2b892dc027a78048d947b655c0b6db0e45b83de1288a068'
            '26b53d668cab518e1d350b875a0221148ce09c1fa7c0e5cd106b058532df925c'
            'e1295088a34bc6d0c569c79cd2c7beb8f3f0574ff6f315b8825c060ba1bba3cb'
            '92c52452dbcfbf1b5f65ab0f837441bc44c1170aca1bc686e5e64bbd6c5c8d36'
            'd50f96985e4a81f85ddc876359d1afc2dd1038ceffd95c2eddf3ffd704586951'
            '6a3db03de54e4e10bbf980081bac1e980327c8dcd43b2bb40f0bb38d20418b03'
            '97376eef6cfa37909206f3eec1546b61757762a6c3f9c8a1e936cb7e3654ec0c'
            '3b4da4a9088352c30772d7dff4e4b723279b56883f43f046de9419574edf4b39'
            'bfd26d94fba685df3df36ec2e729cf9e24f4c4ff7d12731fc98a4aea48bcc944'
            '7373e4aa1bdc2a39518266db0b117c71b5438a0a72ef60eb50c84942942b2160'
            '5b4f91353db0c74e9af94ba74d0d31b0317b4af55c44a7d33ccc3ffea17e49ad'
            '3a0f000fac7f542811b24b34d2aee0ed4749f1f7337afcd4fa2a9fd57b1e2660'
            'a9a4fdb1b2e153773d9bbef9fce05947d2313caaa608561b73932257704d953b'
            '8da1fec9e5f5db030c17590c875aff0a100afd77db1aad7067fa3d931ed03b68'
            'b4ff63d51449460b758948bd8e73bc932d24b2e14501ee076bcae5b70892be3e'
            '000ed1c4d96b3a8807ece3f502a900bcf3d8ba3889200d6d922e37bba8e135c4'
            'bf312dccb93b24038cbdff0941276c2704f54ea4588a80b9d7a337ed894cf5b7'
            'a8b4024791d910285dc9d763b3d6ec3cdf5289683beacd000fde122d79af3810'
            '2aa83c07862474156bee35da55ad1eefac9ff63624b65ef7543276a8d3f568f3'
            '34cc82b5ea5a5b16e87f70716dc32a37cac72cbb163e804b6c574035f299d67f'
            'c1cbcebf3954409cab56825a020ad23c53f8814674d94e4b12dca6f361c13ac4'
            'ded68e952783c8048ba3d190fc97ef49675828b2de0ffbb92bd7e450c2e82ee3'
            '58466c629a402d0e5f050fceaa7a806605dabca3604f8cf8c0e335022370ebe4'
            '8558a01bbcd28a679b8808b579a73aeb95f27403b9aa19bcdd4f7d0188d077d8'
            'db1b8d37d3d77fc3ca0317b10db8e74255567b6c8f9026ab34cd866ce523489d'
            '4915727a4314058a96d6ebb229112dceee9ddeea2968aacbe6420b905b2be1d6'
            '312cf883fa61415601ae510df828aad123db1f8d227f0f4612ecea4582d87ee3'
            '07b5f1fb9cdeaa232d00dfa37700b5553b18ed1d6a03d28fc91b188e5f350c66'
            '11c844e878c0ab1ccd7f7b8ba317702beb75bca7b64041d8a3694ba66ad92368'
            '7cc499b354635a0413bed4709530383c0f63529ad3e078dda11b4d550d186ceb'
            'c7b5f436bafff1e062194f04036baff0737731775ec27fb1b7498ed69a8490bd'
            '15e2743d9b401b119eb8f082be18e6b29f7002ab21f7e316d0738731917d556a'
            'ab72ad3b2bbfa2303058cb889130141ab7c8c08aeb9a5b3fe1252d7426037452'
            'a6f5c484cb225ea7020f7480415b1f72853a971ba8c49c211b0678126b55ac61'
            '6cdf475cc23904f2c24de602c58a0f9bfdd08961b8b5dd6f1f9de91f83eb0190'
            '74792c022c5cbdeeb99d0588de585573c303acdab7d99837138ffaf588d234f5'
            '9c2516ef38104fbf62279bae439cdbbc15f79f8071f39dd1f59d5c67e949eaeb'
            '6d0e717fed5f2d17ee75922d38b1f743b4618427e9eb157e0237972abc69b244'
            '8bdab7ebe72e9c03d740c1b8769f06e9cec48a6071c8af2588ccb52b59a280de'
            'b6290e686bbe6680dea580fb13e2f49f05bd99a5f86c3ec23075a570684c7811'
            '7eb86699ca252c33cd8b0480e9430272b30496074b6d1ad85cb69dfb0aa3a4e4'
            '882c537350f8b715616619f016c9b83dce584e447e81841259153613791587d1'
            '56d8da862d4d06045b80a6922c53b7a65045ff01cb550a7ebd9a7d744b407808'
            'c165029f40839c68caa2d28f21991033e198ab83829383127a37aeacfd190aca'
            '24774105439f44489ca6b474237958e0854b1990ea39b281c963e6f3931e7c3a'
            '34a51884ba2a8dc8873cb92a79f9337ed4c689f7aafe9d5de759ca401f358091'
            '2b5a18643ce387ee7c5b9e94eb34a842c7c94f247109e2206dbbddd3fee92d9e'
            '485d05b53d78f0d9cdab9ab85f008e64e03ee95744b233527d813fb233f9feaa'
            '44a2655b3967c7806f490e98516102568b46f209e97c8598949e2ac37c10f39c'
            '745c07248cd06abb4e5b991359e4709752116ecae312dd2f20e74abfe78a721d'
            'bb08a8d7dc74ac27410023b64a68e4ca278f6c5e08a921d6fde03e83349992d6'
            'f8115f22024219571e56dfd14eb750b6f95cb7e9703cf4c2cacd0d179b78c966'
            'a27521d0f47d58cf075f75e24a63e1db7c7e26064a8f3a89549c504137210503'
            '4a520e048ae526c7728590d0babd73d63fc6948b5577325222454491e57b4ffd'
            '9ec030d762c6d574a34ac141006e3a124e7b9b20005f5e9c08eda25e3864406a')