summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 510b8a61c36bef6ed31ba5ad29abe753bfd1f02d (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
# 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=50.0
pkgver=50.0.deb2
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"'
  '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'
            '7c03c683d7e321e82cd3843b353b2ff399583169accb43a3baa461e978a29b58'
            'dfb4bee506ba72dd0b41e9636f9de1650035d767fd9d55584bc136e0e5ebf59c'
            '31ac468f34312777ad79f1bc38b0d80510c5ecb88fac106d0ba633266a4d136c'
            '4e8ff2c0ab11e73c4f81e6b208b8e911e7775a3b23a6540284ea17510ab67db9'
            '661c6a59f70a492b134aa85cf45005b22b5330a8aa5f4c4139a508eaf4212527'
            'd660f5a4582cba124b33b97741c922959a17bf7cd73f6677a730e787c4ebd437'
            'a62bab5a596af29c947c4581e22a3f059960c85b6948320131c5f7d88b81036a'
            '70476d3481183b7d6d81de03a100ceade99114f28963c0605c393047073b8ee7'
            '6cd90b51ffbb72f54995ec64792a93742f5ae3689ce61f2dc3864c84cdd12367'
            'ab023e69ce7f39387b018816776ad25eb31bacd24a7b16be94b9fe0f2cc0489b'
            '426569269b219983858bcc70d828714e3e65cdcec59ce6ffee5d784924469fa5'
            '845a120cfba5b141bc35ed916fa32553e04db702871784e310073ea6f62e48fe'
            '9f3894c4472f2ce32c0b6405b3f0e91d4f8061d7d76e761e6a9e0e807894315a'
            'e6712e0b933cb6f5ae7abb36e7ccbe922cd748e68a7f8bc9fc39cd342f35f66a'
            '46bb51e8a0188c0140b2d7f0c8648d7cd429b8f52dcc7a15ae119288aa104325'
            '711a8d5284d918bdcb00b20eb331244eaeda2e5ba31cba612db4b803737a6989'
            '82b2542533442cfeab7001531b707922ab89cac12fdce580ad9e7a894eeda148'
            'f0ad84bb1e381a0880135abb0bc2e0f53e3c7e8609e25aaf87c64e27b0985baa'
            '7fd48dd147693828289ba82d5439487e858258116845892e01527b6ab21e1b69'
            '49b717304bdefd42276b05e09492a0ccf13c20086422b25204c8d0ec71bf3fbe'
            '70c440ce51f7a4b6aa496570ea1977b9a34f34e9f41af63483f86a75a8618b55'
            '11849f6610e3d7fee2106b5ffcb98b6d55ee09b9ec9dd99a7fc35193436ceb53'
            '70516e1c04e00d19266dc7deea64a3a680a98e82c4b286526be07e7138ef48b4'
            'a3fa888a6b2353eecdd6006b3115a91b027bf036879d772b0c5a687da52b9a6b'
            'e0e0a3d696931e4272165d1f3a3c0cd6b9bf171dab7a78ca4b18e547fa06c86f'
            '0474301257f4f6004924acf01968aacf1b7ce2d4e82c8ca78d492fc3ded0b455'
            '08c2981e0af285f4f1095cd18be7a2520b6b41b1742424dec41b2642e5a8daf2'
            'c01ad432d1cd8214f7bb491dbc686585359724bf88fe44ccd54e3c86c37ed65d'
            '7387f6e7a5bbb39dad730778e921238491bc64b317109074c2d797a24bd700c5'
            '8a7f98a8c76dd480c905ec556afa2d8ff8b6322ece9af0d0185aee386e0625c0'
            'e32c0bc851b19edb89a60f9bb9fd4bb6fe97bd77f2715eb033e819d031a02d7f'
            'b35c99cedf54f2928cf2b80ff0a64fff9ab13942ecd10eea063a7acfca3e7a77'
            '41746c1574eab648bca65c1c8e944213364242d24889339cac00adf7e5a5ebce'
            'b7c6b28ba42bc1d09393e63d0cd48967576d7ad7760ee3a3de1408bd4ec26262'
            '58aff6537143cae502b51cb227b5988bed61ec71f6f3916d88add9122a0ae8e0'
            'b2e689a3801204c855f5afb14c1ec1091829a144aff543e94e753cfd2ecbe46c'
            'bb5c28d471f1198a48081a2dc2f6cbb8ccf3966abcc40b6ea32541681c6046bd'
            '30364b107deb8b11ff41f2fd936b77181e09ccf0a33dae4afaca6c0639ace8b7'
            'afe41882cb837ed56438e3746e54f7e4d9940c247ea6081aa5bf7051685ec27a'
            'c0d6765b3139d1fedb29c766515d577de4d52f27a0d7228d53663e482f660175'
            'ccccd56e971959a7296ab1d7f0250b6b3fe6d4d6d33e7c0a7195a3622199955b'
            '7e01271418343643cd67e0a224d39f79e36baa93b83e8a9055edbedc4511651b'
            'd4b051d53250a5e927c6067916e529c86d4a287960687fb8251d038abfd6f450'
            '37f3c6af3d8a599f96e04b9ba86d6fa1e1c34903cbb4e416d1df2d4ea4367388'
            '1dd8bc270702245830b36ea3cc4719322e88fac21c588bc9698a6d92cbba2c08'
            '9931dfbbc58edfd5645909113c16bb496a60dc8382309c4bf817fab4e3d826d5'
            'f3eb7a4e0fe2136030527833336bcabfc24587d096edec2801f6062a84190160'
            '1c3631f497075f4fa7fbc70883ae1653cdbcbc0b586236b3432331193a155ca8'
            '2f11a5a9425900532445dbb4dab1981295a9ebb48d175e5ae52015cb01aa4d31'
            'aa14e3dfa86899b2d85681806c79bcfbf6b1eeb28024ccdb05838567748aba3a'
            '06daec43d9f01c748de4e5da345a162320ef423e4af33bd86d2d3a6911c2a47a'
            'd2326fbecd9b676ff761d41588d5698740ce09bc8b5156c2f28626255c020f06'
            'e2e030f4222d8a1ea7863de8fc4b71f6447b3ab2ca636130f753f4a401ed27b4'
            '55dedfb933f295aeee1fddfbd0b663b17df3f01c1d957aa8a61cd109b8a48ff5'
            '5d5c36c4818fda2690025e440edc9e7d2965ca8b484e419b9ec699ba2e47f6fe'
            'b3c79f0222d795041dac4cf7eb6a7f31c41466651786f10b5ea33f5d8e5d879e'
            '72c14c870d78c47a37b7f1e75526ef7619cded65a2efb083bc0b5af28b9ec460'
            '103162894a6e19af20c0f88190cb8ab6038a5800377e584d96b63792a258a327'
            'a2e3586219bbeb85cc35e31a91699ba835beb47edce38fae2a0d43834a31107c'
            '8f858e478a5d1afd4ca0e2312f7378d6d2103a69c18f488ae48b756175597293'
            'd53cc9566fb184ba7ffa31d16acbabdae397df217c39f384ecf5944529905223'
            'af8537e31d32c58d9328ff0b33219ca63fe96e891ff963d230533112610828e8'
            'c005c34e584a758d6a820625e99c758f8459a70054f2575a7cb2a8eb40f8bd16'
            '510908c5502f975b84e38013131725e920292964c059b6a4f427e2d75dfd796c'
            '65654319d58ee4b5f5b3665965d8c4cb8becabc8a38ce8c98fb096d6deb172f5'
            '1e511e21de7692b9b6ae7edb05119bd15ea11e9d4bfcb1572c4034915415a531'
            '52a00734a7d97a54ec9ccecc88ef102fe9959c6f24715f660f1a994391694ad6'
            '9f749dccacda71070dfc0e830dcc651eb4b04623a482355d0af86335c5b091b3'
            '6912b5acdb62e0ed28c29d407121998abb6cc31d069283a3f9c50816730c8803'
            '9f3891a4c0abb0bb54aeb02895f25ba165534faefa6cc01716d8bcba97d5af8c'
            'e2b916e3a7584729dbc11dc910fe28f1dda820d491e81af3aab429ba5c0a4fc9'
            '77177f1c04c4c677e8a538b0de9d540551917cc93d008bea890cf505baa7f228'
            'ad41048f8cfbb8d6f169b3756028f6b018a42ecf3ac4f5225fd441145e4ffbae'
            '5df2b701c6e69413793eb17b71462963f670ccfdeafcaaa7737e1fd4e5c9d215'
            'a2f7726d7cc896657e786af0359186bc1c9e1b72c577df352a3d11d39cd33a9d'
            '93c6d02bd51a59e93e9e7bfd3c26aa19b3a6d21649c442643a0377cb19f81cc4'
            '4540c45fcf09a7e4f53d13432ea2669771a6781764f6d5b642abd310106bf330'
            'e9682adc355a9e6c9495299ff10b6b3cf2cd8967ae6f913242d7fb059d47b0db'
            '2c7510ae8f9780cd5a1e2a12d32c72055c8b20f1d0889edf6aba7a8c12b9469f'
            'e4fa0d036b511cafcc9fef2f6e59744d50a4321b44252eb7869a3db0ca9e4066'
            'c4867a36014698a1003e933f551974848adc4d36e6edcd763410372b53dbfb59'
            '8ce8953b18f94abd0ea141d8bcdbc0d514a17d82b0b3297d74ca07ee291ca3d2'
            '4cb149c686bdbaed6382b77d302a2c24e93090df8704fbeddffbabab0d345ea3'
            '23856730275883ab98dfe7876d46f9420ac528a434a3591b1c5ec260348c316f'
            '81b48ea865436db42013ab2eae3c98ea114431329d49db1f5d0ae0b5855eff9e'
            'aa96f95ef1b99723a5adaba5c32085f433b278426a809f1691a7001e152db54c'
            '5fbb9668d203a73bc9b7e19b15855857b749d07a0e1ef0ea3734ac24fbce539c'
            '722a2d305f4a0d45600f084e0af144bf0e85b73cc3f23c440fc455188c470462'
            '783b4c5bef4cbf7bb33de582d874ef609c7200f1e47f8f63fb674fb23cbd27f3'
            '6204083636a8679fc712a0711b13be9f06251436acf9450cc5882fd1cea4a368')