blob: 81a50dd6c31e3ae14b57f86c45f1cd3526390706 (
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
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=claws-mail
pkgver=3.8.1
pkgrel=3
pkgdesc="A GTK+ based e-mail client."
url="http://www.claws-mail.org"
arch="all"
license="GPL3"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang
$pkgname-plugins-spamassassin:spamassassin
$pkgname-plugins-pgp:pgp
$pkgname-plugins-smime:smime
"
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"
depends=
install=
source="http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.bz2
libc-version.patch
gnutls313.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"
./configure --prefix=/usr \
--disable-static \
--enable-enchant \
--enable-gnutls \
--enable-ldap \
--disable-dillo-viewer-plugin \
--disable-crash-dialog \
--enable-pgpmime-plugin \
--enable-spamassassin-plugin \
--disable-bogofilter-plugin \
--enable-trayicon-plugin \
--enable-compface \
--disable-jpilot \
|| 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
}
pgp() {
pkgdesc="PGP plugin for signing and encrypting with Claws Mail"
depends="pinentry-gtk"
mkdir -p "$subpkgdir"/usr/lib/claws-mail/plugins
mv "$pkgdir"/usr/lib/claws-mail/plugins/pgp* \
"$subpkgdir"/usr/lib/claws-mail/plugins/
}
spamassassin() {
pkgdesc="Spamassassin plugin for Claws Mail"
depends="spamassassin"
mkdir -p "$subpkgdir"/usr/lib/claws-mail/plugins
mv "$pkgdir"/usr/lib/claws-mail/plugins/spamass* \
"$subpkgdir"/usr/lib/claws-mail/plugins/
}
smime() {
pkgdesc="S/MIME support for Claws Mail"
mkdir -p "$subpkgdir"/usr/lib/claws-mail/plugins
mv "$pkgdir"/usr/lib/claws-mail/plugins/smime* \
"$subpkgdir"/usr/lib/claws-mail/plugins/
}
md5sums="d388929fb1c8f04d4bcb2139faaf9e70 claws-mail-3.8.1.tar.bz2
f3416743b5d8ff97b5a3cc2f7efc2dc1 libc-version.patch
21bdc9d324f9424e0071bb73be169977 gnutls313.patch"
|