summaryrefslogtreecommitdiff
path: root/libre/claws-mail-libre/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'libre/claws-mail-libre/PKGBUILD')
-rw-r--r--libre/claws-mail-libre/PKGBUILD96
1 files changed, 96 insertions, 0 deletions
diff --git a/libre/claws-mail-libre/PKGBUILD b/libre/claws-mail-libre/PKGBUILD
new file mode 100644
index 000000000..38533f59b
--- /dev/null
+++ b/libre/claws-mail-libre/PKGBUILD
@@ -0,0 +1,96 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr@archlinux.org>
+# Maintainer (Parabola): Márcio Silva <coadde@lavabit.com>
+
+pkgbase=claws-mail
+pkgname=claws-mail-libre
+pkgflag=-libre
+pkgver=3.9.0
+pkgrel=1
+pkgdesc='A GTK+ based e-mail client, without nonfree PalmOS handheld devices support'
+arch=(
+ i686
+ x86_64
+ mips64el
+)
+license=GPL3
+url="http://www.$pkgbase.org"
+depends=(
+ db
+ dbus-glib
+ desktop-file-utils
+ enchant
+ gnutls
+ gpgme
+ gtk2
+ hicolor-icon-theme
+ 'libetpan>=1.1'
+ libsm
+ startup-notification
+)
+makedepends=(
+ bogofilter
+ compface
+ spamassassin
+ valgrind
+)
+optdepends=(
+ 'python2: needed for some tools'
+ 'perl: needed for some tools'
+ 'spamassassin: adds support for spamfiltering'
+ 'bogofilter: adds support for spamfiltering'
+)
+provides=(
+ claws
+ $pkgbase
+)
+conflicts=(
+ $pkgbase
+)
+replaces=(
+ $pkgbase
+ sylpheed-claws
+)
+options=(
+ '!libtool'
+)
+install=$pkgbase.install
+source=(
+ http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgbase-$pkgver.tar.bz2
+)
+md5sums=(
+ 4c5ac7b21f0ed17d0f6404124c2229a4
+)
+
+build() {
+ cd $srcdir/$pkgbase-$pkgver
+
+ sed -i 's@^#!.*python.*@#!/usr/bin/python2@' tools/*.py
+
+ setarch $CARCH ./configure --prefix=/usr\
+ --disable-dillo-viewer-plugin\
+ --disable-static\
+ --enable-bogofilter-plugin\
+ --enable-crash-dialog\
+ --enable-enchant\
+ --enable-gnutls\
+ --enable-jpilot\
+ --enable-ldap\
+ --enable-pgpmime-plugin\
+ --enable-spamassassin-plugin
+
+ setarch $CARCH make
+}
+
+package() {
+ cd $srcdir/$pkgbase-$pkgver
+ setarch $CARCH make DESTDIR=$pkgdir install
+
+ # build and install extra tools
+ cd tools
+ setarch $CARCH 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/$pkgbase/tools/$i
+ done
+}