blob: 1b56ec52f5cca58335f3cebd0733d3d1d72e5a8a (
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
|
# Maintainer: André Silva <emulatorman@parabola.nu>
# Maintainer: Márcio Silva <coadde@lavabit.com>
# Contributor: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
# Based on icecat-i18n package, which is in turn based on firefox-i18n
# When updating to a newer upstream release:
# - Edit variables in in Makefile.
# - (optionally) edit PKGBUILD.in
# - Run 'make'. It will take care of everything else for you.
_debname=iceweasel
_debver=25.0
_debrel=deb1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
_langpacks=(ach af ak ar as ast be bg bn-BD bn-IN 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 ku lg lij lt lv mai mk ml mr nb-NO nl nn-NO nso or pa-IN pl pt-BR pt-PT rm ro ru si sk sl son sq sr sv-SE ta ta-LK te th tr uk vi zh-CN zh-TW zu)
pkgbase=iceweasel-l10n
pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
epoch=1
pkgver=$_debver.$_debrel
pkgrel=1
pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://packages.debian.org/experimental/iceweasel"
license=('MPL' 'GPL')
depends=("iceweasel-libre>=$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/"
build() {
cd "${srcdir}"
for f in *.deb
do
bsdtar xf $f
bsdtar xf data.tar.xz
done
cd $srcdir/$_path
for i in ${_langpacks[@]}
do
cd $srcdir/$_path
unzip -q langpack-$i@iceweasel.mozilla.org.xpi -d $i
rm langpack-$i@iceweasel.mozilla.org.xpi
install -Dm644 $srcdir/region.properties $i/browser/chrome/$i/locale/browser-region
cd $i
zip -q -r $srcdir/$_path/langpack-$i@iceweasel.mozilla.org.xpi .
done
cd $srcdir
}
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$_path/langpack-$lang@iceweasel.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceweasel.mozilla.org.xpi\"
}
"
done
md5sums=('e88728730ecf9f0f145de5f70e362b15'
'72891c593c993c5474abff8b4e72d543'
'675ce7d5e3d7a2899db8be29a3f8482a'
'ed754b10fb8e687dab42ccb50f31649c'
'e3ca6f8116a0d9b2cada9fa88b66e237'
'3324458a1907de5c95ed6d02601e2753'
'5ea65765bb6fb9ba8aac3e36ed66c1b8'
'c22ae0fcc64c979cf87aec4b191353fb'
'c33058a022beb01abad48d543d4621bc'
'f7cb06c3847748fcd01aa6c7e07bab09'
'b2c9f2768a5f364c64e38d76323aa1b7'
'cf5a47e0ce43bcbe9601401e3adcf87b'
'c42200f23f5ced9395ae8a1dff2e824f'
'487dd4ace0ed32330b4dcbf1c6d39758'
'5ad617928cf23d8e97916cf16d417635'
'6dd585cf48ac920dfb2ba2966ccc1a7b'
'399e6f69ea89436c3cb2d6c17b9415f5'
'726eb9a1368f01b01cb11f78c1fe91b1'
'19152bb2705946c16f7f10140128635b'
'34a8fd695d3ac20bf733c4c5fd9c733e'
'e13963f59dbec91fa9318fcfb19570c5'
'9ef86e7b69f7de49e321ef7dc7dc0b75'
'bb74f5cb87e6218820e7c9a2bddc2021'
'fa34dfaed15fa16814ac2d629971141f'
'a124544d82417a7a1341c37c80b18f68'
'6936b981c79fbffbd514dcbd281c26b8'
'0b59289da31c29844db8c688770a474a'
'8bd21818ca2216e65f160eb7a9ca072b'
'20ad27abc7c254a9960682f7afda1e5f'
'e8bd8488274796668e5b7a4e4dba5949'
'991f8d1e1faae1a6a22113f4f3f6d90e'
'bb0f98dcd2b87510d09216d9a36ef686'
'87fa30b76eafab63b28ee53943435e43'
'3cbafc8cdff119b73fcbd2bac8ffadea'
'25b4ee89d58b2edf937515a1f8309768'
'ea5b9b47bd4a24a80058509ba2126041'
'97be59190157410b37a56cbec1d95c78'
'575a68f6bc5ace8fc212a9a7d759291b'
'f57bea11b0f49cf2e4023008ffcdc87d'
'c1130d88b73db6a474d1df5ed00d0427'
'd0fd4480ab9fd6d20e2ea3c23a94ae14'
'4b7f19fd35a68990d114e0f7c265b7b2'
'77ed20f961742c3b8eb7a8cfdc24df25'
'9c3ed09220442dc602be0fd130475349'
'c7b7cd5971d07052c983e6d2047a3154'
'6e7b9ac0906938a0ba4296e99a03779c'
'39b1121cb719123596c3b1ef48d82b94'
'ae71cd7232645c49b1d9f970a6f824e0'
'25b322a7fa03c620747d72587e594173'
'4b5fefdfdba63243507ac623644912ca'
'ae02bb179460d0a1ad2c88ed063c1222'
'2eb0dd6b6540f11b1e3ea7cfb6a8f414'
'1a04b8c9fddcdbc96e52d2a6b5ccaae9'
'8fa2584f770ca97eb7a46826f027aa63'
'083f0e2bdc94f668b0aa10a7ebe65e78'
'091c223464fb65ed7e771fa0abda5db6'
'53bc7c5f16a4c1e9d5315ae44bfbc1ab'
'5cfc5a27b72a432da7267fcc87fab40a'
'a4467ea38382fd2c0aa22fdf1aab41b1'
'2ae42108358fe38e2efbe70e26f82f3c'
'dcba6a97010bb9504e9778bfc5aee54b'
'4b8dd9e54b79d133884d29b6a6b78d1f'
'0c364c911b310d5656652faced437ec4'
'60856a5d67e13bc3ecb2edd6f90ce328'
'1685cea5a1094769a0a2f7fa3e248482'
'6d3218c1a6c45206c71477f3403b3bf9'
'a75749039cca538ba22bb7007b8358e9'
'c795a1eb2f467a1fe6c7821af6dd9d05'
'b1e16275ee6b874e4f39579126cb8c94'
'159145964d7c3e6faa1416a2ebc96e84'
'bf6efa5437f4dbd6549e27b00523e10e'
'ab9d9d2568d3be83038973c7b1077c6a'
'd6ad3b4a84ca1a35ef46a6a7053de37c'
'285f62d8782aa73860a2187b0a4027cf'
'd107b587a939124df3c8a233e75d3ca3'
'968bd91d21c52095f08f9a55d20ba6a4'
'0f29172e2aa3edf11a1c705ce945f036'
'78ce26aa5e6fedff75cae9aa24d8d8e9'
'a8d0606d5d79f1e4f08908f67b0336ab'
'21d6c6af9ae10aa4d392a1f949a76462'
'bf1fb5267204996373ff541558d7b286'
'c3561aa5796054b0377eaab17017b341'
'2a2c08f36efd1b4455194abd67268c34'
'4cfe3e0dca2d7e26effb3fdda7bb2af7'
'a1eb070b498fd9324a7c5c3563f7d29e'
'1fad104a69ed3150d3d8ca1b79181d03'
'2e099ca02f1269f25627616cb7df3d12'
'852e3415f008110d23ed1ed9bdba2d35'
'e8f40197b8026e641b4836de6864045a')
|