summaryrefslogtreecommitdiff
path: root/libre/iceape-i18n/PKGBUILD
blob: 7bfca020f90c3918855decc5d66efbea862f7c52 (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.5
_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.5
pkgver=${_debver}.${_debrel}
pkgrel=2

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=('03a75ce1325fc748d0943cd39659e8ca'
         '9fc2070dc6db8d94f322cb5e27523ea4'
         '6cb55fe51fca1de674ca32b10edc7c8b'
         '138121b288c269aa418ca0c33eb65326'
         '8fd47eed7c79fe29c74a81d9b4a4864a'
         '71f6007df53b17361965f38c01869738'
         'f253842c0a377e86c6c62f7db27db32d'
         'b93caebe5ceb08d2cde78fe40fff3c0c'
         'a36d0776b736609b1e72b8530cc9e755'
         '9acd2d8e4fd39700aa99a21681403a72'
         '60703c83180e8bb3abdcfbf26bf1289d'
         'dc708663d015830fb11e800f48d7492c'
         '313e6a88a602e09b5f08d6ff8ccdc89a'
         '31debae1dca6035695805d0de55c71f3'
         '1f927d23eb1db49db3ffe2d3ee5e3da5'
         '4b5e52235ce8a52d1144d5f6e45a069c'
         '81d1a28544f9a6e92eafc48e57a45a35'
         'bb32f5938b885d2de225e4d8e2471d28'
         '69d447db48244cc1546d0ce3447e8ab8'
         '16d36a140dfbd9a001b28f4fcbc81df8'
         '211bb03760a2eacf685f27f03e71da4d'
         '83225015ad8f023ff0d9f9643c295e4c'
         '67d3ec1632a4ed2aaf8e7a5df0284b1e')