summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: d0878ef895ec93d88a550d39a78b27f6c00b3fed (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@lavabit.com>
# 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=23.0.1
_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'
         'beec7ff5243399aaa490eeb908f89635'
         'd76b30288dc5aa89c5c73327dd93e1f1'
         '0d7a7d3f9afd4f4f535813ddbe295979'
         'a3e395704283a7b04f5a2b622f4a3639'
         '4957794086a29eb2aab2f9486a0749dd'
         'd42f22d4e8f0877b94e129d5898074ea'
         '8d87c38d9e07847e774152f7f34b0d3a'
         'd5442982475a1948794267c6f2e8dab7'
         'cbe6d536bb393a71827721acc8b5a592'
         '92966282e3cb266006c1814af8e0ff0a'
         '8dc3cd2b6892457752e8232ff0bdacd2'
         '36fa29d00055b28c40276ada3008da20'
         '4535bbb5f058fad2635c65a77ca948af'
         'd55e19c70c143893334d76d803c6ad19'
         '48ecdc05f12a84745e1f170790ab427f'
         'c50af900a16d3e7f95dd7768dd04e8a2'
         'd8f113de7e79743d4cb9beb127f0f95b'
         'ee686438c9a3ea9041c19bb75f53651a'
         '358203acae7af9752fa65550ca98f02e'
         '726be61d6cfefcd671c24f2f49e3bf21'
         'c15c9b35ef2bf000f3f7f8b2946aee6d'
         '086b14122e3e45dac497ffe7f0873c02'
         'c9c80acbc1651ebf9d025d0d3d1cd022'
         '15ef0474ce040d9600690cdd2b257ffd'
         '4da96de48891501d947bce50f30d0f1a'
         '05945026206a9b0f99b09c5ce788ca6b'
         'd636a741c3711d111ad0e04d905b2fd0'
         '05d3bac10f8d7fc19f7941b479f44363'
         '5abaab886f963e387444e47d993d9c1a'
         '1a89211f0ec11c0541e4d4e983209ce9'
         '815e0f6a34ed7c63c21403473bab0ac6'
         'b2e768d738718f20cf6e27f6a393f093'
         'ea65c30d06da6172848c84dc6e4e2be4'
         '49e108b2ed86ae25acae56731685170d'
         '8222761ee3bea5d67cd66d461e698fe6'
         'a04b35692c4df0f410bf2d196de96928'
         '861e047041ef3a8f6a92967d40fe8e5f'
         'd43c967887b437c67c6d39d3c4273c49'
         'fb8a80a7d82d5a37b926e0a946240df8'
         'ffdcc759130ad0f23adee6ca8933190d'
         'dcd9b3889b7050bc3e977cfa013fc2c1'
         'd59b7828235ed96da7e309e43093923c'
         '723db17fbf3ac58ed3402b44eb25c953'
         '3f27760db7543ad953bf3b87bd1f61b1'
         'ac675403c62a5b898c58ab3e95770275'
         '7295a8115d6a0d8706ee5ea4a4a0e1fc'
         '4073b8aca4a5eb905df761ab90e8d63a'
         'f437bf5c2bdc9a29b6deff2bf3913af2'
         '1a4f3e90be3aaf92763b6aa7c09db41c'
         'dbd3ae230ca8f898f55d73406881fb4b'
         '2d99549940ab6ec77cabb6dacf1ecc22'
         '71eba86c8ba6c60aedccbac67d730f64'
         '327e3808ed2318335ddb17480254098b'
         'b3880a5392906d7547cf6f1f460fb587'
         'd3831ed5839155fedd6afe140d9b82d3'
         '4bbc2b071e3a691c7e31eb203473e4fe'
         'b6a0a5958b8d7715bff75998f7a2db5a'
         '12d766edda51a500763cab832d456f1c'
         '7d8836f1beba05abd2f4980a739b88f6'
         '6e6c387f87e66fcd0256e7dd493bd3b0'
         'acf3313e15e39c40a5e4a81a8ad8f082'
         'b297d9639d918543c6d49be2b41ecb7a'
         '1a44e1284df3dea096ba6d66babcb627'
         '59eff511de5712076688a1fdc1ad7cab'
         '2c6d376215919347a3700e5ca189fbae'
         'c4721d42d1c5ca7c864ea676fb0eaa67'
         '099efdf95306a754ff96b3b40e9442aa'
         '41800618dfebb2793473d24469b42648'
         'd3af544bb441f124434a8494ea90803d'
         '279690d65ff8c2d8327476df378cb560'
         'ec8d0c327f8ab2b1a4a4db2956e35aa1'
         '6ac9eddd9eb0080bc0ed130f293212a6'
         'f18b1756afbfc609e474987713463cb0'
         '5aa659699e413ee6c1581dd5f8abc982'
         '51d5f2d0832b3e112505d097f927e237'
         '194772120040d425c0f9caf7e39cd859'
         '16e341fc147ac7c59927aa9fcd1d9bda'
         '0f03f21b274f83dab26b13f24c62b10c'
         '08e4f2dbb5812c26108043c921f96f52'
         'e698080ded6dd46631a82d4c5e2714a4'
         '1ec71119addcae00dc488bce157e730b'
         '52a0d08f300889601ede8f7ab149c402'
         '75a0dd75f495e8b45dc8b5529cdac123'
         '751faf67d7395acdf647e944582f1720'
         '58da93b8de0d043e2c875bede1d339b7'
         'c7472e6661159c338b29a9f0d67534eb'
         '90df70450031fbeeef121170875e2a56'
         'c34f1814457e56a2f922da4c630d6c98')