summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 14cd2581b36c1475b81c33e3223975bf429d114f (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
# 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>

_debver=36.0.1
_debrel=deb2
epoch=1
_pkgbase=iceweasel
pkgbase=$_pkgbase-l10n
pkgver=$_debver.$_debrel
pkgrel=1
pkgdesc="Language pack for Debian ${_pkgbase^}."
arch=('any')
url="http://packages.debian.org/experimental/$_pkgbase"
license=('MPL' 'GPL')
depends=("$_pkgbase=$epoch:$pkgver")
makedepends=('unzip' 'zip')

_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"'
  '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=('region.properties')
_url=http://ftp.debian.org/debian/pool/main/${_pkgbase::1}/$_pkgbase

for _lang in "${_languages[@]}"; do
  _locale=${_lang%% *}
  _pkgname=$pkgbase-${_locale,,}

  pkgname+=($_pkgname)
  source+=("$_url/$pkgbase-${_locale,,}_$_debver-${_debrel#deb}_all.deb")
  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,,})
  conflicts=(iceweasel-i18n-${1,,} iceweasel-libre-l10n-${1,,})

  bsdtar xf $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb
  bsdtar xf data.tar.xz

  mv -v usr/lib/iceweasel/browser/extensions/langpack-$1@iceweasel.mozilla.org.xpi .
  rm -rv {control.tar.gz,data.tar.xz,debian-binary,etc,usr}
  rm -v $pkgbase-${1,,}_$_debver-${_debrel#deb}_all.deb

  unzip langpack-$1@iceweasel.mozilla.org.xpi -d $1
  rm -v langpack-$1@iceweasel.mozilla.org.xpi
  install -vDm644 $srcdir/region.properties $1/browser/chrome/$1/locale/browser-region
  sed -i 's|Firefox|Iceweasel|
         ' $1/browser/chrome/$1/locale/browser/devtools/sourceeditor.properties \
           $1/browser/chrome/$1/locale/browser/devtools/toolbox.dtd \
           $1/browser/chrome/$1/locale/browser/devtools/webide.dtd \
           $1/browser/chrome/$1/locale/browser/devtools/webide.properties
  rm -rv $1/{browser/{chrome/.mkdir.done,searchplugins},chrome/{.mkdir.done,$1/locale/$1/global-platform/{mac,win}}}
  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=('652dddf407ab9b0e00ab8cba7c1ea9b3aff2a8f7519966010fd682ae182281c2'
            '79aa33fdc4897a66888467c717264e0c26937cd5a768ef3d221f837dffc39621'
            '42ec72f14926c2acaee8b9936be4d6e60884f4845140d8a82a14df15edbdd827'
            '0cddfe2726b8e0aa71a54d7dc06c662d46d82492212797030318f56e82ceeab5'
            'c1e2a4a1083db09c50e0598f5791313199702d80524204151f79b2df0cc30c79'
            '524263df2f6f1852904d0a2651ef7ce375f90fc39aa749a1d8e210385f0766bf'
            '990745f72c97cfd1d6b4442d15da7dbe6af45c06cd4ea069a4d7ae3e447ee0ef'
            'b5924e8cce38e6ce2790bc99e0a56e0096e1f7aa061d1636b4c05db1205083d5'
            '0eb92568aa88a8800dad8b06434718dfb513c67143c525b93bbeebf37602234f'
            '3f42409a74642a81883f1d19cbe8a64baccff1260ed4325ccbb68ffc33709ed0'
            '627a866b6e3cd5f5739aad96259223ea6b824c401c5081ba8322b1a811fc8a32'
            '72ba0e9fc45ab383f149eab2f6af7b255f682be6086a4f39ccce5726989b8449'
            'f35f89bd884bf74d9b848bf5dfcee76e3d31576a740dd98ecdd3543a0867a016'
            '2a743c837d3fb460b59d15e9b95d65afc11a23c16103afdaa33440a8e821b9a1'
            '3ef56237a43469b508b15ae9374c233900e70181a7f5a497f152a9ea8297acb9'
            '582f1e5e3b3f8c86a874d5fc65213d75bec377951a73ef2f164d8d6154b8de6f'
            '4b228c207734af2a9e41b61bfd4752575c2536d6afd8f7fb8660d7ef05cd0ece'
            '04b80bb380b957f3a7a39fa5afed8c18e63c39c6bf990bbf433f52cfc4f32ad2'
            'a2abd87d5aff9086595ab1334e4b1de46f7dd6d990fb629b85ff19fca287bb7c'
            'decda58f6b7660605de707dcc2af6a88d5124cd488a440e9a7288cfcdcba8659'
            '0e57f5d9ee5993d3443735e114c246d7460abf9c18d925ad395eee3215befa15'
            'e4f76c0bf359ccd5f396bbc9632a5f7c85df8bdea8c6176c61f0bc209c29b267'
            '46189abd688cae2281110c7b082d637578e103044ea1735439b0248a048e5549'
            'cf33bc2b81776c9c2efbf756d448c7a61272159a2a9900cfb45032c0f321f27c'
            'c622af3a355b587d6a8e5eea727d5bdfd836f49cf619e29b7f021eef48994a5d'
            'bf118ff3b896df68a0a138e3f6f71458f7e6c9ed0a8a400a86b4e585cbe176c2'
            '65e8ba2d8aa0c6378928bdf34eaf44a89e324e33dfb24f2346dd5a4b82da301a'
            'd1fee32c76a85da5926cbb8fc89a18f5cd7c2a4a7b4a31704588460fa07dde84'
            '93071ec029ebb98a2a077df29357dcacb65b0954e6406de697aee9ad58c4050a'
            'a7943a17d756f4efca93e14a1d7f00594e1e35d6b0c88a866cd9ffc79ed90778'
            'e998c2f79b931f15bb7535307bc2ae0b15da80f221cf59f4c6c339878b80445d'
            'b9fd3bf25094f24d54bae02fc27c49ef72998f9d97dbc77c0332e40c978e2057'
            '986c491ac615b29cacd69b98029041ceb454d9f3efde0fbf6a45c8516c6e9abf'
            '6113b7154323bf4386a2d57f2bc24080b22fab756f4ba35090de6834c6c58da0'
            'c6e2bb9a3bb55d00660e3a3c851d446270325be492bc52ef63ddfdfed61a3002'
            'f3855f8abed7bdb3d51f1db5c237871230d395819cb4fab0c350b53799d323b7'
            '22dcc5ee5fbeed7ee60ad2efffb0395ab4f612947e11aa27d969ef72b803c71c'
            '024438dd9bb4d62973eed21552f656946f176b3416e5147432abaf0d2ebac987'
            '51cd0192733f2164ff5742caeb565eab79e4fb6dbeaa057994529a298d7313f2'
            '7f3bd3a016e5af6f1a7f11a9492f1307220c2de7ea81475dc65f928a5cc0ec92'
            'a9f70a9482cc214aa2abcc59a373040e92ea6fbd6a608f07c15ff566d9c7b40d'
            'a5cbf58d9a244d5e099f26b7259e39bb7d850ec9a05a1f5fb6130f847c9434f0'
            'c36b7eddaefd2de20378be50b59054b3a60d1c77f122766920ffa213b483ed8a'
            '68cd6b6879d51593945c2835b04cc463284e18f366f3c9975b20b6608f3e571e'
            '529c304919ecc67aa3364b961f01cc60baad0a28465c3a53da15c00a43b200b7'
            '5aa2691a907b583a94651d11a847487ec6d38e738c703d73731f5b66ada84f84'
            '2fe037cb9b191390092b1a6ee3358bde241e0ec4928b0ba8d49835d61c3f776b'
            'e7c85278e399acfafc91f17a4f51fdbd80cec417d41a882ba47e6851ebbff1da'
            '812592c2fd5e53969f84798d3f98c27651070ea2434861f322d80a872a090898'
            'eb3d7ecb26ca68863faf3ecf339511f26c3a8f9327b1207b901b16858b9a5b7c'
            '1f6d8eecf62644f8a05cdff18188f4b0c7c7986aa95b1bb7784f9d8c7050da47'
            'be100ca84a21301697bb12d613548c77fb8c44b0d69e8ee574748689fc200cf2'
            '523ca66b2b4249ad6cd18e8433a28286c8acd7b60f94e0d64f29719783bc0e1a'
            '01c7c7f455d0acc0225dff20114bee82940132304459ad7da94748318ea6f02e'
            '6d972b57a21c61209f7ba79fb8f60a4bf8f8f295535ab56644d17d96dc4a685f'
            'b6b9fee2d6e9137d1ac838651db6e139b5ac1fc611709b75f692607d2b039f62'
            'f45b5f73e9a879d7d1e0d50144377ca3db5373f7443a822d260c6b276f990937'
            '499e8103d5fe45ebb13dc10c988a022b2a604b45624846b42f00c5d67670b5b6'
            '02c1551766a0a071a9af695c423e968608f8cfc77d8ec669f71ce899cf6786c2'
            '63f2d016b1547e8dc15431e3c12d78f2acbcdf936c2e88e53740aacb6d245937'
            'dcd8ba6881f1fb56c614c19fd9e850d4e24b9e5d37a90bbe88c74ce14eaa5f88'
            'f634923d488920656689cf2afa8fde1397dfb96158bf2cb558bdbeda573c6093'
            '2513400f6a590a1db90451fc424f9de539202049d6f4cf99798f9d69795d5f5d'
            '7edc8006af08e6f30b209d5e1c348a0f6054bfb29aaf77531f311e5a58169493'
            '6e8c29730463cdc543faca70c5b2e6016690571459542cc544069bbc132717ec'
            'a71f0e8e0be3179e698bf9f76c06f02f75afb7b72f636701bae478bc0b8529ce'
            'd8465c73f5d6fed8cfc6f8480f5875a2f7475f13e33a940ee97890aafec75d45'
            '63e5e5e199b83f18a6a0aebae104a990891e4b71019ee35541ef0e9503793818'
            '1630fbe78aa770e37ab96925f942645e0d2aff2f442aab05c5e0e9fcd9ba6edf'
            'eb1fd06e0b9c53106b52ca766a36509121d82ddeeb1a8abf5e98a0bcb90f5916'
            '0b229c15cd02f1c62d0aef02c523e29b7d5d26835be31487d718dafa059a00a0'
            'ceebce362022a0c00a70c5dbcdd7520b8330845d33b6466918f2560d66387d84'
            'c9f603da3b2161c811898d4195cee2cac7029a5b27ce234914c20a89ccd03670'
            'fcc78e668eb16a5fced454e92042aed6ea7abc4f7a0a6e9905b523491e060265'
            '9c459b376ebc883ba788b90e3e55a5c01f6e44151d7ed6229cba55d945108f26'
            'c613e04d30059209c75f0d496a8a13da780c9fa797bfb14bfd64cd08fdccc728'
            '563b37cc7f931c04563ddce4906ff8af681274a128bca1fdc9d45a692dff9534'
            'd20f3ca108fc1b7a6ad905c6944c90e671e46082f752ee5a2c18e3a7db1e8bb2'
            '46a80acd7ee7b25d8d37a92d709f851e68aa49cf457bcdfbf0128bf7597dc075'
            '0a85653e1667b78c4a9ca006988ad95048a9518cb90c05c1361d3fdc12891e70'
            '62870ddb6b022d6bfceb841575733d605d6a7ab1f80de6014998d8a1e105ae73'
            'cec8edfefc30f5efc734dd94db57316fe0bf974d0a26af4d7062ed3cde261574'
            '5efc45382b99582277433a1574148c5b5cfe2f24e7d40c27959be7ab880a84c9'
            '34f1884b4b1fa94e0546d4eea26b76157e2e2d01179ec20815cb1996bfe69c43'
            'e3ad7b34277af5f8dcbd74e9ebb89ec3d34c689c6c2c5ca64fa2aa1e5a18d0f1'
            '9bc538968416dc87f603ddfed2e6852360b7d0143470314bf8e075c7beebb3d4'
            'e83dd8759f2eee607c42fdf7251e7e046db7b487d268395c5f02487c5078abc1'
            '36c68be2400cd178b3af057c447187f0543c135f27aba2162e42fb844f6de6c8'
            'c26c2ee57188da444e63fd2780827d520228f7a45353eb9a79b578918799136b')