summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: b8282eb3500205971c1d2833ed0c1d02234c2ce3 (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.1
pkgver=51.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"'
  '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'
            '2d0f554d524dfbd552f513a59eca728f87f2dc63871ea05d45e50dc62f98d0f4'
            '1bea00a4beb2c08eeff01386f119954d166cfe108e6b9053ff84923071cc70c1'
            '4f05a2800d1eb7c65d7f4fc731c90a798e55a414e425938ed9f2a4aab2574bb8'
            'ba9f424d03b292b7428c37104c9f367d1cfeb4c1cb70f01a3a3468ab8261a5a5'
            '525a14db543a0f80840e399d579ffbd8703f0b7ef75d4e3fc6c2ad7ce783d1f9'
            '4465abc44e515d39ead8cc7e072b225d5bec080e370129d5861eece6b348b2a9'
            '86beaf681270b0465b3a06d381866ed951f80d5d78f98217cb7e859f8dbb2705'
            'c4824b49257cff76ed34b0cb1a0f6747dc24b500f40d464b8696a5cc18f6ff0d'
            '9284871e91d84b39567b803ca75eb89d77d2a9dd0a3b25960ace88d5f13947ff'
            '642e8676e25ae1cd933f77be1d1ec30e80e8561be8856b8cd92e78866cd49870'
            '09b4cb3d86fcd3e3f6eb1a38b366c9fe6412deeb67d01479f43a87543e137af1'
            '4022af94e170fc94d80250389b2e7b61a4a0f046b70ba2d3d51efb842b9e4834'
            '26e5c545322ccfe6b923445daba906ed66671387a899c96c902e5bcc705c0ca3'
            'eefd2ad9de4bc79b046166df371abe5b5cbcedf2162ffb700ac650c8bd257400'
            'be37d732ad896c548523efcd097f45a8d16b3a0f1f1d086d0ed07c772e2969cb'
            '3e38992a09904b134d53c3bc27924ce7a10273ef47c0e8773960ac6937577fd3'
            'd8c21c45cac8ef9ecf891ae400151a2a8b65e0b1828049dc4094dc43269ad687'
            'c10becdcbedda89442a7e2783e2622ae154e467d7b3a6573dce0a8d156f39605'
            '51f535695c5cf6a5ac8672b4bc56b62e1fd8d8f85c4142da7db5e61d2b951222'
            'af4998b5514bf808c86bb0aa9e11a342e43c785e7d408c202a99ccc89cabc483'
            '91004f483701c7a830cf08edde0e2afabff57238f6b90d0391c8ec0e113e3f6e'
            '37d7ae2f16415195c65d50bb1baa527fd9636aab1d3e105fd6a435af0fa38070'
            '0be96d097d93caedf404cc719c5938ea6f7937d57094a5018c4890fa13fbe2c1'
            '5c366f99807bf1c419f7bf78db6da27c2ec472c8e739849ce410d26ab0a34c3d'
            '62c0b31c29ed61620c80125b8e65281b1ad09e453189d05b53a196a202df0092'
            'a03558ac33f3d28b9ed7a1a131f982bab4f1b7bae1bb1305d80670ef5387e520'
            'c07d399f058d3f02bb7b69ebe10f4ffbb44247d3559328359c1d87895f15d28d'
            'fb31e7547ce748abf8181604a35db93885719dd6fddc8fde7b7e56d8b83a35fc'
            '9ed3f4aab20cd9e3d7efd53394efb7a5d097d05e659a8af3d37422fbea5c6f7f'
            '8f0c4430424e1e3f20f35f012d690860aeb68379b77309db93d30ff4d1e2ed6d'
            '8075823f986dd63c624566c32524154791c2e8288562dad20e873e968537002c'
            '54f70d1122cc3a391dc41e180cae223c8d1bad3f788b6722f552b968e7c4ae2a'
            'e5feac2a5aba883defdd74a07c5644d61b262df822d5168f79a451f76696e5d5'
            '6b381e3bcb6b989605f4f5d94dd0d22aecfcee65b415a61be6cb32edd953a525'
            '30ad7e4fb9d8c8b4b3445ffc1ed744f2b9d5dd03bc5909d4e69685ff4b8cc89e'
            'fcc9251174c1b1cee14277e7fcfa0abdeaa993e9c2fcb46c9ca9bebb64a2bb04'
            '537bd4735417db61f2198cebb27ed55d813f4c1bb2fc7046978a51218eff6647'
            'bc356b73e51d63255afb1bcafa880bf44ecf40a7be494edc1c1aff2c55c479a9'
            'a9c15003d2c1252631be89ac1b3c722ea330b7e898934a73464371e3d91295e1'
            '9c429782701846b294751ea0f0786370ae7870cedff75a6f08a618301eb0f9ff'
            '9978df7459b5d46592bf135acbe3577900b395e67914e4b00a08dacebaf4da7d'
            'd674d2355f82cd552d7944a3128331305524ec3fa3a9ea089cad014848bbb1aa'
            'e26772b5472bd981bad41408dcf9ea18d6e43fdfb26eed411395b1d24c300b81'
            'e664b47e69ad12bf1a2284e1ae0ec5dbad5c79551df2eb4c9954455d1232cf1c'
            '74903ef5dc36292073e05552df15a5fd17dbab09520bdd3102f77bbdf65eb220'
            '5e240651a6f0d0ecb7ceaf099872c0996da5b7e6dee8293184ae0a200a72caae'
            'aed5cb9a82cf11fe4520a1889bc3ed587aa9976e3e62ac63060db7042ac1ee29'
            'd3c7f1bee0fc3d12d77af3282685250e26761f260998fe68ebb2540f6b07f950'
            '02ad8db63da2a4dcf50a15f4d32496fffdccfad53509553c97f256454f31d589'
            'bb9e27875466a9c3bc86b51ac5e2676156a7b22c689826c1ae460712b20d1eba'
            'e6fc90fc9656a8f9f440e657e63f1e6977391d4a1410f82d9fff58cc536b0e4a'
            '244ee834654706623bbd3e014c2445223eecbd0ada0e24cb0d424417cab93769'
            'd277aa5c16362193f791ce6205b52da8b26a7c377fe6abbec081e7543a909733'
            'c39631927409e9b2941df66a98083ab89b553e6500c7a3ad74c9b614ef9b3f66'
            '92c23c54580787cc7f67fc85845f4a205f02522414d248342782d4b3258876e8'
            'd7c019a96ec31f925c95520e59329448a39e661d9ba89716cb7b4f484293a8cc'
            'cd434a775f7ed822a683ba3aa45f5f3773eaf615d7d6b1aec855ec9bcd9528e2'
            'ece6e3bd27ede475f944b297626913919f2d3ab150e3ab28e036fc7e14a7f4cb'
            '865c224ad0f42cfde172207a939b25068db5da7ae0399ccb4d78376bb215e22c'
            '3afd8693af84ee9e2fcc7b23e80b5488a1e0a9d454d4a53a6da76a76ccfffb7f'
            '5d8e25bbe48fe65212b7b6c699d1568a407ce6a2f686bf07465200958be45b14'
            'c9024d64f9cc6bbc9e3c82b2ef755a1e70f70a2875ba2f6538b31c8cdc2a54de'
            'd958f7dba5974eb759754d41c7576e43f955434b06bd446b8879ffb1587b291f'
            'f5ab46bfdaf504d7d49acd76ed046664eb975997aa40adff4002eb4d49346112'
            '3b326f65c0e804c43048a78051caa9bbf6f790baaf25194a2a92a9a9d5c3eaab'
            'bfd3eebdb10fb8923bcad9b519f3eff5a23b413dd493a23b07c493b3649e5974'
            'd74bdfa2707a663d7a1ed3f02fe0f9a3e529becea7463cc24b6e198be07522d9'
            'afac5c77a0e98178206fa111c3bba50f665f551aed07e9f66b500c069c0a9926'
            '5a3ee9b1fb44852c12e19a4b0129d9f02103796b256a8d5e0b2b80fd47520002'
            '63c6446866f65e768c181217b89c184a86e164b0432265b06ac800d039eb82ad'
            '23fa86a9f896d2d83fd3892ffbe5a6d7a4edeb47faf7e450d7f46ece0854ca72'
            'bd2ca4ce51a824fb4f5d8804df9405565f9af7fffcb74ece1149c759f70a6558'
            'd8c67ba6af47d46eb2a6da306ee93e3125f863251da6f9f96c44fc3742cfa45d'
            '6584f6c3c5f085981d4c902b03411638ba85c69388f84b71fdfa238d4876e0bf'
            'ac5985b8ec241f18443e568b96771b838870a0818c1d1cdced9b9a6fd72a33c1'
            '2751e3e600e6a59a7c52ccb7351dc6ffbd3ca04c91b3142af02e8fb8adebb16e'
            '3e1a06e2285a0193326657bbd24511bf303963ae62b22a50e22a762e721f249e'
            '6e63165b89eecb7eb3028304221d4e0837caa6f7f5a6e2c9677e89897a475b35'
            '35a146434984c428813547643980eaa7b0410c99dc4b762fb547b87eff4e705f'
            '628813583a138c7b8de289f9b149e7450aa1724b20879aa550796996a8ebf470'
            '6bbbf58d2c33ab5ace35f5814b18527fbe08ad21215d3ea11fd2e7243852e988'
            '3b73d2293a895aab282e7bf38604f78dec1f0354f3e276ef5c7156bc872f8159'
            'f9c9b53310b64c629079c4c29fe9854f824e81b631c9bb402ab4fbd612648738'
            'f0eb25000bea0bb2497f30f234b57ef54300b56f94248685dbfe4be26a060535'
            'a42b58f2f1c3adaf00f5ba3b426c31bda6349b99b06a7a57cb337f38c12ddf13'
            '4fbc9625c635e5ed714977d16278fc1633f541edda6293328c7b27f16b771216'
            'e69cda2b59bd4f28e3a2d0379d867b7d8511ca50df167e7821e2d1e9409b586e'
            'e518d6f191ba77e358139875e1a06d17ff673dad4b30cd7c794659606ed5a89a'
            '623dfce59eacbc8d58b4899fa95d5539360f45783f6a6f438048f44778ffe34e')