blob: 5ad18ba5c6ed068ae856668861ad3c9616af812a (
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
|
# Maintainer: Luke Shumaker <lukeshu@sbcglobal.net>
# Maintainer (Parabola): André Silva <emulatorman@lavabit.com>
# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
# 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=iceape
_debver=2.7.11
_debrel=1
_debrepo=http://ftp.debian.org/debian/pool/main/
debfile() { echo $@|sed -r 's@(.).*@\1/&/&@'; }
lowercase() { tr A-Z a-z <<<"$*"; }
_langpacks=(be ca cs de en-GB es-AR es-ES fi fr gl hu it ja lt nb-NO nl pl pt-PT ru sk sv-SE tr zh-CN)
pkgbase=iceape-l10n
pkgname=($(for lang in ${_langpacks[@]}
do echo $pkgbase-$lang | tr A-Z a-z
done))
_pkgver=2.7.11
pkgver=${_debver}.${_debrel}
pkgrel=1
pkgdesc="Language packs for Debian Iceape."
arch=('any')
url="http://packages.debian.org/source/sid/iceape"
license=('MPL')
depends=("iceape-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
replaces=(iceape-i18n-$(lowercase "${lang}"))
conflicts=(iceape-i18n-$(lowercase "${lang}"))
build() {
cd "${srcdir}"
for f in *.deb
do
bsdtar xf $f
bsdtar xf data.tar.gz
done
}
_path="/usr/lib/iceape/extensions"
for lang in ${_langpacks[@]}
do
eval "
package_iceape-l10n-$(echo $lang | tr A-Z a-z)() {
install -Dm644 \"\$srcdir$_path/langpack-$lang@iceape.mozilla.org.xpi\" \"\$pkgdir$_path/langpack-$lang@iceape.mozilla.org.xpi\"
}
"
done
md5sums=('fb27360aff6250e7d483803583a5cd78'
'236c7aacd7e6416a37aff95f7bfa6a80'
'f17d76128ab529415078cafe63b61d50'
'07a5c72158427db8c5a990be6eb2d036'
'fddbcf27d00f1f4d92fed197ace8dd1b'
'96eb3291200c44ffdc3ab1d1446f00b7'
'04dec3bee388ae66cd434342ab03074f'
'bdef8b38501e7d6805b5304ef2bf8425'
'90b5d0ab0ab2eb3b75e5f80cb6d289bb'
'97f940c39b84a90b0e16eaeca4fa7806'
'34644b44381ae1da46f2fa308fd1cf34'
'a6240664344798568276dd5dbdd27fb2'
'61aedef6a89b400584dde82b5e97ff0f'
'abe7a9172876b30c4677b1f4c2237fc9'
'60f3c543fbdb72cc12aef8f2369101ff'
'c002da281c0d0fa357f92edd2b8cd12c'
'c17ab30f25f05024879afdf85fa4c516'
'250a08a999d6d1d6086ffbd17d60fbb4'
'609ce8793ea0d5465da7195e4d956fef'
'060226599bac5bc8ddb64417ef1a0108'
'eaa827909690bfa8dfdc621164e23ca8'
'3fb66893b5ea3b959de48ef16fb26c74'
'6f2d77e767efa0b0d4cb56df9ccd0a2f')
|