PKGBUILDs/extra/claws-mail/PKGBUILD

65 lines
2 KiB
Bash
Raw Normal View History

2012-10-14 16:20:06 +00:00
# $Id: PKGBUILD 168547 2012-10-13 11:00:14Z andyrtr $
2011-03-29 01:21:11 +00:00
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
2011-12-09 15:53:24 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-03-29 01:21:11 +00:00
# - removed valgrind from makedepends
pkgname=claws-mail
2012-06-28 12:51:42 +00:00
pkgver=3.8.1
2012-10-14 16:20:06 +00:00
pkgrel=3
2011-03-29 01:21:11 +00:00
pkgdesc="A GTK+ based e-mail client."
arch=('i686' 'x86_64')
license=('GPL3')
url="http://www.claws-mail.org"
2011-04-12 00:51:45 +00:00
depends=('gtk2' 'gnutls' 'startup-notification' 'pilot-link' 'enchant'
2012-10-12 12:35:10 +00:00
'gpgme' 'libetpan>=1.1' 'libsm' 'db' 'dbus-glib' 'hicolor-icon-theme' 'desktop-file-utils')
2011-03-29 01:21:11 +00:00
makedepends=('compface' 'spamassassin' 'bogofilter')
optdepends=('python2: needed for some tools'
'perl: needed for some tools'
'spamassassin: adds support for spamfiltering'
2011-08-29 20:44:49 +00:00
'bogofilter: adds support for spamfiltering')
2011-03-29 01:21:11 +00:00
replaces=('sylpheed-claws')
provides=('claws')
options=(!libtool)
install=claws-mail.install
2012-10-14 16:20:06 +00:00
source=(http://downloads.sourceforge.net/sourceforge/sylpheed-claws/${pkgname}-${pkgver}.tar.bz2
gnutls313.diff)
md5sums=('d388929fb1c8f04d4bcb2139faaf9e70'
'21bdc9d324f9424e0071bb73be169977')
2011-03-29 01:21:11 +00:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
2012-10-14 16:20:06 +00:00
# fix a bug in gnutls cert check triggered since gnutls 3.1.3 update
patch -Np1 -i ${srcdir}/gnutls313.diff
2011-03-29 01:21:11 +00:00
sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py
2011-05-26 12:49:16 +00:00
2011-03-29 01:21:11 +00:00
./configure --prefix=/usr --disable-static \
--enable-enchant \
--enable-gnutls \
--enable-ldap \
--disable-dillo-viewer-plugin \
--enable-crash-dialog \
--enable-pgpmime-plugin \
--enable-spamassassin-plugin \
--enable-bogofilter-plugin \
--enable-jpilot
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# build and install extra tools
cd tools
make
# all executables and .conf files ; only top directory
find -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
}