summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 39517c2cbcf72460828682b868260828e20410f5 (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
252
# 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.1
pkgver=45.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
  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|Firefox|Iceweasel|
         ' $1/browser/chrome/$1/locale/$1/devtools/client/sourceeditor.properties \
           $1/browser/chrome/$1/locale/$1/devtools/client/toolbox.dtd \
           $1/browser/chrome/$1/locale/$1/devtools/client/webide.dtd \
           $1/browser/chrome/$1/locale/$1/devtools/client/webide.properties
  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'
            'bfecbd8c3196bcb72597d9313fee99cbe78995b3760106c16d862dd80c3dce89'
            'd0b4d85f6f3260cbfa27fb83be0cc11d224a37106c7309fd71aaa32b5e20ff03'
            '8fda82ba873fa73787afee2ae0e0f88e183f901dafcbe5866b79d6eaf4ff19a7'
            'd0fa28f972326c9da83bba4f92310ee65d577b9c3a8520a09f7fc2704c64573d'
            '5fc518733fa7bfba6650473f2d54a1cc92fa7493c64ccda77bb9776d4308d78b'
            '76b15d58485d275eb6e04668b75b5d5e91f644d6fa83249fe7ab2d796b88ba6b'
            'b32bba73ba76654d068cba967a0752fe11e43a0a2062d269c8339d87973e11ed'
            '18118c91d5d9fd8376b175e01894a377bd945614dcec67e0373838b59512d682'
            'b551ecb81f495c84957d433db8d10dffc7e68cb616bda261fb8396a0787b68a5'
            '64725b3e3974e58580a99b56ddc3674f217e7ffe442cbd93f410ab4807719bf3'
            '44561d72423124f708b7ec13315b961a8e1cb9cd5fdcdcd06ff939e5f5ca456a'
            '26bf95185251b8c45a158cf68326070e7c3d5bf66bdde25dd175794b381a8b6c'
            'a0ff84f7b3b0adc237b6d9e844a96b2d8ea2bad19e136995407eaf59a2cbd45f'
            '7d9489ea2d3d2fafa2e7557e75e7df485861466316152332a4a20311771b1ca9'
            'b4a504b0d68a1076cc62ae7fc2aeee4fbb6a4e7b2e88139209643694e49cf0f0'
            '3b9d430c65e6ef81eeb64690f9ce64e3c040f461ae1e6aa8c7466477c16e6e1a'
            'cb7cac876b49e95f9692390eaf116ccf5a7dd4ef0ee72d597b4e517ebbb85c0b'
            '123e04c49962645a18947efb04b8e5d3fc162cc0c1c184244d0cb2cbf4c8317f'
            'b5189bfb9221ec3613c3604886e4af640ac1b2fc820a2748d112615ab6d84660'
            '8eb0b4fd6fc146743688e485d0deb56b5ca9baa65fec5e776c2bdba24d157443'
            '3f885c1d6df7a13f0b4b33785bd15f577dec52f11f80cc5a771d504fd6519708'
            '8e99633fc46f8318302dbb636e0f1811e38c809988638f6bf6a98d5b74aacad7'
            '5c207f5864ea6aba4598657af36ab59009f72a20529e2f69ff6394e09180b474'
            '90872a58ee2b7ced889bf9e05e9350feb78e6b8cda4fc780325a3e868257ffe2'
            '4e94a545ea6a0f4a718527beedecadf92556bde9d55216382fac090c69b9e127'
            '564a1dad93ada231367816841a91190ff140661742b1035633c945284a9032c5'
            'e02710aba78845f6eae241736a4ac279585c10a9c12fa3e231ae6e99ece50618'
            '8733b463d7c609288bc4a80da064a3ecb59af42107ce156db4402df5b47005b8'
            'e5dc30c260897c65c62d3f052a16b33648955cf4ae3edc366080f81478e3912a'
            'e8c611cf2ca4f938dba0a323f16eceb1d5e696d581ccf2f0e89cb86d0258126d'
            'd31c33931ed4bc04e7b30f44a7a500f8934a60938a8c728052fb8fcafe8b1949'
            '9b94a66db6d0da6abece2968459227ba10c323b2515560d5513e150da7389b96'
            '3852ed894d4bbfea425d49e61a1137388b12a66d720e16ee8e7db0809ae6a051'
            'a5e58052b875613255e004565aacd504f5e2c82d4daa607c0b64801fcc761105'
            'adc6a7696eb6be2fd08f93ca8795a54787d499b80f04263bc10599365353c7ee'
            'de6990704adfcce0bdea29a53946afbf8418f57e62ec5b9984454a920e1088bc'
            '962376f41f570c78668a79c35fdf7cff52eba94be8adffc9f1073b36c51dfaf5'
            'e599a750615eb8e22729bd236badcdf991e450fa71c6f09167d342b05e9360ae'
            '9a41d4d2f18a254c9f5416a58be6d4cb1e93028b7d29383876b1e5445ce88e50'
            '26d5ee962a69bc71d87ae1bd0b080b26862700b6fe5f7c423e82f7e28c3a11c8'
            '8fadf559d0bcdd16de233923fbdce93d766898d7247cc560c49d535aa1a63bc9'
            '5c28fe6b8d593b624f754eb48183039e0fd3cbc7f7f42cf018b196f51a6b1ffb'
            '83b991eb76554e4108b659a16646bada15a14c9f805246094f18373ff0e1f866'
            '3d595fd6f2d38df49ab82f7a074e912e2879ec3c0db9e74c6f86662bbac7bff3'
            'e4aaf97614f193a151032c94f30dd69cd00d401400df650c327c75dc1025fd15'
            'bae1c6c55096512357b2d3bca2d124d6e0ded8f2781422eaec53bdd2d1dc9e2c'
            '6249ab1fd56b5c013d908253f140d2285de8c6c8912a5f9d2d4744e8a5e28012'
            '9768e30aaf513296f31e36e772f32fac991980cb7f7a9de95732892aa7dca9a1'
            'a1f443992b4c28614cbde849a7f593d55606ce12d81776f21f758517fdd35a8f'
            '3ac47c61d5483cc9b99eee1ff46590599ac7bad5efe3254d430db0f651d18ea6'
            '8d5bc5510b1c2ab936523b0310cd5998717a0307943085025bf6bffd0e7fd33c'
            '8d1535ff4e8bdb8c9fb64e34034f165face428fed3b42a46f81862f35c5b68ef'
            '97201d6e5bdc11d5e927cc93bf922dfbeb3387c3028cc2a3e3d3d4027e4716a9'
            '46d8c53b3e13248f004d58dfe34af9d3c5ecc63a0cd1b6668aa633310023a629'
            '2893c7deaba5aeccc5747c3eba74f0cc0ad7e5fb443acff7f2577fd3b4d4ec90'
            'a2b71586941b259b0a7b1c850b60a1cc66a6210fcc020a68126f35e70645e8ac'
            'a338518396ba9a06b24b3d87ca3537c1b95286f5d3e2660eb1aa4126eb7c8856'
            'a3b3626d56aadc8006748318f621b91ee408b57612ce4fa4f23c168d57cc1c6a'
            'b72f04d6e22faee33715bdb9138f3ae6efac52ece76e3e12813d63e607a560a1'
            '4abfbec9b42017c3f38faf7ff04733be2a9b97c2e12a7154f26796ba13a42de2'
            'bb4d804e462e8856ac007a69e82b1a049abca8920daf892c68a308b44b7b27aa'
            'b839a63bf3f56324d4c00a90209b2875aa50ba938e15ebc5e4d7bae9cc36fc9a'
            'b366a8b4225256badcf30add565a24e63950bcb8f9bee11d9d3994d0365ba9dc'
            '01cbad2f574040db315695aef0f4f3ac86ba954c229911bc80655fd279436680'
            '9ad57d569a7905717b50049b1c5837220f6432ecdc3b17ee7286a5c28c6eee13'
            '38dc731280948f5a95ae5cebf95481db1300153488558dac7c12b18514317ab5'
            '03381d564b052e6a3a72bab4a397c1bc5d4b3323e70fd84b5562ec7baaff3132'
            'ca2895c07d8a109f17db1b85d28a64d14bf9c54a62a34d6eeafc55c655127ea2'
            '607da2f67887229c414407e61971ffc89d806e8b2ed08feb25bc804558f1dc6d'
            '147bba5fb3f74e9edb1f5c8e16fda20ca077e8a16f98335661afad1ac054aa9d'
            '0e849b4040a73981f2e65091f9246abeb91285cfce55590a3a83ebfc7b67474c'
            '7f9f7923c8a5ddd9ef710e0647771fafc43ef60923ec3a4587eec894dcc1c599'
            'ec8f2f4aa282b77888d3b59d06be4c45a6d2e0fb1fbbd51037f4666044d4cc6e'
            '7fb0fdabf32772687c1712642fa6540909a1e8c6731c0d335e84f2847a7b3dd9'
            'b874e0db65cb8baaca505311af05a4714fef57134faf9bab0c552f79299694c2'
            '63e3c5bbf78c42560377750d7ab9aa005b2af89d5e4c49a1f6be13578d92aede'
            '53947904925157ff490ace369c7f2071d3442335ddd4b0b1538e79b43c4c5b24'
            'c221481f17155cfb414a3b1c09ffb042186205e885939c48793095892e3e9ebf'
            '79d2328023982b88e1a2324cf0e4dbcba129e17bf5e45f7dbcb307a8f5f9690b'
            '12d6ae4147cb6639a61e7bacddc84f54d30ec907a0ac033a8ea8a3acfee37f7c'
            'cf5349e6012556e35bcc206519ad3f407309585a53b8323e2f82c1fe016e35a8'
            '57adc3d7106a145ae529db6c98679b4f6c8ceac1b03fa5810cfbdbef41cca47f'
            '6477212c022fdd92f88b11a92d89b29dd41c421ca7c34b34265384ca41a5c1fd'
            '9859be74b6a0a926be952efff9e46ad0e20341a883ff880658eb9220fb556343'
            '3b8529725ea137bd47e61891d81a85becb8b9b28da3eea5d24fb0eee95870474'
            '1ae60c460ad2bb1eb7bbd86c6fa463422be01be56ba623dee336671d6e37d9c6'
            '638b3ac560c1e61f410ff8ee53125e58d6a0fe7e7ae9ed6be6ec32080199419a'
            '69dcf93c1e3ea55d248834f653d2d80706a1c91038f745b183f9f670116728e2'
            'b5ed300a15623e1f8207e5b566864f2cba8772ddcec5fff460b8b37e5a9f2cbd')