blob: 52c8614c3766b686fbed22a094537e9b81a4f240 (
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
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=claws-mail
pkgver=3.11.1
pkgrel=2
pkgdesc="A GTK+ based e-mail client."
url="http://www.claws-mail.org"
arch="all"
license="GPL3"
subpackages="$pkgname-dbg $pkgname-dev $pkgname-doc $pkgname-lang
$pkgname-plugins-acpi-notifier:_acpi
$pkgname-plugins-address-keeper:_address_keeper
$pkgname-plugins-archive:_archive
$pkgname-plugins-att-remove:_att_remover
$pkgname-plugins-attatchwarner:_attatchwarner
$pkgname-plugins-clamd:_clamd
$pkgname-plugins-fancy:_fancy
$pkgname-plugins-fetchinfo:_fetchinfo
$pkgname-plugins-mailmbox:_mailmbox
$pkgname-plugins-notification:_notification
$pkgname-plugins-pdf-viewer:_pdf
$pkgname-plugins-perl:_perl
$pkgname-plugins-pgp:_pgp
$pkgname-plugins-python:_python
$pkgname-plugins-rssyl:_rssyl
$pkgname-plugins-smime:_smime
$pkgname-plugins-spamassassin:_spamassassin
$pkgname-plugins-spamreport:_spamreport
$pkgname-plugins-tnef:_tnef
$pkgname-plugins-vcalendar:_vcalendar
"
makedepends="gtk+-dev openssl-dev startup-notification-dev enchant-dev
libgcrypt-dev libsm-dev gnutls-dev curl-dev dbus-glib-dev
libetpan-dev openldap-dev gpgme-dev libsoup-dev perl-dev
poppler-dev python-dev py-gtk-dev libarchive-dev libnotify-dev
pinentry-gtk spamassassin webkitgtk-dev
"
depends="aspell-en"
install=
source="http://downloads.sourceforge.net/project/claws-mail/Claws%20Mail/$pkgver/claws-mail-$pkgver.tar.xz
claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
prepare() {
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1 ;;
esac
done
}
build() {
cd "$_builddir"
DATADIRNAME=share ./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--disable-static \
--enable-enchant \
--enable-gnutls \
--enable-ldap \
--disable-crash-dialog \
--enable-pgpmime-plugin \
--enable-spamassassin-plugin \
--disable-bogofilter-plugin \
--enable-compface \
--enable-fancy \
--enable-pdf_viewer-plugin \
--disable-jpilot \
--disable-bsfilter-plugin \
--disable-newmail-plugin \
|| return 1
# force disabling of backtrace. the core dump was more useful
sed -i -e '/HAVE_BACKTRACE/d' config.h
make || return 1
cd tools
make
}
package() {
cd "$_builddir"
make DESTDIR="$pkgdir" install || return 1
rm "$pkgdir"/usr/lib/claws-mail/plugins/*.la
find tools -maxdepth 1 -type f -and -perm 111 -or -name '*.conf' | while read i; do
install -D -m755 ${i} "$pkgdir"/usr/lib/claws-mail/tools/${i}
done
}
_plugin() {
pkdesc="$1"
depends="claws-mail=$pkgver-r$pkgrel $2"
local _i=
shift 2
mkdir -p "$subpkgdir"/usr/lib/claws-mail/plugins
for _i; do
mv "$pkgdir"/usr/lib/claws-mail/plugins/${_i}* \
"$subpkgdir"/usr/lib/claws-mail/plugins/ || return 1
done
}
_acpi() {
_plugin "ACPI notification plugin for Claws Mail" "" acpi_notifier
}
_address_keeper() {
_plugin "Never forget a typed address in Claws Mail" "" address_keeper
}
_archive() {
_plugin "Archiving features for Claws Mail" "" archive
}
_att_remover() {
_plugin "Attachments remover plugin for Claws Mail" "" att_remover
}
_attatchwarner() {
_plugin "Attachments warner plugin for Claws Mail" "" attachwarner
}
_clamd() {
_plugin "Use Clam AntiVirus to scan messages in Claws Mail" "" clamd
}
_fancy() {
_plugin "Display HTML emails in Claws Mail" "" \
fancy
}
_fetchinfo() {
_plugin "Modify headers of downloaded messages in Claws Mail" "" \
fetchinfo
}
_mailmbox() {
_plugin "Add support for mailboxes in mbox format to Claws Mail" "" \
mailmbox
}
_notification() {
_plugin "Various ways to notify about new messages in Claws Mail" "" \
notification
}
_pdf() {
_plugin "PDF and ghostscript viewer plugin Claws Mail" "" pdf
}
_perl() {
_plugin "Perl based extended filtering engine for Claws Mail" "" perl
}
_pgp() {
_plugin "PGP plugin for signing and encrypting with Claws Mail" \
"pinentry-gtk" pgp
}
_python() {
_plugin "Python plugin for Claws Mail" "" python
}
_rssyl() {
_plugin "RSS plugin for Claws Mail" "" rssyl
}
_smime() {
_plugin "S/MIME support for Claws Mail" "claws-mail-plugins-pgp" smime
}
_spamassassin() {
_plugin "Spamassassin plugin for Claws Mail" "spamassassin" spamass
}
_spamreport() {
_plugin "Report spam mail to various places with Claws Mail" "" \
spamreport
}
_tnef() {
_plugin "TNEF message parsing for Claws Mail" "" tnef_parse
}
_vcalendar () {
_plugin "Handling of vCalendar messages in Claws Mail" "" vcalendar
}
md5sums="4cbf9b53c4cf691e093bd98efc0dbb63 claws-mail-3.11.1.tar.xz
02c242490c4b99dd5387332566ffe3bc claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch"
sha256sums="d72381b6c9f872638cae2c208925e19bd5d4a9476bb9049742f1ba27c3efd133 claws-mail-3.11.1.tar.xz
8ab7a747ab483363bb49fb0e42094e8513f5ac9575d71a6841898b073f89f3b9 claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch"
sha512sums="ae4f0d4299647e201e94111a6eb26cce1d6a72045c317b879a07847cfcc75c35dfdf571f2826d365800586f5798131ce95985f746f7dbdd878f3766370ab3570 claws-mail-3.11.1.tar.xz
67add41b754cb3b0d08928b5c4cdea26bd271b2dd4303f22d641432f1d580308aadf5b7ae436c2451ed6649bcfec66f3f6dbc69e4655ac09aecc7ba43da054da claws.git-72510f27b10889e119b42804835e8beaf70bc18d.patch"
|