summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 375785d88613e0e2c55a9e8a0f458d26b0b5613c (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
# 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=22.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=$_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>=$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/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'
         'ee742b573a169d31560f6a6becb41e3a'
         '5d0dc39924ce4e0db437996d8a34fdd0'
         '0f0ac315f5fbb5e081e5e9969c5482fc'
         '4f9acf9efb7bfdaaa6061d76a61f1fe0'
         'ba5e95c3b6a48c8078353658e90a86f0'
         '62b101c5e3ec1bfb7096c1728a5a1f89'
         '33c910cb338f15b1f8bb53642f926c3a'
         'c971d199e6ce406095c82fe0aa11fe01'
         '023ffab908dfd2ba970a1b5b9e5d2b0e'
         '4c268fbe223e195ead80454880d064c7'
         '8bd1c3303d7c17f2bc60240496c76ce2'
         'cf9e7a05dfa86d45246d0605d00e2d87'
         'a5fc01397dbe6d52f996b93b8a3cf55d'
         '0b838e5ff9bdef95353f6e7dcd259558'
         'b529eea7fba51b4384fde80b47e7bebc'
         '4f7fd9e189de9df37ff69cf34fc99f02'
         'c43a7be1aa8a0f00023e024de46198c2'
         'a4122057c2b2d4cec5079fef3c195b69'
         'adf7ca92a9df2d80a150fba8f94d12ad'
         'ce406f27700d972231e6a58f137068e2'
         '1183cf8ff60af67e723bf3279d45058f'
         'bf22f66d181f97f5d818b8a1cd708617'
         'a684274da448a765a47a9c945803ab4a'
         '328a0a2affc13ec597233ab0011ea506'
         '099cc06876fe8e59a50bedb498169721'
         '2e4cfd617507d28fc7083cfd9a49b5c7'
         '8065c4a6d1634f6571d8dd3b428d3e6b'
         '03a8757b10ca780690b80685918d9fb3'
         '650db5a5d7d84ee533a34d4e6927e7b4'
         'eafd888466b00b1130aa24ce3e5ff689'
         '1904330faee4503f733e006aa4f70d12'
         '2a9846c969feacdba46956b57231667a'
         'e28a0fdf769432fed614da3252f03b41'
         '3268b4c75e04c8315c93c0c47fedc602'
         '5a0358ed95f4be6a1fe2f7654ea97e38'
         '9ab21ef94c416f0925dee7fa1bd7feb0'
         'bee9b7995ccefdfe76b911032aa91a1b'
         '59e6062bc9b97ae55f33ac7354491ce1'
         'b449c0dd635d34005b72a0f8a6c6573e'
         'b21e26451d5fc860a58d8a4cc0b9be99'
         'b558424e457aff17c582d642aa85fc24'
         '5b603ba3e3c54902057308cb09c80e4e'
         '20c17f3d945614cc36916dcf0c479a5a'
         'a2178a56487c0449244f50763893583e'
         'e256a82b04816566e10c9d4c8cb62c57'
         'afc5407fae17c2e894216b2e649d230a'
         '92f60bbe78aae87dfa2df2bf008db10a'
         'a02788678251a677c6cf7c2123391f2a'
         '4f927451a8b375e0f5ddb291c1fb7b80'
         'bcd9dbdabbe837b615c3c94e664addc1'
         '2b50509cf00c2fa27292b055c31fc415'
         'e7b48db429e08751ed60b9500bba9d7d'
         'cab6a762cb378503f797da42d47283ad'
         '8be4595d4788114c9c167435a5bc8d3c'
         'd03539bb9460209fa474385060077032'
         '2ce9415f8f11aa7e8498a1abfc3ef39f'
         '4119ba2afd5db58625571a119c1f09cb'
         '981e12b8649b4450c5ac1e9e8ffbac83'
         '881032091c863b249d1f463a1f1ab58f'
         '13b6072c1adf21a2b8363a77073c83ea'
         'ba3646116673d62583b03c8789b72370'
         'b40dfef3bf5c27673a600e22135a86d3'
         'f2d5b8b91a20ab2170c5c62db1179ad4'
         'badc3b2a5c87b9df2d4176b0542fa836'
         '882799e21bf63baaf4b1d335ae3ffffa'
         'f0ff3990e05f7d7d4386a1dc9cc78423'
         '7bff28a8b1dee5f603b582d0ecd51f35'
         '015469155969f9c2bdb79a2bd0d41402'
         '59a8ff29e9a15d6b174dea2c7995ab3f'
         '63b5a9127a721dd40ed3ad8f78132ad5'
         'f3f2fcdd40ea556de88cff9edae0ee3d'
         '0d07f11308c2c339b965389e221fb6d5'
         'ae002208626b4b52680f33f2645c1d47'
         'a170a839e3fae8ef76f80c30d5f136f1'
         '16d6fa49650822e036c50892b4f0c3f1'
         '6eb5c5b1caf73c6d4bc9ec60991db988'
         '846e79dbc479856f919f264d9821233c'
         '01bb7fe8b663610ef4a5813ff3f7d895'
         '670495986ec1643302641ec214a6c38e'
         '251ced2c35aed8d301b23922b35d5e7a'
         'ce1d7bc395ccec6b9d4b143d5b8c5ba7'
         'f90747e32f6414f3494219becd331eb3'
         '8fba2382f07aecec5234608741fdb72d'
         '9c06e17e2dbba42dbe01a1264c57e39e'
         '0a3aff57dab8c018daf0d9e71211bbb5'
         'a15982154bccdb4abdedaa8a86edd259'
         '92a75129f4dd1f9700bd355e2c15b393'
         'bb02b3047d33b870ca5f549ce5561d98')