summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 58645651ddc6191b7d8bad0ed63201e9c3f916d5 (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
116
117
118
119
120
121
122
# Maintainer: Márcio Silva <coadde@lavabit.com>
# Maintainer: André Silva <emulatorman@parabola.nu>

pkgbase=icedove-l10n
epoch=1
_pkgver=24.0
pkgver=24.0.deb1

_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)

pkgname=($(for lang in ${_langpacks[@]}
        do echo $pkgbase-$lang | tr A-Z a-z
        done))

pkgrel=1
pkgdesc="Language packs for Debian Icedove."
arch=('any')
url="http://packages.debian.org/experimental/icedove"
license=('MPL' 'GPL')
depends=("icedove-libre>=$epoch:$pkgver")
makedepends=('unzip' 'zip')
_url=https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$_pkgver/linux-i686/xpi

source=('brand.dtd' 'brand.properties')
for lang in ${_langpacks[@]}
do
    source+=("icedove-l10n-$_pkgver-$lang.xpi::$_url/$lang.xpi")
done

# Don't extract anything
noextract=(${source[@]##*/})

_path="/usr/lib/icedove/extensions/"

build() {
  cd $srcdir

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

  cd $srcdir
}

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'
         '00e5745138bd36a6dda6996ca82bb458'
         '2681d2dd9cba526734ac85a07bd72dff'
         'cd10d510639d2b4c524cd3a8fed30845'
         'b5d4c6176cb3d9181bc4958a59955371'
         'ec714abc51563df68c0e767499eb131b'
         'b3958d9eb8ff1074524c913eea9d4531'
         '6cd59396e969a9fe0c9c4494b05e0d70'
         'a9cb42920b2dc0a07df802f9720e2976'
         'ca88f9d29b53c5249e04007b27e6b6f1'
         '7800c97656d7c969d7d99efaf5449547'
         '52c26e8e74d054a9b0e8b785d05a1219'
         'da4d4b0a905905a6befdacfc93ce11ec'
         '7a1b3a80c2451cf388b1f394843d4d6e'
         'c9e1bb783a81d0a2cebe1ddec3a29c2b'
         'f586ca445a5e9cdb0cd8e5da5e301f75'
         'cda87ee3de3712dd7d98a31205cd0d78'
         '97dfd7b9bdd3ffc451874a7c918747a8'
         '3cf977ccd8b1f4b5215c7bec4e795063'
         'ce4b74e192d97b37b29bf725884bab77'
         '0e131941c0cb0e7c2ecac70092c931a5'
         '2140ad226acf709cbdf0a8323c704d97'
         'e539e40b18fb35398e88eadda0751256'
         'f7e0ff5bc085fa947d56677732ad40df'
         'e031bcb2d0df57a79d39aa8555e918ba'
         '87f1310bff7b978a8015362dc95dfeba'
         '2d3e0e115d0b9b1cd061beeb7cfb1039'
         'da16f65cb7095bf7ab50334d5310b46b'
         'b0ef1e6b1289376c25dfad11fd3b5825'
         'b33c0fc1a1b6d6f1b61e33e16a68c3aa'
         '91d710244168d0c1c769435a60b64f3c'
         '8debe2067c3ffdd910cfa0ad99ed62dd'
         '7b639bf8009edb028538722812d29c1f'
         '6ab044113bb056df256112716c4d7bc6'
         '1f1cfc93ae9c04d6062d824fdf89ef0a'
         'c13d3d3653cbb530aafd82ea3a455b31'
         '4f0acf27aa26483e161ad74c0bde0a0d'
         '0b19f435b174941580e423586330af30'
         '2c377b2b3dcbe5869c2db0dda2de06ed'
         'a7a04da21888fd15b755529b5bf2e36f'
         '9309c021fc49d3a0aee8df25d41f525a'
         '297f79f74a807063de05ed34159d7524'
         '35d94ffaa43bd3dc451723b392b2bd2a'
         '6028467f08ef13bd6b6a1de7348e06d3'
         'b2903194003960ed7189ce6834abfb07'
         '3841804189ed1a6bbf1a4845b5fdf53f'
         '58245e37b544aa0dd0ce79e383a6aa23'
         '5ee4beab35fd0adb3b250fb80a9b82a8'
         '3d702ac32f8184038d38b2dbc7e7c886'
         '27c5580bd0f7d45362e367c8b1675190'
         'a70ab64d7bc529083bfe5ae4be9a4c0c'
         'd7ca7f6c776958b22f97f59d7e28c647'
         '4beb1c99e43c4ea2fea8d9d877bcfe06'
         '67098d273f37d70f59f04b8be7a96595'
         '69dd513b2ea4472b5b651faf278ba836'
         'a62005875fba96de365a1432e6616842')