summaryrefslogtreecommitdiff
path: root/libre/iceweasel-i18n/PKGBUILD
blob: 3476c68f53faee37d4625144db577b7356caf920 (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=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-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=('9d0c6dcde68b688ba613c9704dad8cf6'
         'c3f7acd38f4fd0810a8bbc9c1a1ef990'
         'c806782ef309ecac56b0e736081555ac'
         '41f9def213a2de76687be9bd36341c71'
         '2aafaa1710de038f7741b1e5c1e40f19'
         'c536bdb01893b53346726cdf572cdda8'
         '1b292d4cb415fb0b493fd88529d8add1'
         'eaa814301018cbcbcc9145fd60a0ad3e'
         'a7ffe62f5d1a676db58d6bcd0cb5a29e'
         '25c8732aba36a5f8e58f35788a89b2f6'
         '5ac90a12d8d1f0bbd0c32e6411168461'
         'f47b78c5f086ec511388a143330e22d5'
         'ae97555f6474f597a15da089b6ef0089'
         '0c46ab829c0597dc3faa5e70d64bb903'
         '555ccc2a64ce110308ae55569cf0d612'
         'f2bdc9390388552cebde424ccb533b56'
         '0f857bdca9f2bcb24b5e8a2f46f398af'
         '508928bf9b224786e3fdad9bcfda4230'
         'af8f928b3dcf59489291ed99ad216c10'
         'b97d8915f520de0d760070e7a058492c'
         '5d894ccd869331f6ba81b79d66452d29'
         'c3e268cd4c829cb0852ed02c9de2dd4d'
         '408c8e898900efc97d3c449382958607'
         'ad9568a88b73189cc73c25728d23db3a'
         'e6e84f910d33d75953a4abc4fb0e78d5'
         '403991c8eaa55675b433701901042791'
         '8b317a2f84f3ab4f20f213134fa4e89f'
         'f6e192717ea383206793b5ac51d94b9d'
         '5a1f2ff1a18c58bf7eae079f0058d3ac'
         'd65eeba91a938d95466fb602919a8253'
         '6719800c6c4ea969af4597386900eed5'
         '09152085c533d5cfaa3281bd56791ab3'
         '5c3b9ba64919931ba924aeb82b6d511d'
         '0a5392e0edf416304fa3501e09a9e755'
         '9d17cc7f1238db2edda76736ecee56af'
         '56b19d666ae1df919b26d6c04ede6ec7'
         '16648d2f5b226786487d9f6dd4bf1e11'
         '5cc3b11c6dc4399d9024ce58be31dd0b'
         '999685ea1e48118e0a033f9b64eec244'
         '3b7cb8fb5da908558ad2843ab61bec57'
         '7a566e091f024f9cb458e57c20f59fff'
         'eca90e7e61b2b628ddceb230229b8fda'
         '58dc4acfb114088852c1e12708778f6a'
         '6e6755330cea230f334a6618e5c06268'
         'bf1ffad887e9bf769f021790abdfe79b'
         '83baeeed748511bdd7996aa34e074f39'
         'cecea99a977d0849a2077c7c4aca175d'
         '01b9b43a1ed30e05f96c10365011b980'
         'e08db859318bd525f37fe5e90c15bc15'
         'e9ba8aeb43ba9465231d91ab4d9046af'
         'af84a3746532b3a1e71bbf173f37acae'
         '0694facbec186997b5e3e56f16924371'
         'daeb31829220fc001c9fe63e2fe8de5e'
         'f1573ce43e917553c2720bca8f24569d'
         '8afafca7d0a34532d77f9e22929b591c'
         'c67cbab5cb06b30e21c310e3d29fcaa8'
         '201292f43d1c354bd0189906d03cbbd0'
         '9cf84d585fea1ac3002e2cced729c8a3'
         'b32934822634ebd1a82f64ac70597ef9'
         '63cb7e54400f55eb5b4995c299174b40'
         '7bdb7601e9c21af7f6e8d4c6f2acc8d4'
         'd998310ca5c38ef8babcc18a4faffae0'
         'f9896f39830058b9b003568f4d67b73b'
         '9568dedd80dc5401bd69880952ef42e1'
         'b8863db55f206abf8c4fcc34fd82347b'
         '8f4df43a91550692497b599856323bf7'
         '4b91b600a3fa5f520c3c0953128695f5'
         '0a1fdc989d107d323fb80ea05b13b832'
         'ca6e721d01ee9ec6719c1813ebb7f35b'
         '5c40e59819a74f47dc95b58d5e1005ea'
         '6506433c61b5811cf600f48a0b5e8074'
         'e4410eaaece0a283bb4060d3eb428a96'
         '635a91b20ba7ecde88de1bdf8517c7bb'
         'b884f988301169f17e5f181be5768e74'
         '4358aa4e516f38b91e284eb75d729978'
         'f386732f9fb2629f35defe354e85ce02'
         '9312ded30c12d367e9280ccfe5f22261'
         'a17cd6c8190d0a31938292b77c6c50fb'
         '01187464580ccd34874e48e8113e4e5c'
         'af362b174706ab93851ac1e6e6078422'
         'a8291043c75079d9c66258897b30bba6'
         '5ec754344dba9cfdc3021bb03ec118e0'
         '04a79f1876c05c62f270f757cf34780c'
         '494444bb9df2fbefc8689c3c3be61e6f'
         '9b8c613d0f6cb51209021c436f7313d5'
         '9ac2c4bab905675ab3cefbc10742f9cb'
         'c1a67c2551a9d0de73d72b3bad887159'
         '2153d65575351ac1974fbb5874b4788b')