blob: acf61fc3a2570ee719dd01314bfa76411f562990 (
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
|
# 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>
# Based on icecat-l10n package, which is in turn based on firefox-i18n
_debname=iceweasel
_debver=31.0
_debrel=deb3
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
_langpacks=(ach af an ar as ast be bg bn-BD br bs ca cs csb cy da de el en-GB en-ZA eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gu-IN he hi-IN hr hu hy-AM id is it ja kk km kn ko lij lt lv mai mk ml mr nb-NO nl nn-NO or pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta te th tr uk vi xh zh-CN zh-TW)
pkgbase=iceweasel-l10n
pkgname=(
$(for lang in ${_langpacks[@]}; do
echo $pkgbase-$lang | tr A-Z a-z
done)
)
epoch=1
pkgver=$_debver.$_debrel
pkgrel=2
pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://packages.debian.org/sid/iceweasel"
license=('MPL' 'GPL')
depends=("iceweasel>=$epoch:$pkgver")
makedepends=('unzip' 'zip')
source=('region.properties')
for lang in ${_langpacks[@]}; do
source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel#deb}_all.deb")
done
_path=usr/lib/iceweasel/browser/extensions
prepare() {
cd $srcdir
for f in *.deb; do
bsdtar xf $f
bsdtar xf data.tar.xz
done
mv $_path/* .
rm -r {control.tar.gz,data.tar.xz,debian-binary,etc,usr}
rm -r *.deb
for lang in ${_langpacks[@]}; do
unzip -q langpack-$lang@iceweasel.mozilla.org.xpi -d $lang
rm langpack-$lang@iceweasel.mozilla.org.xpi
install -Dm644 $srcdir/region.properties $lang/browser/chrome/$lang/locale/browser-region
cd $lang
zip -q -r langpack-$lang@iceweasel.mozilla.org.xpi .
mv langpack-$lang@iceweasel.mozilla.org.xpi $srcdir
cd ..
rm -r $lang
done
}
for lang in ${_langpacks[@]}; do
eval "
package_iceweasel-l10n-$(echo $lang | tr A-Z a-z)() {
replaces=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z))
conflicts=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z))
provides=(firefox-i18n-$(echo $lang | tr A-Z a-z) iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z))
install -Dm644 \"\$srcdir/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir/$_path/langpack-$lang@iceweasel.mozilla.org.xpi\"
}
"
done
md5sums=('a4593936bf1c7a9ec9368ff249f9cc56'
'979ec90c56bfc695a484ebc4479be3ce'
'662a26993001d48de45365e7c808091e'
'8d562e0f467b1316c7811b5cfeb855da'
'a20c8ee5637816e67d1900309211252c'
'e1409ca1ff01b10bd8f07e10e31875a0'
'5eb46901a50b2cef0bd977cf418567b7'
'36b3ba57e51781df14b9bb2199e502af'
'096ff9ca1d6904261e163743282b75dc'
'd64dae5555f0beb4da9123e5a64203db'
'ef776031aa632b441fffa9ac7b8c072e'
'4ac278707bfe62bb59f0601dfa3eed75'
'427cc1af4a53579fe4e7ec21242a1655'
'cca7a103d85f37905398e309e95bb977'
'39ee08a93a6d655e2eb0e460f148cffe'
'83c952187cd743e505eed9823835d31a'
'804d8c1801c232a5084d307aa700da85'
'645af177570b685906ba5815526826d4'
'aafe3dfdb59b28484c55b81f38794553'
'292099a2fe1614d02596f8bb6cd98918'
'8bb47d2ecf286100b61cf9a61d64f1de'
'dac09081bd85c2f0fae1f7d38380761f'
'1c9ffc02ca1cf802b663268e6b077225'
'288a9c5b629fdae2a5f1553b654fd878'
'18dc916ae974a705992ec861d7aa8316'
'e14749922e341e97d03d1c83e62c63db'
'251e052f280f1a4e4cc4f23d52d0f30d'
'8419f10cd10eeb0fb22ce6240f0598b5'
'cfdd7e3492c1208bf78f22aad52fb107'
'067bab944ef8399249e43e18e898193a'
'd10b7551bfc33120da853023a6484bc0'
'4f1603913b44ed167cade9f6c62c574e'
'3495cbc3a15aaeae161989f96b3d24c7'
'87056c69475ea27262c50b321a963fe3'
'a044d04b035558551115fc2ad002e9c1'
'c1c45e7b76e43c09cdcc3097e7f6ade3'
'a02519f058d73dee907d599bdb233406'
'32613aba1de7282c8ac5a509c5dd3e94'
'56c07bb7c2c7ee51c4998e81ad289a7b'
'6c84990bcbc5c91f5c3483f296579df5'
'ae14d3dd2ff9d64c2ca028e201ac613b'
'18cb3976689b013e6d775d99e2125b2b'
'79e2fb29720f8492dea92470ed7a4e03'
'c50ad985dd4642f8c5bab98085fa2ff2'
'0842667ba5d995163d10a774640a60f8'
'fce10ed28f34ad871c921d2ccfea2147'
'9d54f086ba8af6136f5984c7408d3b90'
'06045af8b26935f63254496018a5adef'
'04e2d0f5b44f042b5fbd5bdddebd424d'
'06d42fb7f1cdb619c94af022aa7ac447'
'dd0ddb81303e942d18576f9eaebbd79e'
'475f3af7145ed17299fa9b8eed470089'
'42cc9832ba4f2c4a03abbd8513ec4f7e'
'884d28f9177da50c9b76edd68df0e77f'
'06a4491cb14f093d396ff0164334dc17'
'9d696d3887847f77ac6ab412123cab98'
'ed8edf5905f8cd27ac4c20b735f0c53b'
'd425800c2c8fdeb876ad5bef1666f83e'
'f75a4b6849be93d5dc23496b8f440341'
'5cd7bc02af507fd379e32da3654e73ec'
'c2568fdc3534751b8f6fe8cf70f0aa11'
'c23385cc4fabcfbf8465cd6253cbacb7'
'3ef0590cb8ea2087fbe990bc6e56a2af'
'5272d687712b19c496d14a9066553ee6'
'5ffa4cfdd724aa6ad109c0bf606afb49'
'6720efd0ae70606db437cfa70a2d7eec'
'b71a931434a57f7d9c411753afaa0674'
'c06732385841d960b7fef22d165ddb1d'
'7be4f43aa57a590fda8b6e5b87df85bb'
'da92fc0800199db392a175a719906d56'
'113fb7306a9965c72291bbdfc74e5320'
'1b352f6bfbcd2b27613afcc55d5b446f'
'9e8d722c89779bfa30c83b511025230a'
'331e9a31e58f498fa3d4a5f51dfef592'
'e770a61776efe20f2c0b888437ce6ed5'
'017418f19a2843a59045f19c1a1aa31b'
'df8e5b2da59586adbe6c234695a27e93'
'd6d9e8c5c479b5987fc7ca3040783bdd'
'2bd5b500633faee4ddb6d0d2967cb3d3'
'3fefc5619b1d62eaf1875f609cfb8056'
'28bde01725d455837e2ced5915d3886d'
'8b1edd424031edd3dd70c94892eedb8f'
'dd5f8c7b67b6edf0ed83602636f8ce32')
|