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

_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-i18n
pkgname=($(for lang in ${_langpacks[@]}
        do echo $pkgbase-$lang | tr A-Z a-z
        done))
_pkgver=2.7.10
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

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-i18n-$(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=('6499aa420d5fa855a3884c657066c443'
         'c4b98806b5a6cce75878bdf0668f5a4a'
         'ac1a19ed29bda42f66e533ca9ee79fac'
         '6116bd1b7c51d9414c68e1807d264f35'
         '621dc719068050b479ad0fb9060d39e6'
         'b184194c4e69dc00ee9f3b15dee71d92'
         '84058513ab8884d0f279aa2990c10327'
         '5be7810ca391eb31d26f5ab46c2f8fea'
         '58737d11a2c0852d6701549d22f071b6'
         'ac5994cd318ca2692823f91908eee101'
         '5a07c756674b24b0b33af1e26a8e59ee'
         '9178d335fa9f998f157a2e7f27384b15'
         '2e40229a1ef5386574d98b243260f266'
         'ff8c27d6afc9911af03737c23a0eae5d'
         '611702c6dd5638154ff8a5c99e909da0'
         '217fd6fd1e46eefb524457566f124074'
         '09bb4d6d36403f97b923625055767884'
         'cebd80d880c87862d9a8baf97c3c5b7b'
         '023750f204d9f0ac89c62987b41532f4'
         '0d753213210d92a8f751b3221fe34dad'
         '4b180802effa63316c54e5ec904405c7'
         '8be48ada576dfd9a37e6b3c0bc55c298'
         'af08b7f96b175c560bba71ab59e1a3dc')