summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 27fd6c8610ebccd866c93aeb9818713d4686b7f9 (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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
# Maintainer: André Silva <emulatorman@parabola.nu>
# Contributor: Márcio Silva <coadde@parabola.nu>

_langpacks=(ar ast be bg bn-BD br ca cs da de el en-GB en-US es-AR es-ES et eu fi fr fy-NL ga-IE gd gl he hr hu hy-AM id is it ja ko lt nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm ro ru si sk sl sq sr sv-SE ta-LK tr uk vi zh-CN zh-TW)

pkgbase=icedove-l10n
pkgname=(
  $(for lang in ${_langpacks[@]}; do
    echo $pkgbase-$lang | tr A-Z a-z
  done)
)
epoch=1
_pkgver=31.2.0
pkgver=31.2.0.deb1
pkgrel=1

pkgdesc="Language packs for Debian Icedove."
arch=('any')
_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$_pkgver/linux-i686/xpi
url="http://packages.debian.org/sid/icedove"
license=('MPL' 'GPL')
depends=("icedove>=$epoch:$pkgver")
makedepends=('unzip' 'zip')
source=('brand.dtd' 'brand.properties')
for lang in ${_langpacks[@]}; do
  source+=("icedove-l10n-$_pkgver-$lang.xpi::$_url/$lang.xpi")
done
noextract=(${source[@]##*/})

_path=usr/lib/icedove/extensions

prepare() {
  cd $srcdir
  for lang in ${_langpacks[@]}; do
    unzip -q icedove-l10n-$_pkgver-$lang.xpi -d $lang
    rm icedove-l10n-$_pkgver-$lang.xpi
    install -Dm644 $srcdir/brand.dtd $lang/chrome/$lang/locale/$lang/branding
    install -Dm644 $srcdir/brand.properties $lang/chrome/$lang/locale/$lang/branding
    sed -i -e 's/thunderbird/icedove/' $lang/install.rdf
    cd $lang
    zip -q -r langpack-$lang@icedove.mozilla.org.xpi .
    mv langpack-$lang@icedove.mozilla.org.xpi $srcdir
    cd ..
    rm -r $lang
  done
}

for lang in ${_langpacks[@]}; do
  eval "
    package_icedove-l10n-$(echo $lang | tr A-Z a-z)() {
      replaces=(thunderbird-i18n-$(echo $lang | tr A-Z a-z) icedove-i18n-$(echo $lang | tr A-Z a-z))
      conflicts=(thunderbird-i18n-$(echo $lang | tr A-Z a-z) icedove-i18n-$(echo $lang | tr A-Z a-z))
      provides=(thunderbird-i18n-$(echo $lang | tr A-Z a-z) icedove-i18n-$(echo $lang | tr A-Z a-z))
      install -Dm644 \"\$srcdir/langpack-$lang@icedove.mozilla.org.xpi\" \"\$pkgdir/$_path/langpack-$lang@icedove.mozilla.org.xpi\"
    }
  "
done

md5sums=('d5b2567a8cc8f64591f313a6efdaaffc'
         'f3719964e893c1002b7a923e8f95f923'
         'b5e3a5cfdedb6e4a7f5f9ea3072d211d'
         '66df04ba03303219d08f937cb06fe938'
         '3804681332783bdf3563d81d68a665ba'
         '5f96104ac35eacf28d4c57ff6bf98c14'
         '35a5fbfa596bf955b5003378ce0f2df3'
         '32ea877ad2292b63dffbf0fae8431683'
         '1b83051eaa3dab4aaa87d44647277319'
         '1e2128acc06d356980d68e449764dc67'
         '9bf5d4c1ec4ad263fc8541a7be27e207'
         '9adc822f0a67d40fe480c083cae6602e'
         '9e4905a8c323e0175f6a4f47e6dd5e1f'
         '51fc8abb81c7e37759a5d1908c0533e7'
         'c52fda3aaaf8d360c9c61b0036934d04'
         '7330154eebfc43b83a4b23b92d00894a'
         '2d16a2f626219e4c54db579da6e1e9eb'
         '6d419663f2da1fa7d6b8024092539981'
         '460f399e494c440c85cf4230aaa6254d'
         '724aee657af956d15a73a7722af10ff0'
         '9ad09ab2640ba1fd331a1374391c4a02'
         'fb2b6f5c32a9ce44750fde8a86a48671'
         '4fe9aef590b395d0cc8cae6c7dc558bc'
         '3b9cbc5b92264e90dd2f04cc03402679'
         'e13d90095e358c5909701b7aeef1497e'
         '252bfcc8763f3442c2daee65843a1cfc'
         '6715149e466256cfda9c18ac3ec6d202'
         'a45038c65477ea6f162bbffbfaa0c386'
         'cbc16e082b226528e1ce8ff931bc1abf'
         '23653450ee7aa589ed562ca179ee233f'
         'cf7d27b738aad88cf42eb6f140004184'
         'bd27b9d56a1484c7ba8882010c268e54'
         'b6cd3c1a783d4ef1da5789d2a6be2679'
         '679c8ba09e5dec963573464ecfe9ae98'
         '197b27196463f296d903ffb64a1e8c35'
         '1f07ce9f20ed9dbfc8f02135d7769750'
         '86ea9b404bbbf9450e1d48ffe4185add'
         '97904a6943047181652ab4b1fa3e304a'
         '64b9a6d012dfa00e4c22f782e5fbf924'
         '87ea13f53caf9cd518a5709dbe4a77b4'
         'b7f50b7825eac3181b39afaaed86597a'
         '7978f1089d96f8fca6f8b4e171dcebc9'
         '0406c8dbbac735a101cfc214fe562541'
         '2684786b5dc33005e741267f5d5c93ca'
         'a255cfb9ad520c750258cbe8ea52d853'
         'd94523d8d7a705b430af6384bbf739df'
         '59d47b1c2015890d69893af4609ecfec'
         '50c382d2ed81ae85403d967b034e590f'
         'cffc4ffc01f832d4d5258ce610b3aea6'
         'ee9b11818741185e0655826aa21cde28'
         'c42f5ba22f9ae4a926c078b6b4135ac2'
         '8cb2a37bb97238bac7414a7607e6a5e2'
         '50080dd3cec4e1750d94fb999c54bed1'
         '218438476b98b19f994ef9205c3bd3fa'
         'b779dacd0eeabba4f73c68c115d9846c'
         '393588c7c3b38b05a7b3343713c60e08'
         'a79161e42f2531306883e97277177750')