summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: b81fb9cbfaf5fdea6e70a3f1da45a512c77972ca (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-i18n package, which is in turn based on firefox-i18n

_debname=iceweasel
_debver=27.0.1
_debrel=deb1
_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=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

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'
         '0012b126061c39d6098077e6b33e4ed9'
         'd9489164f0ee7675345a18b415ca4e54'
         'a5397f32afa3104a1ac48bd9ba100b3f'
         '86f24dbc33b20eb967927565a1888c43'
         '8158132a2d9c3eccdf717012c4b22a2a'
         '65895a635d466f6c8d13c1e22efe0d1c'
         '9bd0b1bf0f2c25ad7caa41294802417b'
         '31d37cf374d9b8c38150a655f3e070c3'
         'e8e17525549e239d19ebe49ab6b7e003'
         '3f257fee55f0a2337eba89368703bf89'
         'f40dffe97508d3f92ba862a92a0f050f'
         '31de87f7bf67104ed1b75eb23c10b130'
         '42d32cfc145c77f792b05d0437d0e7a8'
         'd53470958b10bed4daca8fae50851014'
         '82320a0b6ecb8f966fbab069f59c331c'
         '4d13543134ee9ea2b30fb0a3748c9c11'
         '56174d768e00c018d32fed3b713ce64f'
         '6abba09b0e8fdc4b31ce2c16f752f053'
         'd46382eff5f7cffc7ebc734ac7fb73d4'
         '9e88d117a4f64e183c9f1961fe3372ed'
         '4477aeb5f4d9e553df1b43588370c5ce'
         '09636cebf0e08e3c4ca9c1d3b0b37b38'
         '612b09eb39160e4446a86a0083e76d87'
         'a83730d408f5be941f42d93300387c4d'
         '16cde47a162d0c99fb2904571b856de0'
         'e3783933719fa65afa7d86a89a2be3f0'
         '386f2895fa4e439f49a30d5b739de9ef'
         'd9a152c6e3a01e37402e9aa1f49569f4'
         '1628a11d1e4c3da5d3d6caaaf43418c8'
         '2c8b7615ec21bc3b890e34a8d395241f'
         '06b6015cf541dc3b9c5f679cf00d13ab'
         '457379b8f74fce12fc1fa446651ab380'
         '998f6a12ebfccbc4196799df67f0d342'
         '4552e34336b3779fd99927d1c78c028f'
         '147f1cbab567e2222e622471081ef117'
         'fd798f352f288df2249f8d43957cafbc'
         '531acff3ede1eda37109f9de0ba58124'
         '6386ddbda9c73f6f14fcaf4cb64da384'
         '91ee1c3b72e6681975b033b1bc035ae7'
         'de7b96d13177aed06f2a39490241d831'
         'cfadecb7549afed8fddd3ae9f3aa7f12'
         'f6a7ae7a336a55ac1f48041c91b7a4ba'
         '5f599453be844e5a1b1fb6967e52f234'
         '822b9848fdf54927c81b97d04ec67218'
         'fc69f156b343a3300114a1ff8a3dd9d3'
         '6d8fcec0d23679c69578bfbff7de7430'
         'b3312412e56fa60fb97ea155405d23b0'
         '1b559f7fc37308b361743876c48194ba'
         'dbfc6bfed57bc048b3be222f90dd488c'
         '4ba30eb299671f0bddb2ac5f8839e297'
         '5c78e9fa5288a2127a5f710554ecd650'
         '1f28c9bb19599b74120d022353d492d9'
         '564d72774ff35a370972650be87e23a9'
         '0274871784da1f22d65ba289588f3c13'
         'f05d9c0759fca383085f2326d16a120d'
         'ea21cff3fee8a957d1f335ff45335bc9'
         '1f48c97748964005259fa06ad1c76b5b'
         '943580007d82d3e102c05dbd4f99f4e2'
         'd5f20acd424ba9b10e92079f4a13e219'
         'e42983785c33a4bf38a2b4ddf5b69440'
         '28ab7d8e35a59056626e38911fdd0232'
         '8e847f14b9ff0190fa725621ef42121a'
         'f78d59c251b949261d9504a5c114443f'
         '5e587c999d8cf836e901eaf93550852b'
         '9f9b5e6e8647f73cab9c5d731720b89a'
         '3dc8cc1726466b5781026a466e8559f6'
         '88913ef378deaf7a43f4190e8dad2dfb'
         '9cf5d21edbb01aa0418bdc0a2d751c53'
         'c73a7c12947c7d8c6ea57da163de8f6a'
         'c490d19bea49b12673fcec849cf6b175'
         'db22297468a87badb2a95d3a7c743230'
         '3f148b7670425830e7ed54fd3bd0d572'
         '84ff51ef9863e7211044bcbee7d9bac4'
         'daa6f9b0e321d3da1cb04551a6defc2d'
         '7d147726fe7b11510c13a1496e849f8b'
         'aa387c05bf9aac8a6478c56c94c90ccf'
         '0aaf74e72befbadb1bd0128cd407de48'
         'db46a8a8e3c83d738eab44c200cffcd4'
         '032c33f88b6f87226af805459970b5a0'
         'd7ea83ff84de0969de6510abf278bcd4'
         '6ff5acbf06ae1cdb45bcd0fd9309ebbf'
         '2d6d43a2682e82216ec3f831d42c0586')