From 5df3d0c2ab7f501c0206e618ffdfab0e3e2cffeb Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Sat, 5 Sep 2009 22:22:39 +0000 Subject: x11/claws-mail: new aport A GTK+ based e-mail client http://www.claws-mail.org --- x11/claws-mail/APKBUILD | 44 +++++++++++++++++++++++++++++++++++++++ x11/claws-mail/libc-version.patch | 22 ++++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 x11/claws-mail/APKBUILD create mode 100644 x11/claws-mail/libc-version.patch (limited to 'x11/claws-mail') diff --git a/x11/claws-mail/APKBUILD b/x11/claws-mail/APKBUILD new file mode 100644 index 0000000000..3ac6034284 --- /dev/null +++ b/x11/claws-mail/APKBUILD @@ -0,0 +1,44 @@ +# Maintainer: Natanael Copa +pkgname=claws-mail +pkgver=3.7.2 +pkgrel=0 +pkgdesc="A GTK+ based e-mail client." +url="http://www.claws-mail.org" +license="GPL3" +subpackages="$pkgname-dev $pkgname-doc" +makedepends="gtk+-dev gnutls-dev startup-notification-dev enchant-dev + libsm-dev db-dev curl-dev dbus-glib-dev libetpan-dev" +depends= +# gpgme-dev libetpan-dev +#pilot-link>=0.12.3-5 +install= #claws-mail.install +source="http://downloads.sourceforge.net/sourceforge/sylpheed-claws/$pkgname-$pkgver.tar.bz2 + libc-version.patch" + + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + patch -p1 -i ../libc-version.patch || return 1 + + ./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 \ + --disable-jpilot + make || return 1 + make DESTDIR="$pkgdir" install + cd tools + make + 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 +} +md5sums="df27c2488df499d8c05646d3e101d095 claws-mail-3.7.2.tar.bz2 +f3416743b5d8ff97b5a3cc2f7efc2dc1 libc-version.patch" diff --git a/x11/claws-mail/libc-version.patch b/x11/claws-mail/libc-version.patch new file mode 100644 index 0000000000..c55c007baf --- /dev/null +++ b/x11/claws-mail/libc-version.patch @@ -0,0 +1,22 @@ +--- a/src/crash.c.orig 2009-09-05 22:12:33.000000000 +0000 ++++ b/src/crash.c 2009-09-05 22:14:34.000000000 +0000 +@@ -42,7 +42,7 @@ + # include + #endif + +-#if defined(__GNU_LIBRARY__) ++#if defined(__GNU_LIBRARY__) && !defined(__UCLIBC__) + # include + #endif + +@@ -446,7 +446,9 @@ + */ + static const gchar *get_lib_version(void) + { +-#if defined(__GNU_LIBRARY__) ++#if defined(__UCLIBC__) ++ return g_strdup_printf("uClibc"); ++#elif defined(__GNU_LIBRARY__) + return g_strdup_printf("GNU libc %s", gnu_get_libc_version()); + #else + return g_strdup(_("Unknown")); -- cgit v1.2.3