summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 16378ec17eeaf1a9ecd2af6ba22f3ab533350468 (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=32.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>=$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'
         '02a7ae67d8c788aad11b263c4e1e64e4'
         '6fd383a5eeaa242066902f04b40f9743'
         '6e0f68a2f69057d2c33b588fb72474d3'
         'ea9f74d969f0388d2d856839cd875385'
         'cb6284946220eee8668fdff7e53bf110'
         'af07b493c06bf6e9167dd238df8893ca'
         '80754795f819d6053263427429850bcf'
         'd430ed275f210842b82eca83c45dade3'
         '63707911152fc15947979b48d66d3704'
         '01af1fa3037b98bc95eb25ee796ca6d4'
         '31e1622fe413dbbb91490849aa098b90'
         '1b6c4962984baeb43f2071e315425eb2'
         '5b7f24c45e19f3d6707ebd94b962a210'
         '9bf5772c4b2f8af7c9f93972a18bbc83'
         '6db33d279065faef1bc7a82613742476'
         '3d85d4d9d54bd261d5125fa654bf8d24'
         '07a23e7a50616127752780216c33e114'
         'a2887f9364103b5a368011ab0c6951b8'
         '82e22846b21630a4f67619a6425bcf2c'
         '59778e643d8d646bbee4e71e4adeeec6'
         'a354bf2c1079bc689df659fc64e910d6'
         'f6b1fad70e9661df7b76457890443117'
         'e3a06e21db8db03c73e6ee6642b0d7e5'
         'acd5a979b178603ef73dcb031f47adfc'
         '1273247f3fc15558d82c4871c8f1036f'
         '320e32261625662d2d4818db1e43483e'
         'ed2ac4ab3a5a81e95dfee66456a805f8'
         'c54214c020a7bf4f78b9cdb8d5512d28'
         '1aa4178852b51161fe0dddef8caee7f0'
         'a60f12629fd6d75ca35f3182beaf8f2e'
         '70ea1fa4afd93e6a7111e9c669d97299'
         'b8f0a5ee5828dacf7470335e99b29808'
         'a84292e56589ea81a70e94411ab75861'
         'fd172ff44577e75f820e31578449fb86'
         '6585ba2d49255ebb751f1607cfaddf16'
         '29758df7d0975b656666df1731ad63ed'
         'db728d21825f696e1cd6ca18079266e1'
         'bc52b428d070683f925d4ff98857881e'
         'b7816d5ad59e367dd660118536b19a9e'
         'e0e1b8267149bf69b5133a9a410e582b'
         '52ed39d43e81d8c19732e81a4853a01d'
         'c0aee8cc8e552b3d1700f15d301f3738'
         '6af9db33c0ce736b93a38c93616a830d'
         '019bd9e4f29074641630bb05ae8c6fb8'
         'f35fa4270d54b6bfd29e8dbd9f6d17f0'
         '75ce00592ad53319c3e7842a592c8983'
         '7471ab024343cf4f5552b8cd44e7aa95'
         '43515f38a8d479348c8a614d742fa2e1'
         'a0725499b6244b9f37b92ec078e77f8c'
         'af074a842abdd73a4592d67a0819ad73'
         '39609d71b67aa01d9a3b7db20e56c3a4'
         'ae69255817b08cb42417fddf69a320c8'
         '43bcb244d531487cf8f1bb5960ad7453'
         '296f91c03696702c88e1c2923774b784'
         '95b55b6ff35c4075e0f06cf78334e18f'
         'ba76bdd9cae9fd2748db796e7769fe9f'
         '4f9c8814ba532790fbc0b209777b1e72'
         '91cbfbfd18ba52ece433b544c7a8aef6'
         '755ec20ab6fec6ca471f6c86f8d60886'
         '15eaa73c5e6d601ec53d0526f95e77d6'
         '10861b5a187ef1a969299122050ef41b'
         '199106f9094425fc874ee24254060e45'
         '61e35e58878f4c5dafc458dba057b4d8'
         'fdc87b45b44f5d5b8a85a44c3e2028fd'
         'c9720da542948d5a1a69041191a6d302'
         'f49dd949d9779a6f4a30391657f361ab'
         'a1aa60b6e22709699bf17850aa7a01d1'
         'a926c4d2835e9dcc0bab18b5eb87601e'
         '0e84e628bbcdd55362ccb4f00ea56336'
         'af4fb574e3f47f1807fcbd3b2c76e986'
         'b6ec92475fc12d697c8e424fe3a3b4b6'
         '835841730a30ee0407f01b220e249c82'
         '06874bb9946f9f086b41f9f158fd453a'
         '6cdf573eb1a62753e28ae1f987a16847'
         'e50589bcc053adc4f92bae61477eccf3'
         '0feb316ea87be3529b7b408348950666'
         'f5ed012117d28856316845be0c7f6939'
         '3be3c35dc8671e4ccef82d14cf42393f'
         '6c87ce1ad4098fd1005578c870e023d1'
         '4eb0bcec7a2ba155423144eb089330f2'
         'd0eb522610f6f92b539ce29c673564b0'
         'f638ef46aeb5ac56ce815230afadac90')