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=38.0.1
_debrel=deb1
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=('6ab481740fdd48790329217a1bbe1fc7d2438bbdc1f767e21ba3d66084f4afcf'
'fad6315dd1caae75e9fb05ae23baad58b375882eeec3daf32c2cdf37a83b6504'
'b9abd689e8e6b7082745919a7939870782aa90d48c0e90aa6c1b82f16e85e782'
'476fc24dcd4da851e54220bfa123944fb162543118ede89c1be42a2a71ae61c2'
'f8ef47446e1819e912211c5a60689f15bdc351d8eefdd2cc10b3f49f67eb17e7'
'c5f54afd5c22b97acd960e21fa892da3319c5966a6538dd7139bf57e2a9eaa26'
'dabf1bc4f5f9e6a5bf8274f053291449dbcb6625fbd40f23a6917e2c1556ac7f'
'e78e5c6b4b3f2cf254a8cde4c09fb60e02b0ea9ec7dab92e44a0fdf1da84e0ae'
'2492c2612d80c9e2a6ba0cd8901fad155b83e37ff5c29bc6a192d5dd1034360c'
'395032e27b55d8dc9ef6d60f0eecc2e82bf7097e96465b3d4f09efa94306c287'
'c0b9b2ea96fba3bafb0aa5c6d1385c466897000ed1803727d3ed41a5486a01de'
'9d1b1d6e35e09c19c16dfaf8cddc196385a4890778d63c3b3b548adf57e780fe'
'3a764b4ad540ebaaa0a341f68dd365d1352b8e7d6f9f25f2cad94192296a102e'
'02861e0e2e395baa18e315891c48da5e519ce2f4b8f7706ae6845897609e359c'
'8c0c4d94cfd079ba755f1e0381baec3f06b517cf81b92fef933eac91f47a6da5'
'84cf492e816d7d54d9fbd6efa7d2e731a7a7335f913fc438f6e6c011d8b530a4'
'b6965520beb1e080103ca28d6bcf66d9a892ea5cd204d4c301e03971138f1e67'
'371253c9e7c7e451d39f7a0f4de2c933723e10832e43fdd2cb70931544639258'
'2b3e44d0a232a65b3ec81fd4d872cf125c0d7f4a96bf8e5f1bfb6b666a97e953'
'4159cec4572feeabb8d84ddff4ccc1e11152a9c4a96a86492073eaf6c85cbae6'
'6432745599c7ebc5c4b3cb5b92d0974530c39af13d0388a5ea00fffae6259a99'
'1deb1aeed20e63ee908aa14e3777768c80d2798f78a94779133efeb9fab51319'
'eabcb35500514a1f788586368225938be825e78f8f45a113ac8ea57858e54f60'
'ccb56a546181ff63052e0fd1672e3a54233d9a90a34a5579eaaeb8bb8d9bc515'
'4accd730bb991b6321225c994a5307c9093515519339627b2b71ba93ddd54095'
'46a48f053b3e65fc39bf2ec06f693b0f3b5b691c1b3d5205e023561cbccfabb2'
'0008140022d1457fb0390ace4398cd14bb4e4196186545c571081e625e06997e'
'300322e4a72de37fa11a1ef92abe30083efa1df6510420bcbad54b9b144eb6af'
'a646a99d31d54f2d0aca6b518c1c4d1059adab95493e20256531348dd984c650'
'a6a4ca57e11c938aebda1c8954e14d23e40eec08d1635f04a22108907e3393ff'
'5764a8012586616b4bbd039c3b0ba463c5509c5ffbbcbd6404a1e0b1fd4cf2c3'
'ff5bc97dab31f3b8ff8061ca28e5e5ac8b10bf41e878ae5ef8bf3bf3db6f570e'
'8b8c2aff5ea3322c107c2455f7fc8238101e04f131a246088d12570e709531b1'
'5fcab669d2ef961a0f8c9aa8cd45533ff57443e215c698bb4d5a66e08f2ad2ef'
'f5c7d5032ce766faae306e033fddba9b55bfda01abcc826947eea71f420f2ce9'
'b7cb4bb9083f468e632f271b438251bdbce93200a085983f74088b73e7fed8c8'
'921058ee68b5939d49a67f1ed282601611e8fafb1b5539fca02a3fb0a34820c7'
'8c5ba2521e4f8961bc2b843294a0bda0769a43ef7108e95025dd256c87e0319f'
'5eb664ebba8f5aae10035918dabb36a0a74c7f0dff44b4e318ded7f06c228b79'
'8417c5f90c5cd265320792d6ee0e39f7d5aad2ab0cfd1fa74f7ff43d5ab3f4c8'
'7847ae29fb0e2523967d39e7f35b5360ec7eb4d9c381ee9dc433ab9ab4ecff19'
'082c067984e823d15699df95af87a19e4402eb744fa32458c3b4d4a76b8fbc6c'
'9b44cb8d6b505cfbb639cad5a6960a4635d6154df3653c6a68ff75e0fc46aa92'
'ed1836874b38d5ea81a2ab6e43be00205008932bab57204d33ccf6841d473457'
'cccfd8af1986973c05b08312530a2368863a60416808bfe3c79cb517cecf3bde'
'f00584939eadf71608d21ebfe1be6d955bed91ea5c92c7c2b62611ffaa8e1faa'
'79a3b41f3b5ad2c77ca3da5076aa3d26c2e02ece91e617f4c9552f8b873c240c'
'2fddb5d2d196a78a10097011b545a75b79dfc39c4a7b0ce86588111d04ae3a60'
'47a83cdb97cded6f53d740786968cc89f44901fc3dad44be44bd041a483955ab'
'ac782b93a980504afeb1e9647a9c27bc6ea433873acf70d1faf7307a0f826bdd'
'1d1e39d4f4af2ad8bc0a4551a7e4ccd94e58fe1500fed720c67d3fce026c17ac'
'7a95b4f9b0569f61d5e9db865eeb17d77d3a7d1e0d34a2a79386642ffaeecd40'
'715ad1ac863b8c0f785af3615f63cbc233e14bcca4a95281d0fcf317354fb5e8'
'37c872eabf16c325f8e238c1a28deb3e389223756f9b6e7ef7036fb9a6f3b795'
'51e3647a861b854620f2d7834db5f393d87ba9fea8181648a97f7b5a1ca099ea'
'8f1ffa69dd901cd34ddd5e5803b266a2c4de9035a26245809920f43150ca50f8'
'075752bb779b8dd95fde734e08695abea6a7a397061422f2f3dde067fa5769a8'
'11d640b6fc807406e2f48f83cd4aae063404d03ca3472e2f2c1fdd986dd2564e'
'53e5de731266e0dbae9304d0c08103146bfa18a9bf8cb41793b0a9c266b8b68e'
'11829251bcb1284027117b7acfebf5b3254de7aa741b01d5424aa5c261117b87'
'c1e5ccbb27c8297a2d1e2058a04056b55a2cd30e09337c5a37c3593483445e47'
'c99c8e6a035d03b2c66aaccedf84ec5c45283d77ecf353fa6df96826a097101b'
'43ee7a7cf0eef6ade8c362d7648e77d65a39933d28e8334c546da2295682c657'
'8b6183bd587b0d7debe0c249bd2f90892e7d3928aaaa77f8d2d74ba550016881'
'7fbd81d54900d39bbd3941f55f971dfba711f229de8a95c46b3d5e259abd8b47'
'e7f18dd60b15df485a5e1cb7ff0f77de337d492242192411481df6f7c3998d8b'
'ef2bb8083468723fd30c34975e05e19ed5990b9e4cc084f30a00755b046be730'
'cde2befb40649ba789abe323b17743e98d59f159397f0a15278894b05da977e6'
'356754c904a158f145c0982c95b072f827df756160c221f2a6d058f12ab7bca7'
'048849ec5ef9b7370253b311fc06e3c393f350bcb2d213a3343fd84b88297f7e'
'092a4688117d825353c145f59304948afefae0c41e7292b2bb0aab71c1954e3e'
'5c3d34afaef1264b13913bb8effa9065218f246777d3c65e5f163301ce05fb9a'
'509681ca7287445a555a12b20b861945473d91b3a8f4620378366aea34c996a5'
'8fd03ff8d698723cbf5de90efeff30e421997133c103dd04f2efe0d4922ac707'
'cf27afe1ec0dfa56952829fa1cccfbfaafbd3ad266f9184342d4a69e0182d0b7'
'c4aa602c53d14c88f3dd29409771c4ce5789dde7c9a372ca86056aeffed0dcd1'
'6a9003bcbe6a4a6d4b1e79b43b1de31e6158d0938a010aaf919880ee9fccf5a6'
'6c41d02ae765d9faf5c46f1ea0f006e68b99b2fa2def8434c0c07df973505860'
'ddb0b69cabbb5cf05652a3eaf717d02f9044c42e1ca7f8579f504adf2e8771ee'
'ce3ecc80f22979f68e9e322141bdf63f146655d2732dea95e7ed8b600c936a88'
'465c55d25945ec29f2b699b0a7868473b79bbbad4a4ee37c8e3503fd0a8d2e10'
'c2ff6b33985422c90594e70f7929d48c5455ac679a6f607770726cab836c8211'
'a146ba43195b37ac045f432268d874ebf70ac7045e9d596a3a06fa31e56ae21b'
'574bea26c62bae18a904df48d454da2eab06a41d004ed982956b63af78adaf67'
'c05f2515d7fdd7c3e47f57e8b98554266116a49d58efeb933d6641d44fe21613'
'ea29f07460c4ce0a6112a083d8c0df877b868eb5ef9558b4aa74b67dcd3f23bb'
'b1be098710db8d1d6fffca2a1a34b8a0193abd98641ebd70bb60f70a493351c5'
'7958a4277974e4c2ded813ba6423575a1aa390a663ff99ea154909c80296431c'
'e3f921f80afe8ecc14e2dcb5adb692be2c4e1964ce17b431d3ed6d2fcc577455')
|