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

_debname=iceweasel
_debver=28.0
_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'
         '4c98d0c477318f1c3d2cc2298ee29f0b'
         '3a692f452edb66dc38be3df7032815c6'
         'f7d80f448e6b74b778d1f53d15946944'
         'da99de99e5c5a91d7881a7ff0d72fc0e'
         '52b083ef3be1874b3df8a9aacd7ddc48'
         '8ceb0b1bcbcbbb8857c047af7d6c9bf2'
         'c7506a5d650f8a231f1cc31f513bfa97'
         '37bdd39f4697322b53f65894dcf954bd'
         '5cc06b98d6b17120cfb128f9658a1985'
         '32af1c5b14aec2da6f37604e4227bc6c'
         '8e164bbc01867718896f749d06697707'
         '6d1d18a1a14ac48f3d5a17af82256757'
         'afa3fa9e08db03317f47b76c56385dc0'
         '8d891fa6b8cf6c48d5841c10edbe1784'
         'a8563dc2766ca0b2ec022c25383cd956'
         'f1be6d7b737c78553c3dfe24788700d5'
         'd635359e60f7c11ef295eff187b6c7e5'
         'b9ce01cd82b843d755dbd31f6864fb80'
         'c382040b8c7d485dfff1ef44ce29e8d1'
         'b707a1e7a7ae4b29e5984133a26638b1'
         '88aafa96e3ed5fac54449b4515bce8e5'
         '66b7abd745673b129256e0bb41396342'
         'ae89a7c603cfb7fb1d03991dc799b7c4'
         '7d0d7fec327e5d5c4e56fc73b62c715d'
         '70de24a0fd0cf0d3bb5679adc896722e'
         '600af32eeffada27344155887fa58bd2'
         '2e0b277babeca678fd5fc0c03886216b'
         'ad365b5c45431993732c8a022e2999d0'
         '85536c9ad2c7621e8551c3df26977260'
         'c91061552a0d6cb5750edb619e500d5a'
         '4972188b511436ac90d486f41fb52957'
         'daec7d9c806390067dffafb8e006f8e1'
         '2a00e2ac93826f96907ba8e18e419cb9'
         '51f3cae225b53cff038c722f5d0abb0d'
         '7596d5532f8dd063686b26a25063c41c'
         '5e03ef819ae45637da38618b47a7f343'
         '0766f9d9dd2caae775b9b29bb1539fb8'
         'ae68e82f361cfbeb433c311a9ea664ea'
         'e1965b478743b2d97cfba144a5d10230'
         'a3ba5d86319e6e6b1a26b8979e81622a'
         '4b331746e061033fd2339c8e66803f90'
         'dffe05b06576ee5bc01cf41f802f09f4'
         'f2278f1773f2a783b2a50351b90a5614'
         'ead52c5bb81a8a8484f253b1b43a5684'
         '257b69e5f65ac485c13338f742b63fea'
         '6a58bf9b1c82c1f612792fd848e8bacf'
         'b7621c5afa18e6326b8b01428f051303'
         '27140ee773b68e8afa296bb1b4d8ee1d'
         '0be494a05e6e86b9a40a574752d11e1b'
         '6381be5a72067a1ecbb1f0653bd58518'
         '75bcd12bb4cd2f0df6607c90c950067a'
         'ce331890e803fa47fde373f0b875c9be'
         'a30ae7f1f0c35609740edfd5809645f0'
         'c7fe87be2f24d49607e5e15825ce71ca'
         'ea81a726f80feb11bcadcc23aa150d6b'
         '41a3f8c774ce81152f19bb527ad4feb5'
         'ef930f8d20b10bddbd3930642a0882cd'
         '794042c6e59bad954c5167c13db2d320'
         '9a007643c4b3da83291b44e09dc38e66'
         'af69db8d39d3881e667e012a6d50b05a'
         '9e22c68f1a0b1cafc05de19340d99f69'
         'fa65e8b98c5fb14703a2659851561a55'
         'b926283d546b36328d3e6f92e5a0c8ec'
         '4b40dc3418a8f533cd05f06abcef5fa5'
         '9b874eff827033170a50bce75fd6d03a'
         '0d128c33f2ccd125063119937c38143b'
         '8c0219d8e1d4d1b94c2388a85a3c0042'
         '8e5472f5faafd5e51d27f27d1742034f'
         'fe406de17b7d599d85d23dd177de4320'
         '40df0996f9962c39fc1d0a32c34f2871'
         '3864cdbdda46a667a15597d88bec65bc'
         '0a5dd0fc74ea84f8e231c1a54071786f'
         'bd5300e7d7bc47f5cd42ec6e365ec1dd'
         '69f34da54d0a69377d4c863109982933'
         'a461fd71bf08d3e253b81f02b4607971'
         'e970e09f404f513ae07c5694be75b500'
         'f80da0d906b61caab5f334262672140e'
         '577ca0f3454f585a5a02e572e7f86c0d'
         'c59a3c185a1658c44e32fa7ee1947f21'
         '5c091f1a800a6ec2af85382448ce3909'
         'edfac679acb397f454159b5121858e8d'
         '37982e0113af242ad492bc24acddbce6')