summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: b2b93760148925192f16a336fd2aba756a1bb287 (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: Luke Shumaker <lukeshu@sbcglobal.net>
# Contributor: fauno <fauno@kiwwwi.com.ar>
# Contributor: Figue <ffigue@gmail.com>
# Maintainer : Márcio Silva <coadde@lavabit.com>
# Maintainer : André Silva <emulatorman@lavabit.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=18.0
_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 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))
_pkgver=18.0
pkgver=$_debver.$_debrel
pkgrel=5

pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://www.geticeweasel.org/"
license=('MPL')
depends=("iceweasel-libre>=$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}_all.deb")
done

_path="/usr/lib/iceweasel/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/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=(iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z))
  conflicts=(iceweasel-i18n-$(echo $lang | tr A-Z a-z) iceweasel-libre-l10n-$(echo $lang | tr A-Z a-z))
  provides=(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=('428246ef3fb64103ff2cf5eaae2a92ca'
         '08556c8d27a4313b5e67e655d2e1e828'
         '9fa01f43db09b12cd724f94c28883a9e'
         '0d1ef852709fcae1842105d675c22312'
         '56247c867b52a19808ca72f7fceb349a'
         'dd670bcc609c06139671bf953f26d7b8'
         'df233884b68c8f37ff9b757b6480ae94'
         'd2aa803c6e1d1ebbaf9d4f6ad73f2aa8'
         'd0f512e8bf97110a60b16de59b15869b'
         '54045555373497393ded8bccc0dc1784'
         '61cb757a64268141518ed9dad4795106'
         '62f338f7bcd7fb50ef2f61936c0e4990'
         '97b2c6a0de5d60b4e5696973aedd3cfc'
         'd916a0b470264a9271509ed7a109e360'
         '6f442a2989b814f20f4b73975bc97a5c'
         '6117d8d24dad056f143feb3e061702dd'
         'c759f731a415f99a73e20090f4893184'
         'b481b08da143ff45a84d32285249fcfd'
         '828f9a5b69634b39d48bfdf472a957bd'
         '12d4b6779cb50777303381d35f539c4c'
         '8609fd343e1e91724f50d6833d3e2f82'
         '331acfbad62badfd48713d9b461efcf3'
         '49216a2ea50fcd01057bd7b0d14a78e2'
         'b0738cf3f5ce546134150e082cffaf61'
         '9f03cd24990c897e75594229517c1e9a'
         '5667260492203f29bba1b2732ce20b77'
         'a1dd5872ab73a1a14ce3e285138445da'
         '03e82d09ba4026ab10df5cfc3b78ca5f'
         '1e92e7b3725cdfa94fc705ab54c7c6aa'
         '35d9a0ccfa3c95a3a56f29c7a5bc4e6b'
         '656dbfb6ac9efbeb4e58b5b9fc5fda03'
         '29a343077a3de07ce9bb3e4d24d6a11a'
         '831e09a24d4d40cb1bb45f980b7fa251'
         '8488c98293d6f16caf99cf556f999611'
         '92b07db5dcb8fc95ac8f5706b94d7ed5'
         'fa9ee1b85adbd15c46ca075d94e62a14'
         '19383d5cb3ed6de8599118dd9f54889e'
         'fdff305ce5b154b12907fa302419548c'
         '24df7d71f1a70e8225e80d15a53d3777'
         '793bfd1301c4e989e2f904ad9f6b3adc'
         '06d4e4423df0908254e422d207292858'
         'd53dce3f9b3a5de374dd6c10ebe3665c'
         '382e5237a81fbbbaab499c5c6646b308'
         '1da9f5ce8cbd3bdcc46f932b7458574f'
         'd635c40c88a7430a2103c13cdf1b58d3'
         'd1eac26314ade41883b24b91cd9e01c6'
         '6e65dd6b8cb0fbd4395e548926043e70'
         '97e8c9b3db047651a38f29366867c92e'
         '87433742c0b21c7655988d5586667d77'
         'ac5cab1c45e0accf718cf624c8545dea'
         'd3f2ff9a817dff71fa05ffe5f3f45db8'
         'd1909b644b4495343b6d041c15683ad2'
         '5c79b17dd9d0d83f749f52d489b347a7'
         '433f0456e52420955a3689d2b18b7a94'
         '90ee54b793a100b74f1b91ca2acb103b'
         '0544d0e7e26a0c07379f0c6ca22708d8'
         'c75d55a574f525f5f08574cb01a2ee20'
         'b43589a4b08112996c756db467015eab'
         '82782fd09a815441622187ed8839b0ee'
         '52de8e6386f0232d13c6768092089c23'
         '091e065f1723fa7fa7701ced828e24ed'
         'a036b50e5915e5b37257fa048e8d7a60'
         '1037213a49539a069b9e223dacfbdc94'
         '251b43c207b4fb0842a913e658f868c3'
         '1aac06560c3a0957087eab1d2034eba3'
         '964b3edfd3221d8e412ef695bd9a7b00'
         '45a900da3f1cc4834b32b190c67c42af'
         'cad9df2808fd8f009d27142a729f21d6'
         '192eaff8883db984c42ee43e3a5303f4'
         '1000e395379bc6ef3b9c2c891f615e44'
         '1da3d8777bc0595dea09fdd7222b55f3'
         '0fbdd7294e21936ae75aca56d4d7252c'
         'af481ef78e4ffe7b4cbf892c5cb10cc2'
         'fc884a9a8203c56196993f6ed65069ca'
         '1bebdd6e194cbb746f81725e317eb9b4'
         '4c75d146f27aa2a70b0219954baa8965'
         'd832ceafecac23a0659f7a766f6d98de'
         'ed056fa5b30ddf55042699713c629503'
         '8e698f20270de2b2fbaf9c1f09257c06'
         'e864caf42db46efbaa229f36af572ee4'
         '013864da4a811e894ba1605e7f93e80e'
         '69be7804b3d6a6bb5683554cbc324bed'
         'efc6a8427f080706d7d590a7b0eacadd'
         '40c41e04514e3cbcae33b15a062b3811'
         '164850087cdf79d57569ee9d4e1a8d2d'
         '226de7be23de61db7df718ef93f7c906'
         'fb331d7fd4f1c853192111663e2672a0'
         '5dd0a89e43aa0f263fc7c1d4302dbfd6'
         '8e602db8304ddafad17fd8098125d37b')