summaryrefslogtreecommitdiff
path: root/libre/iceape-i18n/PKGBUILD
blob: d146e02dd5584b137f315fa918615c41de9c1734 (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.6
_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.6
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=('ee7f337bb32aee98a9f2be1936843106'
         '10102b3e8f81dbd91dacddb892ba68b9'
         'fef4de4746cc36bcf911fb0f7a7b2338'
         'd31e21bb4917155e159941400b86b9a8'
         '76e7c36cc0fd7e200c8b0d220d05f084'
         '804fbc692db4523e31fbe337c37cd958'
         '7bd3d6b9d4bdfcd5c53002ed695c3be9'
         'b875123775d4aa52b747e9ef897cee4c'
         'a5ecf997b5afa853fd46840f1e9cc01e'
         '352872240f6e1812fb27599f2d43ed5e'
         '7f680543cca22102660e39d775ea4f1f'
         '19c47a8901163e23fc937b2076812147'
         '7c1b1105b5a70008c12b3a5195c5a789'
         '3306f9408c61f622a185fd9e218199ef'
         '88f466e2bd3ec4236f76d92b22cc5e12'
         '8c655118c3cfc0063581f11f11f23817'
         '0d481cfdd69a591881e358f6a4d45e3e'
         '457aea13f02af3aa2bc690ab438e1f37'
         '9b72f83a7e1142ab8839fd2350437dfc'
         '7e640437184ff9874d50bba9ddd8b800'
         '2f00074f37b3785df5781a750e4a8293'
         '9b4295c47829adcc3832d2b9524c6a95'
         '1dea8892db29f13a37acdb02ba635f80')