summaryrefslogtreecommitdiff
path: root/libre/iceweasel-i18n/PKGBUILD
blob: 6fd6aaf033b9ceb08eb6250263f1e2d4cfdea51f (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
# Maintainer: 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=16.0.2
_debrel=1
_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-LK ta te th tr uk vi zh-CN zh-TW zu)

pkgbase=iceweasel-i18n
pkgname=($(for lang in ${_langpacks[@]}
        do echo $pkgbase-$lang | tr A-Z a-z
        done))
_pkgver=16.0.2
pkgver=${_debver}.${_debrel}
pkgrel=1

pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://www.geticeweasel.org/"
license=('MPL')
depends=("iceweasel-libre>=$_pkgver")
source=()
for lang in ${_langpacks[@]}
do
    source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel}_all.deb")
done

build() {
  cd "${srcdir}"
  for f in *.deb
  do
      bsdtar xf $f
      bsdtar xf data.tar.xz
  done
}

_path="/usr/lib/iceweasel/extensions"


for lang in ${_langpacks[@]}
do
    eval "
package_iceweasel-i18n-$(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=('7917e479db04573f738d25d9a57cb049'
         'ec1fadd5879ebbd7884b00c15e8148a8'
         'fc281450b90d5e7861ac4f555d5ea871'
         '1fe8f0d56b76f2bd627627098813ace2'
         'fb3a5c73b806bbd7bd50a64a5894c831'
         '84e222c9a5caa3cfd30b8c79cf49ae20'
         '7a8b1160c2ac40dac7bb3ef788d7e2d0'
         '3b974c5d14de638a36ee6b6e3a1fab94'
         '6b40f968cd7c4a19ddc252fedf88dcbc'
         'd6f533690c8570150ea193e4784fa37e'
         '75bcfbbacde730ec498345994d5da699'
         '322971c545da5815bfaf9c9f5b380ea4'
         '7da8514ff56ad89db85cf160bc02d8cc'
         '8b748543ca637db910531f35fcc7eb1e'
         '3a5188077b07d50a60c19a9be34fef2e'
         'c2f01b10da3a49049dadf13e7d62194b'
         '97045cfea1caf0730557171a2dbc1384'
         '969c813859367a254d7edbb16e323d62'
         '479b9f915480af5c4cda1477bcc745f6'
         '081f3d13f05b9d44d5bb2d7842998d68'
         'c527200432799e3a37180439074f7616'
         '6b688e726d273c21bb08f9e09a3dae48'
         'b912eedaed384be13d99cbe769bb3683'
         '9d828a0459fbb3997ade5a2c4bcfff35'
         '67b79482d42d8057d0e66a8d00314efb'
         'da9661e6211765ca9d503d1ff0aaeec1'
         'e31f997e78fc2069b91a25cf71ee4a43'
         '5207746c0154fc737d3bbeb5d468651b'
         '191e284c168827fd4344f25c287f21d1'
         'ebcb9f2fb2571d045d3e19ee9d8cbb9f'
         '81c5e660d89148f0ca7da1186f1cda3a'
         'ca8a2f10358da70d30c8a6af7bc44d54'
         '8581d1f7e7e3a850d360e4da7506d166'
         'd4811aef8cdc90b6661a669ffad2ead8'
         '41a9cd0e8ea9d71f4d82ac0f4e4911c0'
         'e00759dd17ea1647afe40c1b9f676187'
         'b145a19de88d7c62e319e5719cc079d5'
         '817beaa2dab8f01cfcc5f034d537f97b'
         '48257dba1a8ca1ccd9e75cf5d00819df'
         '2036c221e16ea942795eae837a690615'
         'fc879e816fd4e831f47d14a3ed2442d7'
         '1851131108d0f9665cddaf636c5de826'
         '557c1a2d9176bde516c45112ae4632e8'
         '9142dcd98b5ec1783d72ffcb1326aae7'
         'f4c0f20255fd7f715a923cd6f81301ca'
         '1f65f925300b5e4317018d80d147fb46'
         '955cba749d29a3608fb70e5914835f2b'
         '7ad38d60e90f96404860ef281bddfe17'
         'd14126daf1067c19297ff1a94dc91e27'
         'a1e55184abcd990206c5c82d7445b53e'
         '9e1eeb91fb680c4b09ed1439c8af4265'
         'b313eb3158561713f00eec0b3ff82739'
         'e42c798d9371109be8595653c87a96e6'
         '499cb790565eb93e4387120815bc0d3f'
         'efed1f452372a569002282819f2828e8'
         '6e6e1215ffcc77fbd5deac9b3856ecff'
         '5905c1911035d9576e84791ac4416f23'
         'd7a49fa9daec5c4c403633e04ec03b49'
         '58d91d27d4e9bb8106534bac2562c566'
         '73fe09d52c99ede62bd8fd07c4780ee4'
         '19eb3d4c88d80035645bbd6a992bf938'
         '51a35fae949c997b5a300211a967d36d'
         '579a02556b1200fc749600390dfb9d97'
         '2d7f14c47a9b974a69bfb5f821c6f04b'
         '8622ac1bb52fb56af89e26f2d2a98ffd'
         'f5073a3e7bbbc71184a29d567c3d0914'
         '8979aaa64b9300ef245cb6368f1e3275'
         '1444fd6ec5639b51fc4c15c3fc7d41ec'
         '0eb171065c77b27c5aed4aa11fa2a6f4'
         '4b2a490537405ceb2935225807d4bde9'
         '69db8437023d658c5da0cf7388b1f579'
         '8d6bf855d5070624268cc175f3e86a14'
         '3edd9eea3d25fecb21787ce83499c994'
         '3ab336a082a86f9c7df7a7873f40a6e9'
         'b798317e831b5b9a06161bdaf119ad4d'
         'e86a78e5bfcba6f45b9f0bbf42c5ad89'
         '8f0a46cdd135c0d8858c409cbca4e9cd'
         '0a78294d15ef47fb1916ca129c5348c0'
         '625fb622c634c035f4b326928c776392'
         '6b528ef1c3427e799d924b12a5e1fb39'
         'c790339622a85b5b307fb4a8fa496fe7'
         '56021c871cce43c64bc6ddff5f794f31'
         'babbd7cde37d24463ea5d8a389abd512'
         '6eb58fc54626a3b8d58c03f37dfc2ec1'
         '782d556e773cb97298592fedabdc9a7f'
         'f2cf5e5a2b244d0afab2edd193209039'
         '973c9e08c3329ba51625272db30d9d6c'
         '28055c70eda06dcf371f0399dce94e8b')