summaryrefslogtreecommitdiff
path: root/libre/iceweasel-i18n/PKGBUILD
blob: 899c009f61d2999f7b1a450be67932f00921eb99 (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
# 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=16.0.1
_debrel=1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }

_langpacks=(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-LK ta 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=16.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=('2f40a462c2850b50a604371e875fc47c'
         'b49d42e9000a1163fd74d213624d8e86'
         '385aa5d0bb43d43abb5ccddaae45bdf6'
         'fce90fb3c7fddc26aa50978182f8b831'
         '163277191a666f36a2885cf92a163961'
         'e99bb607fd025990604e3229ce9aa8f6'
         '35dcd2dd926b6e87dda1c11405b66472'
         'debafd1aeb232448241953c66b89e63b'
         'd23722619bb0d7f94894d2357060f629'
         'cad3e2bf6d1d97fc8dd76426591e4511'
         '72b529f4aa744b2368703c19080940f7'
         'f0b1b1ee217230bd735c80b881657c92'
         '9335e2678d66366a03ddfb4028b5c15e'
         'a173f9f07df4cc614e23694b0e2f3ca1'
         '5cd9492c24fe0476431ecb83dfa660ee'
         '9f7c84b8269c756ac9feb96e59e4c903'
         'a7dc03ef8409f2da04fc3a0a52016631'
         '10e89e4953f1b9269e873345f03b867b'
         'd893c8d240fc27a60b39f91f53a309cc'
         '34b2d538d41fdcfd01d34a7cfb147135'
         '1ce5f6b8a2e3e4921263d5af004f40bb'
         'e59d36431f7f12eed4b7c89e2597fa6e'
         '68684fce0eb66875f6d64f93b2e5fb4f'
         'ecbf294dc3ac7bc558969479b3619501'
         'a6226b0ab4b404d5e15194b7fd613604'
         'a7234e85380e6cb647026a40275416e9'
         '7b2877ea2915bdbabd2748ef4b180755'
         '2adee8f256369fe890445eeffcd361c6'
         'd9b1853f350d4124e5ebc2561beb8814'
         'df6fa75a7165973d426c7d74e6c06cee'
         '8ca0f965013836a32e4583da92149099'
         'f007c9402015858a7a817be7f9038bbe'
         'a7e87b3320cfea4d7b5d95b3f6769cd7'
         '05659f1784f63c55dfe6735823b2e23a'
         'a08a8a2504a8b5f2e419ed9f969a32be'
         'ce7d8708af5982b26d645b7cd7e5b33b'
         '77d7d6a32bffdcd46e8d4444f05b645d'
         '5fcf6fd003938edeea07be704c92de74'
         '8a83c45d55ee7b69cb895e33db3cfeb4'
         '561255aeb09362d5ed5b3c4bfdf8f293'
         '77f3d9c38dca64141d32babed3c4afb7'
         'c30689f2cf263d4780bd106af2a68d0c'
         'd25d040fd7d824f848b3b9a5fbddb446'
         '30af6b1339fdda31b1acffa87a914363'
         '582116acc9c6e38226bc8e256ab6bb9b'
         '51811e3139cc4e514cf3d8c29e468e7c'
         '987fab8eccf60ffbbb685e7af297030b'
         '60f217af071d95743aad066daadc1a95'
         '649e1a6e583aed2811427f3493b0aa74'
         '33ba3c51cff806110324d0f27a63848f'
         '8dbd143d46cc51b373f6b61f1a27d6f4'
         '3fb0bec111ccc6dabe6c785810c40620'
         'fc71d03873e7e1d4099702c1ab24c6da'
         '775894f40a434b91f3489ff19f8237ee'
         '71416fc9bf41b2c6719bc0b3c55e7b7b'
         '30f988322526cfc25b15cb9179d69be4'
         '195a1099a613215160c8be5f63169ce3'
         'b59a10c70e33920d08750b76349ae764'
         'd9f0b1dd204b34a78faca8b0de73fe2a'
         'dd3eae36828975d87477fe465406e1e6'
         'f8fbcee8171a6f7e0e81f8e0e3a381df'
         'd5e5b6d7f4018b34fe01980548221332'
         '7db06a1a09551d6ad943feb398affe57'
         '7e7e0ccae292b3423d5d1a5dd848abe0'
         '8397c0e05c04c6b054de4fe524a95c42'
         '89becfa004fb398d2409800f5fb15179'
         'd90fbc489d9993177a36ae788f9f23ed'
         'b5aa84fbfa8e7ab12417b23f003fb17e'
         'faf8056065dcf815e9a305b2739d0063'
         '2e42ba1813720717da72041989c02880'
         'a37d32a8cd3b8a5d4247527e6bc82380'
         'd651717b27c2ffd4ce52d3c51b18dd85'
         '2cc13f741a6910db6c3d00e7c53fb575'
         '31755af06ea85ac187588076d20fa991'
         'ff2ff3b748ef2dab4371897bfdc96dd4'
         '2f38fda847f928bee7fba4772360699b'
         '4e8c459c0c5d009c633e843a0420d113'
         '4ce85d3534267db686f7d8181c499f17'
         '465dd984f2f96407213c174ec832e51d'
         'aade2355978099d9fc25d0aebb3add7f'
         'c66934fca336e18aa90938b0bc5991d7'
         'cc128b35d45e14047f769ee6f0c7af76'
         '2357b049d7a7eb241b1a86f359aaa576'
         '78f9371eb4c4c48a9ecd35f9e5c90461'
         '9c06a7d81fb49995b56a3dfb4c77db9d'
         '4af51a779abaa49a6bae6b90ccdb3fd8'
         '3ee205c981dcc548f3e501aa06167df4')