summaryrefslogtreecommitdiff
path: root/libre/iceape-i18n/PKGBUILD
blob: 78ac80d828c68f9e72754ae8f85d8aa79622fb0d (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.9
_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.9
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=('9ac6e3351e0d3d32e351a359e4f91062'
         '9c2e0cbcd9759554d78fd050c2c30fa7'
         '0ebf63ad1eeb338bc87f1abd34bc59e4'
         '70c3e008980aad34875c62a8c4d1857a'
         '7811bc669dd7f2ba73331b3b65258d2b'
         'd50a27578ea43b9cc926e7cae5ef4b6f'
         '9afe72fe36fe5da2c1246d19e43e8158'
         '9a7b0c16665e4b7b6ea20267cb7dfeaf'
         'd79e0f519763edb4c9c88528241c49f4'
         '714f8c028b633e25be32c0c60f5d4ee9'
         'b84f5f9616b37c4f6b868255d214b029'
         '5725445a70d4e6e1f18438e6b164eaa0'
         '839ea776b1d21990bcaf67bfefbbdeeb'
         '14b20bf9388eb918ed094836306ea424'
         '0fcc5b00ad23e2fd823b6e32a4d5fa86'
         'd9ee55e4b53d182be6ecda64bac3686b'
         '44d6a193b3c3b6a95898a455ff8d092a'
         'ebe5a81f03658b44c301a15ba2a7c7e4'
         '8c4c87c2e944f850b7f6561c866bef0d'
         '8072fd0512358da3bd679afb0f7b5d68'
         '292b42caa14502f420bc400291af075d'
         'cbe874781488f0b95f4a84bb33b3e4c2'
         'faabe8d25b70381d6620716450203cdf')