summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: f48b109565cd0a0f1aa9d09da3e83a5e55993b0d (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@lavabit.com>

pkgbase=icedove-l10n
epoch=1
_pkgver=17.0.9esr
pkgver=17.0.9.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/sid/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'
         'cc32b8aa30e0e54fcea11b76a9a030f4'
         'a18431241d61f6f517c1b8c3d8ce884f'
         '28b6143d9dea47b9bd89453fea455457'
         'e1139e6b943a02af2be130f66db99390'
         '6c446ab3cfc39b1b177f0b7c4558ffd6'
         'f6a88413d68fff4451fb675586539705'
         '8e77e2d1236ee08c690edd6617bc61ec'
         '7a5748c07c863745540e4dc48773bdfe'
         'fabe0a051dfedeee5b7301ae1f886aa2'
         '171068c63cb0819a5c8769d92a713c6e'
         '64d5d905bba39a9c857e16e2deed8d92'
         '41a11fedd4f0721c7dfa7b4f294c4578'
         '8a23d4d6616428292c9edf432e747543'
         '41aa0520d62b7f257938bae83a3fc72b'
         '2b1f30b215838a256a15eb87f93825a8'
         '1c125ec400fa3d9de88cf6a775f5deae'
         'd85151b34d12e265f3df28dfbc78dd1b'
         '0ab58f3f0ee604e1af3dc5c16b0c2ea0'
         'e7a3d71e609efcefe71c57b7890fb37c'
         '166efd822691c91a722d53e8e9c6d7a8'
         'f7837a358208e6720f18e9858478915a'
         '58b38fd78be414cf4d10c2ac6dfd128c'
         'aceb524b1e843668405b762ee7258756'
         '2dfc7c8760aa197efe662a389614e284'
         '5886ef068a1b73bfd7d8c3c2628d8674'
         'ab535a80c409fd0b4b732fdb79f525ad'
         '12dd37921eedcd2c9e5a4484315bed6d'
         '0766135b41053a1b168b8a5d2b865025'
         'fb61057edad48f619a4943d7033ea4ac'
         'e7eb605e77a7dcf2093c78fee22432a8'
         'ac3455b559e3be6bba9b801e54fba4a6'
         '1ab817dd1e0b2a20c7b95b3821626e4b'
         '239a2ce9ada5bee297a3abc5d382fbc0'
         '5159ca357d344d48e4a1ed7f5d0c6148'
         'b260be89e9ae689a2285995541055f06'
         'fe3a462afcb4a9e0a4228f0f5a894790'
         'e775993988b93497c062c0e0b5cf8c5e'
         '67fec92b3bdaa8267467e96cde7145e1'
         '36d0044c7e1808bc80fb7aa27c37f540'
         'fcea0c7480719cf77b7d38a23114ac25'
         '205bd5873fcb142b3c3828a8a6bbe4f9'
         'e82f9a3ef19ec74d235c71d4162bef28'
         'e38119f6bfc43aec4016120c970fa1eb'
         '9e89b3c89bc8f6e4dd1c80e25591b634'
         'af4688e2617a18410165da9474de7fdc'
         '09f10be4a94a6eb9f91aa9be6fd65a65'
         '864fe0fae10e437dd764454f87ad0cc1'
         'b2e7cbfa68bcb2e7eac21e18d87a3d93'
         '171a1064054f4fd185ce896738d50cbc'
         '2f34b234825e28993eb244862cef607b'
         'ad7814da5ccddfbba70fc9389b7b1368'
         '41513e2cef7b5a311e8f3de988f2594b'
         'a929204d41eba4631b97892f4a915591'
         '6a36f76040d930fa8a448c1d7b6c7c22'
         'be9c55a9994069fa8ebac022201cdaf3')