summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 3c3d957a46786a48bded0d6a920e0ee00d9985f1 (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: 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=21.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/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'
         '59b4b2a362eece9edabb2fdc0f548ea2'
         '24df894af578b902d16d4bc91759e926'
         '489f555d46d08e3cb37eb5cb16203a3b'
         '3b71f901014bd3fdcfc53d19a13cff10'
         'fc4a5af84dcf6b055b11b8d2ac9868ac'
         '7d03e2d5c2660942d5fbb5078b71c8cc'
         'd12132ce5c0a4a881363dfebbf23fbee'
         '09a5cf2d291f052433bdf834fe1f5100'
         'a8eb8983f0c63c1383f18f894f2292ee'
         'ef6fbffbad81223386c30c06da584f65'
         'f4b80fc31cea5e0aa3c03eab9f36765f'
         'c7ba7f36e104046ab22f37202c5e291e'
         'e884fe1127ef15376f4d72047e2ee924'
         'b235bed0eb4f872d5478a58c00341458'
         '577498e39c9dd00ea2fb72146b3b5eac'
         'c611cfc16c7c7b5b6c877fd88b40c10e'
         '5c6e2f317aba37bc701e4aab4720fcd7'
         'f9f7db03d1fcf2337902eba79289934c'
         'e601dc8a1bdd9204ca3a4db5e4fe0df1'
         'c2075468a1fea47efb7c65000fe73652'
         'fcf2f689a8d06c7c2c6bb49f57037d55'
         'f0c8d22cc820bb7177326bb069a38f5e'
         '9dd2dc6c155ec3a61e26fba4baa980bc'
         '41eff39b7c819c78fcac10f8064a2627'
         'c3f9a5f5305fece3f165d5d946805180'
         'd424c55b8a0242e500916f5bfdc60319'
         'f5d41bf99c08a27c4f4a2d370e6414f2'
         '420a3b3194938ecc31e05899bd0c52e4'
         '19e23ac8f3e187c1b7112e1a252adacb'
         'f1c9f646c5b70f591497cc36b7312aae'
         'b246026367f3c5416397566bd5980e5b'
         '24e4bf6cc17e3fd724387e157e6a49b1'
         '60af06bc25f259311284d83cb6b2ba02'
         'c5d8d2fecb6b0d2172ea1b4a4bdb2d68'
         '58c93fd5ad320935666f0e10a2111f0a'
         '7777c5b6bfa40c3ece5b48ef18d12938'
         '47725d7fa7594f5739725096ae999dd1'
         'c2f34c4fbd2eaf0a9c7e8d97ac49ae43'
         '7900a33d5694744af6c1b3a6b8a5f2df'
         '97a95a5c30d8ba542a4c5457a831259d'
         '02a3052bf3af409c56cdca72c23f2669'
         'a617e607fe3f952b6a152707c5c895e4'
         '8d93b0550a30af8377e6198d67fb740e'
         '938c22bdb193a8be3cf317deded8a49e'
         'f343106f50810e14ae1264933d5495fb'
         'a58187d70e895b90ea7667b08e0df6e4'
         'a014309f9621a15a7f86e759d5a42aa5'
         '8a4c8bea9c508ad4ca395eb5d31e3105'
         '6e728d930ca539a022d1d5cc5d8cc9c8'
         '6c10afb3a86a1305ec4fdfde5702908e'
         '3f749b1b19d5534442eb9daf5f9ddba1'
         'd8876e6f3ee24768a602128963f80e1c'
         '6b7213d8c4d625ff0293e7a7c8eb4254'
         '3d2b5b760c369ce1ff764205b196f0e5'
         'c09eec3566a2352f1dd2f2ad0e7cbf6c'
         '5e560da497a4e448413bfd343d23493d'
         'faf5235cb19f5d1ee1d8868eb9399d8a'
         '1dc06a576d7c87059125fa51e8677500'
         'ea7c6eb5df30fbf3b7b4737025492fd9'
         'f50c41542503959ddcc0ce200c2f8ec4'
         '1a633a935016e3570327b52b66bb0dca'
         '59bcc03566d356ac027655453775efa4'
         '2d8644f035fe7d4e77a0f5eb196ddb0b'
         'a5cf6b19492d3e969187fe847d4ee990'
         'e3167e646b7c556e0d43565a13b066f9'
         'b1ce311e588dd120d04c2d94597ae100'
         '129a07881b89c3f3ab14971dec88007f'
         '37bc634c1f82bd9a01ea7e817e100d71'
         'd9b39409aa83bcae7aa22c54ebcd48b0'
         '582926879e8d10d52448f373cd3fbd33'
         'cf6bafb6e3ee659c27579b43038f704c'
         '083f69fd4f64fd436d7fdfe8a7747b41'
         '6f65d6a154fa2c7d72045b4b34fc8890'
         '1a060b1b08d6fa8413995003c62b220f'
         '84194eba8c736cd8036975a8423758c0'
         '30f15d767b3e867df514175680a78a8d'
         '32946289930406ed3ccd1c174e464210'
         '05547b17ebd589408a9633aeb4fede40'
         'f53c078d1ed0e90f2d68f098b34279f2'
         'a11cf418be9247856f3179f85fe57c9a'
         '39d47c6e738749b1c01d06a1b112c368'
         '63adbbe9ac9dde80d2c3ae0c861f1d33'
         '82d6b78bf72083a5e01652c02e152680'
         '725a322b12f522591a5fba5aa32031bb'
         '98c7ed17e8fbe4478032a31ad2c2aa07'
         'a7c33685d88af8a90a14c874538fa53a'
         '9b43e2e557c82a20509f34a54cc42e0f'
         '84e12ebfd749a04adc5b3ace348a06f1')