summaryrefslogtreecommitdiff
path: root/libre/iceweasel-i18n/PKGBUILD
blob: f1b53b605bbea220d4deba077413f1fa445f362f (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
# Maintainer: 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=17.0.1
_debrel=2
_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-i18n
pkgname=($(for lang in ${_langpacks[@]}
        do echo $pkgbase-$lang | tr A-Z a-z
        done))
_pkgver=17.0.1
pkgver=$_debver.$_debrel
pkgrel=1

pkgdesc="Language packs for Debian Iceweasel."
arch=('any')
url="http://www.geticeweasel.org/"
license=('MPL')
depends=("iceweasel-libre>=$pkgver")
source=()
for lang in ${_langpacks[@]}
do
    source+=("${_debrepo}/`debfile ${_debname}`-l10n-$(echo $lang | tr A-Z a-z)_${_debver}-${_debrel}_all.deb")
done

build() {
  cd "${srcdir}"
  for f in *.deb
  do
      bsdtar xf $f
      bsdtar xf data.tar.xz
  done
}

_path="/usr/lib/iceweasel/extensions"


for lang in ${_langpacks[@]}
do
    eval "
package_iceweasel-i18n-$(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=('bfcf60a7c392c4a961147fab028e2f3a'
         '3adc81ef09416701d75cc2b68863ab71'
         'd1c7296f27be61e8506bc14e3cea6d7c'
         'cd9b943301dd07244eb5ec8a469524d5'
         'b501ea7ee7c32f9c3522c45e576b82da'
         'c1f9a597d30a75446cca70617f9b7d06'
         '124bddefc8d8b835b6b57d8992fcab06'
         'b033cf6889dc09e595daa2a48cc8ded3'
         'a4938e59f69fe4cee190a56ac50044ea'
         'ab0d0933917428a0652708dce0b5cfa6'
         'a3efa0cac151556296423734ae0b9b0d'
         '46de0d3c71f45ad0cfe8525bbe774ae9'
         '2c736e710892440f6dcee1841dbd7681'
         'df77b365ee1014d0e7bf052617534aa8'
         'f7a3f5284d8f9d1f98a407ac162ad13c'
         '736d679607437cde9a44f315c03d62a7'
         '0d20bdf8c98ba1525bcb32a125874de8'
         '6fb81b76ddf2df461e4e332b42027144'
         'a4c86f8ea687f1710f4952a732c7e3ef'
         '6fc112fccb7467008b1d8246e4c55fa0'
         '13a202e640dfcbcc102da513354d2d22'
         '35d7ebf315d56339552508e13668a9bc'
         '2dc6f461b4dd0a7e6402476c64159479'
         '72141640e0a9e32bed5ff941f2f375fb'
         '33aa87399a302d233b30a909912b6b92'
         '7b304f9bd315ba542f20f5e44965ac7a'
         '8819847d626ef1c84e4150b4a0bccc97'
         '0a432cfca308c32316fe139a02782084'
         '5cf26da9d36ec4118d4023b990f8244d'
         '54b093eb4556f3385c12b8787451210b'
         '4a5f0ada4951fa1602e83cb61a172ae2'
         'c3fff5a4a31a799fafbaeed74d429a8b'
         '772aabab84c69e6575302789626501e3'
         'd4ab725f098fa07b6bf7b6cda975b5f4'
         '960262717e79549db34efa26719a8441'
         '2694e0c34f8b1ea1e717a3f63ac0dc46'
         '297f3f6bfc2a35e551f89a15074e6f5e'
         'edfa98ed872dd38e39532d181c101ee2'
         'f8b924d171dada496fe1668a5495f1ce'
         'f372213171b843be6f394ceee83a9132'
         '8d4fabd9ac5a00e5a8baa6528d9b4feb'
         'a3626c4edd9e9a4e8c7edc9a3ada06da'
         '9d972a22d5e93990310223a8ca011e12'
         '6e888a089a0118e79abb239921f95395'
         '7f17bbcd346ac54ea8940e1c5f05a366'
         '81ab2c6a24af3ceeacac2c216a529ce0'
         '5595bdc0baa7a55f803cdf69b9738fcc'
         '7cc94fedb659b353583b23ef7ae0666c'
         'a01e06ecc2352c1bab4139b99073450a'
         'e2b8630f68718b8ee7038c9485828653'
         '06c80e586de69d060b627df92737f619'
         '92280563e9ebd794cdb2ef1e53bf227b'
         '5331a0ff6a6f8a2b7983a3e8870fe8df'
         '2d452b1c4f21759f470c95464ce00a62'
         '7043f221184cf4120dfa08a9f7781f5f'
         '4b7508c40fc3be22aed3d2318add3c4e'
         '4eb1f073552f470156faac871aaf675a'
         '1e699248f644dffc605bd1a7a2a9358a'
         '8ea797b2108add003ea5f6f2181b1f5e'
         '2afda212223d73ce56f78952e05a1f02'
         '525aab2f11ebd0029c10cc5bdfa128c7'
         'd61c3a36bb1cce1fbabd16630e1eaf83'
         '66f808754db7864c8ed52235600863a2'
         'a01221e51ea5d09fc7ae7df839b85cf1'
         '225a0afccc4db77b6b3302dfe680dfed'
         '3087a16e5ea61864c9bb14e6d9b99a41'
         'a5a8a3a32483f582bc2a2461be821f8f'
         '30bec04f1653090f001bb788140312c9'
         'fb20d0a2e93f22a1448f10c930c04363'
         '29faf5333e2cac03313dcb0f1bf3a1f4'
         '1ad2db69bb765347abb310978ec70b53'
         '37a0e5d35788ae8a8fd84c74d1d63737'
         '963faeca032dd071ed20ad26414c789e'
         '9cb6030b31882f118e0fa5bac5378dcd'
         '68bdac015cbc1fc04ff76a6b27141ea8'
         '79e4d4f72a13d701bf74bb18785110c5'
         '516eeca239f934bf6f1cb99460a64187'
         'c7bd6ea08d6485a5a2c47314afb2f121'
         '2449532d04dec088673b2881407b902f'
         '7dcf35c35d514e4321ef679d306cfc51'
         'df147de85ddec58d18a72bdb4c4836eb'
         'e538c35be0497500b779ac1dae2fdee6'
         '2eeaee6c772623ff192cbba1f1871c2d'
         '2e6a5a11b1e110cbf73495d2549015ed'
         '87486a10980d5f82144956105b240cbd'
         'cfda927e1d589e4f2b15e9cf1ef803f7'
         '7785e2b1393e080a753a4a0000c94895'
         'b57a36ab82768ecaee01ac3d2d6ef55d')