summaryrefslogtreecommitdiff
path: root/libre/iceweasel-l10n/PKGBUILD
blob: 5ce988bc8c4d13bbdbced959fa078d85f8fa96d7 (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.3
_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'
         '6a211d6ad5f7725e0b583159d9350a30'
         '859d94d43c7ce4923b03f9d40ae596cf'
         '0236f68579323b83e4aa95df4cfb1f79'
         '567ccc11cf913cd1188bb00fc94c2180'
         '48afd986f7f3e64e9ba71837e5d1fc2a'
         'afcf267e016cc57d0f4118130c8e25a5'
         'a91ad41869ac69dab19f85b2a81f1b52'
         'df3d81ce38e1239422c74ae4c515186f'
         '7476b4cbd11847fdb8ae9e2f1de44cba'
         'db05232d0d0af37e33207f19a8266c20'
         'a6141649491b5a47389af5a40cdd88e7'
         '8466a5c85d74debffce908f39245ef6b'
         '54abeee11cbb0390d8a96c2aed38fc15'
         '0eaf7a517dba8b83a2597d02496d3109'
         'a1359d78dcc103b8bc80d7e75381525e'
         '7be36080469b430937c48e5f3235c578'
         '2827b8bf3710ac980ae0de9d97f66fd6'
         '349a3ee84e4bf5c2afcdd82b49505b21'
         'fb19ef99aec02b4de9b79ed67e117a01'
         '900be1becf217721dc9a00c1ef9714fe'
         '3a948c577efdc858027004a4686de8d5'
         'edba3fc064c0c42edab555a5453bf26c'
         '15a9e97a7d97f49782d9e4aa190ca473'
         '0b9a0b891fe6960f9f24ea7f5726db4c'
         '339ec51c352c53d16f7164d057c574bc'
         '256d6c77c08841efdd8fd22b0be2e65a'
         'edf400568650b360e227d8087b1af2ed'
         '01a24dbf301a129ec29eab708b8bae7b'
         '6440a2a26d0d8d3da66c984d2914a98f'
         '71c3e04c516a5c5ddc87200649bcc987'
         'eaeebd209cc1cd09a3e01ffcb617ddcf'
         '8fe6ebe088cbf2108a1c95751dcfa7c7'
         'fa3c0b5d75a18cdb3f3200fd806c4466'
         'e5996a5e34716ca2ce9339e3d6e1f239'
         '0b835b1be449a0efb29fe95cd0203423'
         'b5b1cc5430eba641229f0482dd287a33'
         '5de2f82172f34c81ef1685cb191e61a0'
         '03c3f93368873d7e3087c26341046e2c'
         'ef8f609a20f4e4b3a8e68ec644656afd'
         '920bc3e067c873200882e1170c2df3ff'
         '5dbd9da8c2b5952842b1aacda4c1a808'
         '46d447e3bb45fb1c38a06906c3eb385d'
         'c1a9d2cff27f69f83cc3015705da2045'
         '98a21ebcd8c12e47e910aadea8e2710a'
         '8bbfce487c65708d11078fae24b5102d'
         '371a4e9a1c4f0f440a3cc2a9f765764a'
         'baf2c7d204682d8aeaf4bf3326d346cd'
         'fe39d266f782c415a0e9de633cf514d8'
         'dd921df7f1cedf88005ed740dd159a93'
         'f85c58b043232efdd87033e26a139a73'
         '150d5acfb4d0922d0192dee3bdeaf571'
         'df952fa635d6bc12aa3040779ae79191'
         'd4ecc523ee4c506bfe6c8419f29dcf35'
         '2cf622ed7c331a018803704965a356ea'
         '81edbc672b8ef2f64729e87dc073060e'
         'ae8601dc113ad0883ac9fee33d9fb628'
         '961c975f0be46f6c48913e65065e3a4b'
         '3f385822ecfe8d29d9b621cd1866100d'
         'b331febe87330bd02f0e68e0edd3849f'
         '5b6f5987d0447c8aed21b3d93373bb60'
         '417b6f4b30359cbb5969b5a4bbe74ab9'
         'c5879a5a98be75317a9f56f0c0a07019'
         '38cd339a21c362ba0a0d91d7dca81b3c'
         '53caa171579bfb746a0b432ff57553c2'
         'e23cef01d604e56ef5eef45080af0cf0'
         'ab679c0d46b4ea3c0cf3f70b1184f5d2'
         '8f6e057117bb4497544ba21de6857d60'
         '4c378ff939c312bfa47bb781d9b5db8c'
         '328c88c4d406a19c309b3a12c392184e'
         'c33db250dd36eb5ebf851f3dc9e38e18'
         '1d93e834f3e96936a9b4a75a3a484b1e'
         'ea3aaacdab67d11332ccb973d5aa9569'
         '1c903c4a99368c7d560dfd36a2907fe5'
         'ed6480f928eae424c63309fbac98a83e'
         '6c3c1c5c543d6bdbc608ea788b24b630'
         'd9a8b097ab26710455588509c2224aad'
         'ee108e53b65eab41feb5aace508f4218'
         '394073a1e69cbab42998c82a3107d8c7'
         '8c7e8cb55198ebe50f0028941aefcd06'
         '25f64e15a7b70f9a4271be3a92a90d95'
         '5a315ba427d718df9cb1d6043b635af4'
         '60acbf39499e6afd079e26b2470f6e2f')