summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 0a1c3859393f5bf767e58bbb10bb835fc4bacfe9 (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=29.0
_debrel=deb2
_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'
         '2333be54b7855d7f0a02effbbf1e94b9'
         '7716c49cecf2be5fab532678a5f82f9f'
         'f6c401e1fb488e2750bf2ab3a4eb0c5f'
         '06446f32732850ad1520d1db40045312'
         '886de465a3b483e54938555111971c4a'
         '03d03d02e210f19ffa4bb62598349c2a'
         '59498ec32f4742088dd08bb7d687e075'
         '901406c38743ec30071ab742be5a6dc1'
         '2552a263939da4d6b2cdc028ae70bdc8'
         '5b239362ac2bb1ea17b217aee1d6f382'
         'd73b72a19eeb2cdc0b780f6dbd43095c'
         '6dd067fd82dfb0fd41de7867220178f7'
         'd3f8227d70a72e99cee2b69469c5c857'
         'fe44306246e7ba14cea7258d3611d0df'
         '035083d22efcfeecd20497bb13d040cd'
         'ab7da0a98ccf67513c571e378df8c3e2'
         '346f50844d8fdda1f8b98b2076f61052'
         'e101d11b8d67b796f361e03e18a8ca9b'
         'fe8126448cc72862a6815e10243f45f5'
         'a22c2da5cdda9bc88c7827cf0d947fd9'
         '3c65cab2a716685917da377169be6dfa'
         '92933eaeb87e2ac53116c17d752e4fbe'
         '8be1f7fa7dcdd0c8e9c8a5152a3cca4d'
         '5caeca8db6883c5e082f89f2efc7fb31'
         'c14456b6dbed99bffe0fe58c76e6f7d7'
         '73067b30e2e0779a27c3ff2bbdeb38d1'
         '62e41396c80144f4fc425df992ecde90'
         '44a823ad5b0cda9bfadec358b4914272'
         'efddd7dec96f4ab0ef53cc78fc206509'
         '498d60d4d7cbee93bb9e9597e8ac30e8'
         '43943cdde786e176f276e6ab2c0ab6aa'
         '665325f9e202bcd1b9bd143cf3b66949'
         '1c27f547399c5c4fa4cc095c119eaa0f'
         '66d6e6b0ff1f708e05dd09fab84e262b'
         '7eb6fe7f731fc6eabb6016cdd6810e4f'
         '47ede2f3272459422f9669651d6484f7'
         'a4fa48db1c306a81ed3ff85eebe41dee'
         'bfb8ca2c45d54fe22441828f50d05832'
         '6aea9401f11ad57c2cee775fa5a578a2'
         '27cd9c8f16e5e4752dd7edfcae4ee9c7'
         '042bd30dcb4d8229d0285d9effae8b7f'
         'b2f653d5199a71016c3308f23ccabbf1'
         '2991d4da826b8848fd5c1dea8663d48d'
         '2a19e6ff467a643fa22d75a428c124a0'
         '1da6e593ef5d9638f403c85b2a5ebc3b'
         'fe5c99154a090905c1bff4c106fa0347'
         '36981a2c9499e868c0a4aa9872664c7f'
         'f526b5251ad1f8dc6876f337ea46d2b5'
         'e9cc4e725336d25448b68c4799806203'
         '308551179ebe1296e7cff3cefa524db1'
         '99f9bf5708cc32febbc268bf0cfc1691'
         'a4a47ba179b8518e36447a98af640a80'
         'f5cceb502e95b78822139d1bff57daeb'
         'd38265850619af33ebdd943a20a4f20b'
         'bd2067498c8cb4bee3596a9b12f1d35c'
         '804b4f5926f7b4529d29143627cfbc6e'
         '05289c4c8945a987612ef4b93e8ffab6'
         'ff6630d4dc6cde26daf5c56abf70b981'
         'e56d7ee921ffc355db4301409aefa35e'
         '0c2b6a9babe70ba160e03b05bc88b402'
         '8b30781c96c4d4314f1eceeeac3f4ad3'
         'e4a71833f7c06802be03a5e10efda7b8'
         '8119cf1506cd66a4f401f1c594c254c4'
         '9f367c12780a024895bb577b093a986b'
         '20a0ac51b86969cd43e34832b16aac56'
         '303e1b04cecc4297a77bdd340b30fc15'
         'a05a2bc2bda06ce03f3166c6884054bf'
         'f3a8c1533664f27e9466bbf9c8b3ade7'
         '5a8e6722e9d16d58869122b1f05edb69'
         '0c96308cba65543c558a17c3936721fe'
         '42c2e8e09a5f85d9b8166f99367fa175'
         '6e47aae145c85f16ea45335161629785'
         '735db64988581ab62e4d8ad831698e37'
         '4ea1be1b6d40e8d8f198c2890482dc6f'
         '236871158d9113255a07369df5e08f55'
         'bf9d3fa54a1da16c5a8686de25527ec4'
         'b876d0817c381785693140753cef2900'
         '0676fce81f8aa72fb52eda5928bb340c'
         '106770faa7cc3019f762815c42d5026c'
         '490f27a2aadfd1064b0ded007ae017d2'
         '1aafea466e4b288c0f899061ed25a189'
         'fb8389cb9c9ff58a95c487015e61233e')