summaryrefslogtreecommitdiff
path: root/libre/icedove-l10n/PKGBUILD
blob: 13fd0b83f67097ceda5911d1626e28db4c2e8579 (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.8
pkgver=17.0.8.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>=$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'
         'ad61f2a7632c8ce1251d5952181398df'
         '3fd84e4b803bca0fedb737440a040e45'
         '4586a2dabddfcc16855edf6b8d69962a'
         'c584f31ae8b2c24da15666fc4fa3563b'
         '702f3257cf019843d74fbaadb99e2886'
         '6551ad7767aa87ee42e6d31ff9590648'
         'd1b275d962f96166e2a459f58b1709d6'
         'ca7a944cd07ee0c0d04a454a2516d49d'
         '76d452fada4e133f6dc3b3584c6fac08'
         '3b4b2cee9016abd15da1bcd6286dbc6c'
         '028c90f0c31ab3a7b071a718d08258bb'
         '12355d30501f1ac7a10831763bc1f354'
         '23b28003c65f5df1be2e8008c97edc15'
         'afc8052118c343e867718ef8561e831e'
         '65db2679e3a8c1868739da2e27783484'
         '1334e12708bf352a2be09d5795c95213'
         'f73ac3d0baedb8f525676118f51426f9'
         '4c31cb388ccaff76c95d5b46f49c4ecc'
         '2bd1d5f69bee27da325f8298f0d1e134'
         '6bdd8f7a3beee272d7cdfc24882d254b'
         'e6d1dc109c9a934277aaab7e696d389b'
         '70408d96a8bbd4aceccf1c56d05f15ce'
         'd8fbf504de160554a9bc1e4fe13492ce'
         '094d2815ab1668f1ebf8fcb3a764a4ec'
         'e6b14831bdc3ce639b390175ac04113b'
         'cf7743c55272ba14d6804a1121f9ab6b'
         '44be8dbc2d025afa4730bfa025fa7a42'
         'c4e95ec094792b880a1ddb8b9aff48aa'
         'b91510b33bc07ae10f97c223f652517f'
         '2f6364f530d8f57d104cb4f4e7b28409'
         '5375575fd2e6721505a9fc06b0247c49'
         '18ee8f5eaa26ec1f60e81541d5ebc6ca'
         'ba23f860392aefa18ff50bcdc450af52'
         '36573ca497ecd8ab8df6b1155546e698'
         '239622a8ed51b43791d34f4c09b3f6ec'
         '850cc70db0785d88afe03a4d9964ccd3'
         'ed3293f4b84e4984d67f44977fccccd5'
         '9604a4e8c42e605c04e77d204bad5664'
         '9d5a4a6f6a6b905bb509502972682a04'
         'ad9c38941f4a8ce055406c1bb5e7ef35'
         '25e04c4c5a1c0c0eff21e94f75a51f5b'
         'a369031e02f05a10b68d8ef032cb4105'
         '4657f4f697459aa51a09915dbc3270bb'
         '09817688b547c5a20bc8422ce1f7eab1'
         'd194d43d1dbf60c94028a5a718ba7e36'
         '0ebbfcf410b53596fc8fb99df51ed030'
         'cfa588e76644846f31fbc5360cfa89a1'
         '06141e939e5c53251c7af6d23935024d'
         'd07936ae70c5baa32ac5f4ecdb691c8e'
         'e5c0f2ebac114fdc2a0db275ea385858'
         'dac675a37e160aafb0e052ae561fe189'
         '5e112c628766e03cdae62f64d42020ca'
         '85d89ffd10bba250f4ce8acd39b3d6f8'
         'f068603a927801bc0c5386e61bcc8b4e'
         '2e6f3b969a175bbe2f88b266482f4c2e')