summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 1b286b8af5715c4f362d64585001acef711a776c (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=47.0.1
pkgver=47.0.1.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'
            '45bc4e91e4e6adf7242aee948158b5afee17c4770dfa5dccc7355d85e531aef8'
            'a1e279483c5344db24a4ccfc2c38e8b6efcb424825fd85bc07d16d3277e0e7d8'
            '40c1b71ce8fba6a16cd8b3d1ddfaef2fc6cf15502cd0aa567c3d5f3bee698447'
            'ce4907b3c63db0f81386d8177f51fefa6713e74a0960eda49178027a61cc2abc'
            '14057de2c80c22337dbb1ed8809a966919645f1dc2a8da42e907c570a969c917'
            'e58e044b10c9c7d299866bd2d710d35ce56d43bbe6427c0029ad86bcfd69c4c6'
            '8b60d632ed4271a42d03345f5b6bbd68bf09b4b98263e6281d79e604488e5e39'
            '05c89d49ec5c593c5ae98d22b0e435c5f1fb4c6ac97938721d2277f5210c91b7'
            'c3b8b4969bb809eba2a0a3d5a940682dd77c2707acb2a9d80231e9237dfaab13'
            'cc6a61c51a212d29251e43938940524ac3859ca2675e56a4cf97f58cee55b5ef'
            '2f174dcf71804700c17326e5192ed80c43c19c603877a5e571feba1df7a51558'
            '91978b6bea28c3ef2cbd41d75afcb1fe25fc506f9ca5a3caa3b23ccfdefaee0c'
            '09732c9fa433178638fcf44abdb65b4bb81f846deb3a3cd10bbfde3ba594da14'
            'd6f1cbf852d55dc8d5b47f642cd4ac4c889df0662da620d4370077bbad5771c8'
            '432e0f194cc6513ea9c998ba09032b646a55e5cada4de3512b88436d63622363'
            '02f69f9ae0c62ce88a747974a357b28622b5b5c162818b12a91a5b5e9dbea419'
            'd645b416e27c0376195bf9c8620f77ff9a33dfdd2703b4f02e0d021b411ad54a'
            '611080e81b13ac5cfa0cc84ccaacd91f2c102884e36558af73d7d71fad18db0c'
            'be5dd0e172d05143333fd093e4916bdc8f858c0c82e7a4ad8d526baf288b15bb'
            '5abae91c3dca06d4f9f4ed683f9e1db33461b53442beb37297fe7b0a10fbd055'
            '9c15f22d32aeeb2d3f7c7defd6394eb3b07973eb68c96e8cb9add5131ceb695c'
            '6f51495b1d534226e3c35c87a8dfc2432d44ba57d0aeb46a08e83c799444dc32'
            'dfeba075649beee35415a80858973cb442a6808b602fea9a0110350f1262bab7'
            '76f17a70c23298bc722de3660529f5fe8fa456914cdf719f864fa000433f2f0c'
            '5cd683e2a3d3b5763835af82618135a120f448e07eadd20083a38075fa13aec1'
            'ff1d09566fd7e78bc374c5c83bed768aa87392e49a16e89eab09f3f6eed67e54'
            'aa2f4868cef504ba087a33cc395e00ddabf2d765491a51f0048ee704a585ac49'
            '11a3d3441bef1876736cf828c1c042af607ef426db14185d7cb37cd7b84d32a7'
            '3e66452b8cd01159c0305e863c2ad6bf95a9c95d881381715e49800a54df88c2'
            'ec6ea46b9674719227bb76f6150172aa36e18cacda99e16ad070454592f4ea64'
            '702f066fc3974ccfa9185daeb14430910bf1a2adae82588f9fcbe4261079021b'
            'ed47d8ca5bfecabcc22c8f568e076fa772a49f125b992eedae1b026580e47591'
            'e8bdc9eada416f728ccdcd46e4d69b0ff743d04e0662c44539be98f223203bc4'
            '8270d9be627108fa1e6e2e936a55f2ab7a1d36230ea875c261ea69106fce868d'
            '94b6744107662d06991e86355deb37dfe310e65b3dd394e40bc055d4ab6d2501'
            '2f93cbafc5548a00907c608eb2193a662e0f72dbe6ed3c4c276601a3f629a9ed'
            '8b5b5621bc744e8d21dc84bce2668a52f483858997eb9ad4d15fe8dc16dd371d'
            'a8b6effa4189ea1816f89658d7c62ffd3d5cb4ce57e664f9c5dd4377952255b7'
            '86a5495a14202d68d095cc66c1865daca059a47767c8cf82abb24f38adaec4bb'
            '1131961ba5993d28929fc38602a1ce02761c75488b507540c69d7f7caba039f9'
            'd4318c5efba739b519f7c9f5c302dc98ebda40abaa46f3f5dd9d78ec184dabe8'
            'e56f5877d6f66773e44b32cc3ca12d14da6d3c986c312787827145a6a1db834e'
            '2515e205390983fd32e0102f0a105896953913f170ed83e3cc167934d7c0020f'
            '604068b6f604d505dc6e51a05ff18e857d6b30eadf24c8652683331331bb7185'
            '115e4f497c799d1bd431c43876d03c0cdbb953c259fa9c2c5f5f5a90fac69e88'
            '358340a6ca043e6daf5fe8d01ba047d9e7f4ff67203f5ab6f75851f14c4ff328'
            'fc41a1a97c58a2c5f1014685880068d1c5a4290b80bc0ab572992bbfd005d724'
            '312edd360fbf24ffdf8a3000dd31fe434806635d94056a11338d4b0e4756017c'
            'bc89e620c8f445d4be02f6521c3fa51eb39bdada8a1b14ef3f2f2ca46cede849'
            '3330a11aa4a7a6585ac1ef41c0f3f5da1005082ddbc8dd4b5e4568cd4bca345f'
            'dc94fbe0fa6ace0f4425f6776a29a23d7e24e75fd16a9c9ae341eee032736c6a'
            '82a3cbd086c17e14eb867f40d24ac4f25d96f93c7414f4f8357cc4e06903a84b'
            'cbdb8b25554a37603ed4474896b7d054dea6a2fd9bf87d4154f4b50126ed8109'
            '9933031b52d5e7b8a50a63e8a7d761a990b0d87fae0c5c1ef4bddbab59bfc2ba'
            '449d8cf318c277d242b3fdb224e9b72a50975e69f31f041c8b047ff29a795990'
            'f6d990ac44675f0ebfb3f98e3c85e7bdcd0c3b657a2d4c0bfa99071e6eedc101'
            '6aa5a42e3022cf58e6b016ab7b788eb23e67625e1905a340aad703be3bfc622c'
            '8a9521bf7962a03e8ad268ac59d3c20d9ab0ec13c2e0137d7d327917da185b80'
            'd864a9265b23dd871521a19b600d5deb1b44fef4b394613a53152dc1d4c45cd6'
            'a2ae1a5fbcecf7b7af2e9a6e590e496733ae1ea7030828d5d39c946a2c803dac'
            'e72517c0cf40317cfc337ee33b43c23e7cd8e44c9e0584c6f777f3ca880383ae'
            'da0f4738e673ce3a7cb7935383945d58fd9f5050ae2086dcfbec43014e4fe5d2'
            '2eb190d4b6140d13f077e774e11a13bd48250c8cf1198058dbba696bbc77bb28'
            'fd18bc2166d4a03147cce6ed5e3d4fa959d99dfbdbb0048ff7162370fecf8fa0'
            'd474a56eba467485488e9d181e981ff12dea18f57a48b397df4affb7c0ff855e'
            'ed2907e16280b53c6b16bcb79579ce00e838fa179790160a0463e2579fc52047'
            '8d6c67251bceae0d3b92463b9ffe8b29c27c8bbb7e7d5ab8bf7077c4e9c17491'
            'e7386ef912551b1daf7b8afbf8189aab579fc241ed085c98d68c16a870471fd5'
            '3dfb14c2bc860af07da733e457e6f9128dfe3701795b8bfe2a233aa3992fcd0a'
            '32cc50d8b16f978adc25e7d43fb807c93fbcc2d201b85f8191e6ad17fbfc35bf'
            '4be70d42a513abd6697e114161aa768d136d72274a7b252c2c337fa260685289'
            '818dace0bb3e748a336db9fc9db456b2430e8bcbebec7770bfaa36cfde321bc2'
            'a2786e505817c65394b7bfa492ef7b0d6719651b8428bf7cf27357387dc13e7e'
            'cce9362fbfa295f3de6893150fd0a2d51ffc9718d7383dfc24188cae86a5e418'
            'f198bb1db5e412a3bcb28a8f24144ceff3e827632884a6fe59bd744195757088'
            '493fc303a80b6fa76ab274e005897870333d6a84da63b4152040bf663420a03e'
            '96a7e3c877f8fa5b5bb3be6f1e6892a276db4158a348b8400e3a6368ba82e61f'
            'bf740e40de6018df798ac065e53041fde5459a990b5041e1bd7528307360d46a'
            'ec52f16c0f56cdcbf0a517fa69327fcaeb0aa0cf75557af7f0c9e8038d6c0407'
            '15eafeadbc45709e6f08c53b44397eb01c87e316ceca2035eacc3ee23b12de7d'
            '6c10823ada3e63bc08bd2e241506ce0550b3b8ea344d5b5ef8ea0cf8435ced04'
            'a2c784f4adae0c951955f83ea6aeb5e2aae328eea94dd103f43427d308e47e67'
            'dc8c04ef72855048b942219125a6114583b36932f9c23e2d7b4aad07c20babda'
            'bb4c29beb636edbacc9e8b8a054ba5a2c6ddbbf4475e4ef2ac00efa8275bddc1'
            'e93a2dd6c3415cff51e53804b6f10f1d09c6d7196841c9ca8581125cee2b550b'
            '115cb4ffaabae35343a086664d6014e30a311e522010c3b55ccbc7394e8e6b90'
            '5142bc34da8e31ec27dc89e255a3a6e6357f5f02dcda1739ad875b15396f75c1'
            'd5da058ad1b0a5dbb09575637a81865364ac8b2ee6eaf924889c1765e29a01bc'
            'fb986d5692cd7ab0567912929907744f92b53143b48976ad3949d15027660f4e')