summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 1a6bd4448d17d8ea78fb4e608ba348a905704787 (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=45.0.2
pkgver=45.0.2.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'
            'efb37a5be7251b3292543c1bc9e9dda64cda3340fc12b0b797e9564164e2d00e'
            '9152a817e5e732d3220714182dd6ebd2f40f953902b40e584e012d9424ade3bd'
            'ffc84b75ed2b0026582159dddccfa50d037a6f6c55f149a11474ad9262761641'
            'ed7539ef68238b42346c6c7e4dec33eb775016a701acb2b5f013c8416bef8a2d'
            '4c3bb7346c57bbd0cb4fe9bb9603b0be8c413c86e93cfcafc1fd067b08e5e9f0'
            '77690c4d73497a39b81d5eeec52a975e2a110fc9993e548d1d71f45735e6c6cf'
            'cecb1fd993ebce9baaca3ea0304f693694276c76eaabfc811b253008519a6678'
            '7981ad4c9a16c0917c9d2c5578afefd45060b57b605c1a23e65463ff254048f0'
            'a5d1086caa6e5de1dd7dac11ccdedf230505dc7a523c13e56add2d18ff464d5a'
            '0dbc7524b1f5f8acf43946cefbc57af49f80dada7bf907784635e976ce096397'
            'b38c4c20881a6cb02025d5bf2da93ea1fc2aad27c0894fe1b7668b9953f7ea52'
            '97bd48bf64f4f9c0dd5357e1280b53e21bf3c200e02fd95cc592e3216f269e1e'
            '79e1251e8c3f8be8159ca0cb8272c57cdd8d848b6a663b467e703e5e7dcefff4'
            '4d37bc4b74a9a5b6e5afd51af442b3768f32cd0227caddaf597ca24290ba6ef2'
            '67a2af1413284890fe72feb2c26aa901f626346299611e8c9057ed64a84bbe0c'
            '1633f9583f3f73778e4d45a580ffe744919674e2a7c06b3f46fe8b9ce08746ab'
            '2e873766c7f44e061b9b9d4ec77348ce72d023ae01315d831affcf789bf3bf21'
            '2e01d1e5adb306a81f501c63072e6c6b7ee9298461c2e6773b972a76f0f0f14a'
            'e6024b2a69953630c65cf667d522fcabaf6a822e01465a546baee21708125dee'
            '119aab8443f13fe0198ca4e16a4d837d9e6a04b0de1777a58b4f7152559d9e8f'
            'e67f715e3832ae1bace9775b06a02dedddf439a0ac842672a298106d226d5de7'
            '106901b017b74c7c3075a903f8f1b70df4f683ba88826bde47e1f804dc3557a6'
            'bef8d9a8682bb1af91d77d52e55f2f28c1631e375579a1a2641ff36ffa6162cb'
            '8b4f385ac3fa7da9bbbba1d96c2b06418b9d3731e3779881a7a8ea3811ffd8bf'
            'e7c54a732e655b9987554de8dee62c86e9dd94a0c2bb592de2100f2accf8a7e7'
            'ecb5beaf117c56cad545c5cf35cf8d7087b54e0d3242191370b805256a781e06'
            '810e0f057ca757566ef66a1c93b4b5b1c1b6a500f3ae09df9869df4c3f5fc90c'
            'a7fce5130839cd338c789b7d0c2f15f27e00039e232bd284a90dbf126911ab8f'
            '67ee8f3ee30cf18529114dc2cdda62688a40d0ffeb3a380cb36523f371b5cc35'
            '954568597d533dc4a2ee0f5694d6bb0f8ba9c975188f9be59fa9fa47bc46d3c7'
            '7fe6634c9543efbd285a2ad531a4b7941e159981c70ae1bbb7198f5e7b27cb4f'
            'add3e3b364cd347c9bd3c15310fe499fc8991584d3c506eaffbb46d702e3b59e'
            '17b7e81d30be1cb8b294e4573f051bf3e64117f3fd1fe0e18a7f63f23a08ed77'
            '03a845d7abbbc259fee731ff0514c6314eca9a4668ebf222f41c4330d5647558'
            'e44dacbe292e6745673bfa017548d952acc03ccdaf61e7b0478dd5a7d2cab5f1'
            'f74d40aebab96611837de2491f93d88a02ba7947680931b11c4ab89728a277e1'
            'e4ad2852109dc5e058d6f2c80df160f83de83e38c6284d7822426dade7051b7e'
            'e61276f5f21f5c4fcb5ca9e1fe3c7ea50835dafd61963741b6d671e3e297db06'
            'ef5bf6eaa89dea4850fafc47ff75475da63751ecf2438c73242bcd208865c807'
            'c976ed77c2af58cca303059a1d9ab2bb6fd020c2206ec33379a55f889686f3bb'
            'f11714fc7bf089f05bb228b12394e5134713083beee40d0279f18da231e57922'
            'c98d40f99a67de7af54f8ee06a973eda5a90933a46ed464d5140e3e9cd8a45e2'
            '4463ae66e009fcf3bc85248fe742669801e55ecdb93d01c9ec84d32bff70873b'
            'c6c07114077ee31c219f4a35aa826fc241f7771df685f3eb20be694ebd0b33ff'
            'f844f411bb6484d14e46c9a1ea069bb8eecb635a82192d0684fcde5fac50f7f2'
            '64346c40e7da7920cbb2d4f1dd05d65600f49c925152fc1388ae700463d16097'
            'bda2e1f8e1fc1fd3463259d1130da0e7f8a022eb8cdc4ca1a35b9c504cfdc49e'
            '9d293f12007a834ad2bda436437b7de1939776cb516b7306c91078caeb70b1f5'
            'aec53e67edd8bee502e6c9cc455c2bafaefb36adcafec3f60a5e42390bf62b3f'
            'b13120b728c5c0313f05b5aa803af1b3a514f1d861052ecdcc379d2a0d4ada00'
            '82f60648ef2ceb4353d0a6c6d763678e208746ef38d940736eafecf5c76cba6d'
            'ed0af4fc19739d9996d922e5ed7ba3111f2e401f2d2904e1a656db08c754c6be'
            '0026d258d16e43fd62c898c2f47143802c34f4b38098ee5342b3b46c184ddd36'
            'b467074ab52736f0ea9abf4b56a53f260ca7d7cff43287b4c181c71c2d1632b8'
            '5b93434cc217cf14d896b3bbbebf1f35e3e0e9b13cae6ca33ec20598de782a7f'
            'f27b8524f4f2163794641761016d06d7b22fa44299a951b706a40282a71a8f56'
            'bf8738eb52f221c07b1fbb8483868d13d0c6cd9a5ef86652ceab2794b94d42f4'
            '05ad074e9952b41a1a78c121999c4726b82e927faa1447247adff4f7df72763d'
            '606842034242381b4d48c4756a18901653036556f5453c024449ece23fc70191'
            'd8a8c287e739fdcd485ae0f6074238d1903d663e87fa58cb0443ee4fc3df6beb'
            '061e0e74a01276c61e99fa9de303c7f575d9eae2f8df07569b98744275cf6a1a'
            '9ec27cfc18e82592c08cb0b9b85431a0f3d30b46f9471e29d83db42e0910a39d'
            '122d2011aaec9e9df1dbdad00b95a5415e6fc7ef9a8cf683e8a95f44af6f57dc'
            '2738c50db88f6cd929a842db5ab7acd26493d2ec5a6c0e8f970daed8f5535841'
            '221b62c85334e171d06ed6518e48d837034d4f38b5a9aff0d184b0adc853aabc'
            '75767d1771d0831b2714ef8e546e9152e64a1909bef9128e4227337f48af93a1'
            'b97ea94db39bd5cd341c72a11228bc466bbb3f27f09eff61b2a78199a42edbd4'
            '36b8ab80ef87bcc94f02c58d3dcc9a715e5036a638ec36f1feb5340305a36987'
            '107729338bab8d75c050e1573fafe30b98fd2500eb9377433270682c021b2ddf'
            '760a1b6be0a8da0b6d6e4310b6d650ece63ecd38798333e878748ce2ec089e21'
            '64adcb3bd5d8e35a5aa38c55a5b09bf746c8e6f645f64e27c75e4dfb79436f14'
            '2f64f70a5dbb4a4f27e7af5ca55e5b58071ae5df5b5b6116dd6b3d663b313f84'
            '987ece4aeb65a0924119fc4e9314f7f97903029e1f3dd7267354617687c117a7'
            '27f881cdfe596eabd20c1b200981474559e7d7a441be7bbcf8cf35ec9a7ea8ab'
            '1dc535f6d3fcabced5798b3369d2cdb252ada5938b920ed8b459ecbd06752248'
            '8b56b9d5097ac46627af733c19c1fae246c6fa5dd12c7d134b63bf1abe7154a7'
            'af18a66dfc22cdef467dd1ff7a173b6dc6b324ff674f8737d8ce337164053370'
            '58c887131041da4b9b41c4b5d24f19ab2561d1cf9b7c6a5d3fc9983572c61aad'
            '7ddf8c018d1de4edd86ecf284e275b3f6b3f3b21401cd606130a2198c91ae420'
            'b637bd823ac8d9beefbeec7521d217c83c24a3838339ef6fb584faf03e95f59c'
            '76fbbd6588023fa3cc15a4b6af30daae52e276a8e997c076cf22490d0809645d'
            'd507c23d977630693b4817fdbdf9e481e5fe7abef828775261dbe067a9e4e908'
            '97fdc43c8d75a9cdc0e1be97e918f2cfc9b5280159e7de657b85e9f38f7cfd4a'
            'e875fbd2ae06820601adb613ee7ecbdf4c8fc17f3f12cb1d3910b6b5f9b34a24'
            '9c8afbb66756da8aa7b03524b07018654e7922dea00d6a1e2816c0b1ed0b1abe'
            '7bf92d5d3b1f62c999ab20ece3df79ec2e46779d943ddf72ed1d2f23cd49893f'
            'e789475ba7b910f97de08409f42facfbc8e2bd50ac3a671f3df93e36a8136dad'
            '07b8593cdcf8f9b23edcd97c98bb706456e3e2607c07a5809dd05809be260f48'
            '3a342835cdb918b1ae03cd980519dd733d195e63ecdaa5de1b3497586a2f39d5')