summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 014d98eeb42ef9d55bf492a32b3d1f7bf40d1d44 (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=48.0
pkgver=48.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"'
  '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"'
  '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'
            'c1bcde1c4d61003f016a1934b8bb69481ae066c6096290bc1d502583d36e6256'
            '10edc281a7e1a6b45692eb82dfbcc5cc8f77f9d870301b959f3d6c88d4384c12'
            'e134d343802a8bdb72e02407ffad784085872e4cc4d967dc898425a246a25cee'
            '52934f57e6bb93c892007d4f4346d1687ed7bbe14d96d32d192e2864924631c9'
            '7bfdcf010f7b1a6a3b3f3588b981491a3d70b2aa9032b2b4a6fbf363bb1f0205'
            'c529dd8ebc29fd25281b49cc608cad3fb126366ca45c7c049d4b40f742cf2095'
            '6ca39a5a4d37868c4789c0f4d2b1ff7cac320623c26eaa425481d38c8d959e8e'
            '05683ba7249b5ea8848879279bf26bc3bd4e58f1e0d8597445d9754769250fd1'
            '61eb382206790e54d18fe26d1e547323844fd3953a45ffdf7f16135fcddc968d'
            'ca7e5665bec693234166b1c8a24600926e326dc3bdf915ba4233aebb3acbe00f'
            'df0841eb0d3a02f21764daf567a6fa7dcc8d1732b753a210d0c489738d5de77f'
            '604f84e9eb9fd9c8ba7d705ef7122c50f1f0d869c8a50dd524eba1efbd87d281'
            '6fea2e19bd9e2a927f76c397c35f8baa47977915f9b99490cf89669e200ba233'
            '744eeac5f2cee322d09a0bc4559ab9e59e8e8684d804ccd59bc5c7592fa53180'
            '1f16d9a53a226553c8a750abeb0a8426cbcf836d7550be4590f0117a06afb34c'
            'f4bc01f93ab0fa7f8f89ef165504a3eb6d6d58c371c0e15896bfccada05edad0'
            '05932d071a850dc761703e34638fd6fdfab738d1f8d8f9a0dfb75ac57c9e973d'
            'c5f1a5b1112428b395e6b83c1bc79c764e076aafc7aff40754eb1245d031604d'
            'd5cc3afe80dc62afe48a0a2c5c9e06032ae91a731377cd937bc0df0487b5c0d3'
            'eb6e167a4c9324d745c23d8f3ae4b768a7553023c510de4883d674bab20b4671'
            'e1bce58a63e2dd9015142714bccbf2cfdd641170e3ba8775bd68b73e3c863174'
            '7af7d442e7e1f4519aaa6383f8702121a82811c2073aed252620d6c74f281705'
            'f3cd1d534796354787a5eddea38f13cbf8c4db0c4fa57adc0764adf2c173d5dd'
            'a264be05f2afc9b45d7b66e3a72169609915570ed36123108a36642d6bcf4fe9'
            '17a5872af2d0b3ae5958e62ca40eb74a28897e88fa7db3144f8e41879be74312'
            'ac0eda15655821cc99b924865c184e8820c24283176164b85e0c1242728c4c77'
            'ffc54382ad13c93cce37cee66586979640964d465cba93c0fca1d8855da651d6'
            '7d2310dcc301faffb4c8aaeea51383c93e43226692886aaa7836328900cfd585'
            'f703f3111a023e5f77c83c9ad95e59940b2381b0c997b3fb19470aa557fd85c3'
            'e659bf195799866f665d9d6d2ad93274dc31804ee3153b66492955790b4c1849'
            '5da27fa744912b39e2ff0339843a2deff6a694d0d4a57f81c93da3060f5e0924'
            '637dd1c47f1c2addce89c2d366d8b3902459f7819f93ceb01dfed8ee3f931ee6'
            '00b49d68dd7a4cd99a2d508376b6549df4bd584ec5181bf7504148f2d3fe7bb9'
            '52abf5760c79fdeb46c8f24094c05efd5e31e684e103b79563d96e645d06bc18'
            '2556605db4396e8eb368c7a428565b70d5f7d3cafe9f9d6a83b74f022c4887ce'
            'c1e3819384ec8c0f903ef4460ee83dec04c61c051dd58dee572a647fa6c93122'
            'fb3983249dbec4a4504b27bbb5b1b9cb50382546c9f86277b7c0f45f30f453f4'
            '4806332b3508c2470a4d9f8667733ddbc1b01bcef8d00825fed7452cdfb8d400'
            '267e2b74011d8b92ac0e32ad415b25c08bb568d44350dece5c8c483b68530e85'
            '3a4815515ab909fd0cce959dd7a0fedacdbf3ff12cee49f99119480c40863b25'
            '94d2ac871d627af088503e419fc3eeaceb87cbb2424763745f0ef244aea6cc72'
            'ed64ffb5a735995545542dcdc97a9bc24b9c538eb75465977d511105f4f049fc'
            '76172cb26db645b601b891c2ad26d5a314dcba6ccd3ec8b2208d6f214b05e6e3'
            '6ebd24622a4324dd33f72f19c33c9aaa59ae676cb68acd081f849f9cd6a974f9'
            '7d27b14b84638cbfae7118d3eb3d2827372a3227a2b1c2a7a0c019e71b82d37b'
            '496a8cd3e2e3af369f0c16b1af5efe89965f94208c31f93fcbdf106601076814'
            '085227bdcee890486b42cbad14ce591b83958703ae54b944c09b18fb95a36047'
            'be4fa7f3247d10a93c28f950a83713a0351e19755d17e4c6dd261d40c7a8e5c8'
            '7bc8c020c6ebccb9d4e7db99b656018168093042b536738fe5fcb29e20fcd711'
            'd9bfa671ff2ea276289179dfe034281bd8e1b7ec99d97096cc53e90f138908f0'
            '5e169c7ab19cc3cbc02d10cb2988dc5db616e687f0cd17ef08b4d019110f4e10'
            'b3147e7c4c105054c0376fc29aee397c44c57235219747fbfc59e9faadea4f42'
            '10d5f065a8467d04adc3c6636b8b2f044d0f8eba5bf82c94bf75448032177207'
            '9fa589c0d59121434ca201f6c21109fcafb60a6a106bfc188c280160c5d11ebe'
            'bcbd91b6ccd90846873d74c774f7d075921204204c1b5043b9cc2cde0c078b58'
            '4576cbb69aabd1cf20b2d677c2b6021bdc67eb9bd483ce26e88c59d12578c669'
            'be0fac35b2adce645f429d36994290eac06a275f144d25013cde6965eacd6612'
            '7ca04a072b76c639f88bff011b3e166978d980be1cb98d6a31addd5afb4164cb'
            'd48b7df0ca2308e2dd3d9e39c7feb1477ba3e2924187fa43dc545da412873e96'
            'bda568ab9eabc11f3af72250dae276939c98a0f0a405daadeefcb8dc18b87c9f'
            '119089ade11673a3ca39d65c675aeb20423e4d1c7db459f1649fadb66d3a1b54'
            'b98989e90f8e59b78e6d07219556bcf968b5846a527b2f17b78081987478bb9f'
            '0d36620b8bf025dd08fdcff6d007272fb54a463e09833f783999e5bb5dc679f7'
            '3d564300a7bda57e3afad6955ea62527b12375b8b792d37f23310feb41b5aafa'
            '443693631d37f2a05d50264dd90c86680dac8b54944d4088bed204565b5d6ec1'
            '0fa019ea44f655daad5122054aed2c1129e0612f9405a4e5e33a127f8b5e307d'
            '4f971a418f92a9f051f1f4337897ba89a026a28e990784b4456cd10a70371b0f'
            '45bf59e5b673020a5800466274b1b47a50a56375353fabe61680cce0006e0919'
            '42620d19756e7eec1c6cf647ff0e19db4022eb0647a571e01ac2530375d7d799'
            '61c591c88af31076fba39abb4267206a69572b8663390cf5f559ab17b698d935'
            '7e2c6ac94b665469a1d09170f03821244092f65a8d3b2a513342787a1c5f70b9'
            '03fe65e11965df84aa2cb4c61329582f37d878edabf67950c469c77e1aa49c56'
            '46486aec6276b6982990ab206ca28db0db5147f417a8cde7fb87cfcf83374017'
            'd039d8f02232837861e894049ce8059e8a47d8787810df50aab7b0b75d63b8e2'
            '3e01b89ca0e6becaa51775ca378f7a69de128edacf0388a4e0d60c3232f7bb3a'
            '133867e6d11982e07cc1123e9f08f38fe904e9fad6116302f200106730f7cc01'
            '3fda852a258657bbe2ba9125eb54810f2d1ed653856fa7011f15fdf51f0c43f7'
            'd7cf481050901595859d8c125dadff8e54e9555284f1cec7911ee13e93984d3b'
            'd33e7b6594ea86b01977cecd60e23c76ccf211fcbdcb9b036f6769d039cecbc3'
            '24eb1aad05ab4af4ebbc9c5b25fcd3bd9f8b89b20e4e97abcc440aa9a3de9a12'
            '2fbf2414feb19e8cff54a5a279c0338df261117d13feed681dd7ff9eae2d007a'
            'c52d9d0627f32273e53d5c2a807beda93580fde710c66d35590af87c7b5c8aaf'
            '2237500551fcab3112613861316a6542e2bd81d5db0b8afc5328eb58acfe23b6'
            '80a228338e398dddf03bd3af9c92a102b22e0f0cba3fc276eb635c5ef00133e1'
            '4a564a76313dbc3c0678634bb4941f9e783a70e3d284e015c90e96ae9c55e30d'
            '4ff24adcff416e8dd15c91cbefe4da6a53aa1af6a3c785c3047d9d203daa1231'
            'c16a47017795844456d029dbac215cec71cd09c8f2515f396f78aec62e8e5d1b'
            '5e6008806e9e2351aa25ed4158ec5b2756fa0a72ea8c544707391540f2083fa4'
            'e012cd3a41acd21206f76326f2b08e2f458785d826e58300c354e5db3354b98c')