summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: d19f25b623853724ffbf6aac4b55124478f9dae8 (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=46.0
pkgver=46.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'
            'fed4c0742afbe72822697145f45fd724146bf49ea2cdc938fdeca4e69ca7261d'
            '46b12db3f2d6ba7cf897323a2ecd5d9ba249f5081f1663c6d3b802d6d038ddb7'
            '611ea5d95e608fd636093c58923397d13e81b2ea9aad6f613c7811e944837d03'
            '9385a0ef670e4c3233d76baab390af50c52fcac14522a4748e5225528cce1444'
            '6f11023309830b6f23d122d9e0b96d552a4a618a3464ec21d427b2a5445390fe'
            'b474df8eed6bc429152cd76a35a5c5e138ff79657abfb02ca1e95251dba43410'
            '53a87320e345eff5df43e7986f19da7b4edcb5b24d160098343793575b4bf37c'
            'ecc4a15a4de606cea61314d7d16470f8f25415689f35a286044ed406237b8132'
            'eb3841f86515949df9a9f6ebb94b529ad21915eb7ef3fa436f1185feaf9ed093'
            'a4f5d8cc8662399b2ef99172cc65d48c19660c7d8f6c022888f20e4b936d8aaf'
            '6c1767e4830af887b044437a06521a05ecb6433e38729021eb17075118f12310'
            'f7aaa06e800816ea4051fd2ebdb2df8dc08e4a336f966b91f667a3c1cd6332cf'
            '164e8f0bd85aeda4d06a10f71224e5c934474c94f0758d6421eedf9d8141e3d8'
            'd6bfb1a3a352cf7f5b9359aa79e3e8524c62308a3f693d2371a8d0202478aae5'
            'e8c4fc6792b12c074e2faa2e5aba3a4ebe52afe9c16c22785ada5796c6e1bba9'
            'f1e2139c07a6520a2b73258e45b7f74744b7863787ed2e629f29fa65180cf2ff'
            'b12d113a3d9d6dae0b7b7cf4e8e0e1e3fbc83bcb7527803d76940ee43bf90929'
            'b14c26fc8793d60fd1098f2f8caf0d26fde877d9ac736ba6e541725446135b2a'
            'a599a59056d86ad68b3c248525b3f4986e28d98b060d21d94fad6e813320bff1'
            'b778555f9cc12ff1beeea8cd2ce6049d8410df8cb283aa7b9b58a17d226fa6b5'
            'c4714ff0d8750378461d150222716659cc95827344d2653ef87a59d595671ad1'
            '978f834143a5179418641acc06553103589adea8d0e6b6b393a09a319b1217ea'
            '4a064487f8e71b4572c087d16ce4b43059ad74171173e68bb93c0e433160c942'
            '29545eb48f7bd0c271de03fddf75ff5a25787b214480ed248584eefb242fa28f'
            '58bbe653ff54178b1b774333acc784b4f7e44d23c06ab3d280a618eb44919829'
            '26d03abea3ef085ae8f58c2a8585b3c4f373a1966e3ac0150e9ee126e44b091c'
            'b13a25a3f73308e70c4f9b27dd5991ea0abaeb35e2ca4eaec62485673b5d239a'
            '0c44f7f904eecfddfca3b230960698d1354194c9d61f16275efc8f1fba136a18'
            '4205ce50589d7c13668db050a46e3d51e99848d9cf56ccee8d963c9e82984ae4'
            'af4da0d7eeea69e056d42032762a69c07f2701b537ffd1cc6043ef9ded81ee69'
            '50a25095e330031c76f3abd715f4eb0304da608e7800d425a6027b7ef45b2c5e'
            'af03d0d3a3bacf96911e6adfcb132b2dd8797f1711b1326479f4e771592e7fb4'
            '6e795f71f1d351a860351b5fdfafd51739cf91c7ccfb8dc9fdbfc9d0c75c1480'
            '11c3cab12d0b977fad9160f3a1504539fffd670184aef9dd25b8612e09ffa6c6'
            'f125b502fe1c9d9de95ad5d9a8813a09005a61a441d72df2333ef44f87b63825'
            'bce8174b84a47bc02424b12ce40432de8eba92c21c46e769bc8e14d75c9f3dd0'
            '4036f0d8fafbe22792c8d694a542fe0ddbe32d93deb93a78e93e05b294417875'
            '0171e1e407286d705bb150d0add35235dc324917e2ea4907a6d473f0111efb4f'
            '64e574f4b80bea11389ccbc951f9369dc26aabbc0f01346c86ccf4caa2f7d671'
            'ae790d2392e74b9c91f7b60bf51585bc5d3541b25445834530e0f74a818ca321'
            '45702138fc4fdc28b49b4d4cbb468617ff1ea6782ac613d530146b7ac6564998'
            'd09bd205ca032edc73bcf6a397303329b683f86cb86ef2d68080e09a90ac0845'
            '1d992b99aa7248f17c02b1c91c445f8954e4c9ad59743a0773a8b47eb12da5ce'
            '4bb111606b82e225d58f225685206b3dc9a366497e8b30652f8fc97ba4f83d5d'
            '4c37aa4c63d09b0e2037d5056fae12cbbc1d168d6dc489a42a3605f296cb0f2f'
            'c31226896c8847e29aa19f6dd1115145409ca5ee4c45f0bd53dfd02430240ba7'
            'c0a83dfc0e44a4a7ea07126fef84d6e68ff1965b636ad0ff882433de9649d380'
            'cd770c0fe5b9dcfff7056c08441d0cf9b0d3e8e4088c02510a4959f27975d77e'
            '9072722594eef1f73b76e2f69503757589a7eb69eb7d714e6be1bb9cfdd21bdb'
            '08bfecc3e683fd30b91e9bd68b9382b0448460b9db08bf1705e1eecaf0bac2ba'
            '94137ded181bd55e3f9fc70e89ebcfe6b7908dfa41a0c70fa579f85f0ca6c253'
            '586a10a626ce066ba1970d7d8e30f23177ba657942d0d4348c17dcb13b93d529'
            '35a39b0958ac5ee06ff0c2355da39f2158875fe5b6f50395ed01af243022ceb5'
            '7e3b3d1a426541d2a944473b999cd2d0cb7e19ce2f5010b92f81b41ff1144e6b'
            '23a8313e98f0c635b3dbcac68f68469c6dbb9b66b409779c1a78de033fe5b208'
            'd15d0e26fd8e3235c566e5bcd29a8e6cb1bcee5dd40c6a941c6e344506540a6b'
            'f6dc411db917a9ef0de3a5f0697dfc78cd2c800c34255337655cf4efc03ca090'
            '644e607e4226756ba15df243059ba5f0a7bd53352cafc600af41c6621799e8e6'
            'b9673c9bd3b816fc8dad6ff7f1421a595bd108dd43aa70961d8f75a5671aeae5'
            'f632e20b453350166fa4829421fdadf9caf47f868a03b8d11ecfab6a2e5ab1d8'
            'a4fa3fbd034ff9d411fd066a9450586b9fcde50fa1c1e62abbcba8431a3bf0b0'
            '07202efd56d6bd5eca50a6a42b325267f9a867ee5cfbd2945fa90ba4d52a519b'
            '3dfc67fafc82fa312db50f2692a8c4de38cc4930162704e05a9fa05154f3dce7'
            '13242257b9cec3d6bea8c453b48103e3a312af5e25aca7d415d62ddd3f13924d'
            '01ba1055c33953962949f7717a850d81c27aecf7b84fef5f5d09827a302529ea'
            'beaaee2689247170f69902215af706ada1435150c5a003e3f57e01824d56335f'
            '05e0389cc6e808ad43c5c63ff34cb258dcb117e6f5ca5296e8bcb5916918dc04'
            '1445768139d1f6446b7bbb8994fdcca244879e076508f117346e54b0eb3558f1'
            'e34c96e262eb1c405935b198e110ee66e70137207c98244dffdf575838c7c462'
            '9535f8e33f333f05064fe79952958a95b182467705935f50ccd4ef9ca293e923'
            'ade9d780415b51e3f33e8166addfe630e5031bc76dcb61886d6b2abf3be79bb3'
            '2d2813de241fbbf8b1635fd5e1048c06f0d8ce454d725ed54ab3ea3974da2505'
            'efb0f41536540d2416f515466738c07ea84ab9ef16255886a76994cf1ee0077b'
            '7b716650c5e45e15050188c038dbfd8916a932db0f77b79f0543ff556c59ea4b'
            '1a43d30c62acdfb7f1dd999d7024e060e4f1585ea6e8e8644ba117146064b2cd'
            '3fbc8ce72b144388a5cf086ec3564d3b67d763d35b3ce850a5b63e9ccc0485a2'
            'fa6256f44984435a15ce8b21fb93e27723b06e5f818b1fab59540af56188c2bb'
            'cab87a556aa49508eb6196cfd8c3bc282692c45aadf524adc48ea6034a449df4'
            'a878876e86ce8c92d13eb083e8c088fdcd24fd6aab03b1907f9d1a31668458d5'
            '44e3c0cca2ca5ac747cfbb4c4c424ebd62c200f14cb0ccf18315000a350e3a60'
            'ce01126833f7707550e7bddbcf0cb89686b45b95186dce08e530cc6615e1ee84'
            '8bb483e006ec6d75b6c1ec2daa2456e6d4fde8a7f592889629edeafbb7bd5729'
            '52ab3ee5d26412eed8848ff98c00389ae23013ebb231f6548dc4cd4c4caab608'
            'cb1ce0a6fb9cd724f235a47e685f08eee1c24f20502d41ac55c1b985b39dfb83'
            '5fa6bed2eb75f7dda1473f9573f6421eba6ca309c48933e3d759b0bc93d7bc22'
            'c34cce409028112f1985c73096277b1ca53a6aacb4b6f37d3a1c75e9f09e6426'
            '5b27fb4df7e15f5e08ab2b38e7b488aa4dae04c103bbd32e1b845995e1409b2b'
            'a21c2b8dcee8df36fe49ab59a7381668ad2a471606eb5fbc86c6e1d456daf54a'
            '2c363a59e3447698abaf6442ba5d5bd6db18c0ba0f411821b13060d13b676be6')