summaryrefslogtreecommitdiff
path: root/community-testing/gnubiff
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-08 04:18:44 +0000
committerroot <root@rshg047.dnsready.net>2011-04-08 04:18:44 +0000
commit59075f0265483f32e9ac4c67ba9e69cb019ba044 (patch)
treed0384b724b17b888dcd1cf06dce9bc25655d1ba1 /community-testing/gnubiff
parent3b216f42d91b33161572550f4556a9ba93d1cecb (diff)
Fri Apr 8 04:18:44 UTC 2011
Diffstat (limited to 'community-testing/gnubiff')
-rw-r--r--community-testing/gnubiff/PKGBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/community-testing/gnubiff/PKGBUILD b/community-testing/gnubiff/PKGBUILD
new file mode 100644
index 000000000..1d7ba29a7
--- /dev/null
+++ b/community-testing/gnubiff/PKGBUILD
@@ -0,0 +1,57 @@
+# $Id: PKGBUILD 44488 2011-04-07 20:25:15Z spupykin $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Maintainer: Tom K <tomk@runbox.com>
+# Contributor: Todd Musall <tmusall@gmail.com>
+
+pkgname=gnubiff
+pkgver=2.2.11
+pkgrel=5
+pkgdesc="Mail notification program that checks for mail and displays headers when new mail has arrived"
+arch=('i686' 'x86_64')
+url="http://gnubiff.sourceforge.net/"
+license=("GPL")
+depends=('gnome-panel')
+makedepends=('perlxml')
+conflicts=(gnubiff-gtk)
+source=(http://downloads.sourceforge.net/gnubiff/gnubiff-$pkgver.tar.gz)
+md5sums=('d9e899f25b1e83081ccd3ac97ee31b8b')
+
+build() {
+ [ "$GNOMEDIR" = "" ] && GNOMEDIR=/usr
+ cd $startdir/src/gnubiff-$pkgver
+
+ patch -p2 src/support.h <<EOF
+diff -wbBur gnubiff-2.2.10/src/support.h gnubiff-2.2.10.my/src/support.h
+--- gnubiff-2.2.10/src/support.h 2008-03-22 05:08:51.000000000 +0300
++++ gnubiff-2.2.10.my/src/support.h 2008-04-22 14:21:58.000000000 +0400
+@@ -35,6 +35,9 @@
+ #endif
+ #include "nls.h"
+
++#include <stdlib.h>
++#define EXIT_SUCCESS 0
++#define EXIT_FAILURE 1
+
+ #include <glib.h>
+ #include <sstream>
+@@ -131,6 +134,9 @@
+ if ((pos == end) && (last < num))
+ result << sep << num;
+
++ if ((pos == end) && (last != num))
++ result << sep << num;
++
+ // Save new number
+ inf_bound = last = num;
+ }
+EOF
+
+ export LDFLAGS="$LDFLAGS -lgnomeui-2"
+ export CFLAGS="$CFLAGS -I/usr/include/libgnomeui-2.0"
+ export CPPFLAGS="$CPPFLAGS -I/usr/include/libgnomeui-2.0"
+ ./configure --prefix=/usr --with-password --with-password-string --disable-fam
+ make
+ make DESTDIR=$startdir/pkg install
+
+ rm -rf ${pkgdir}/usr/share/info/dir
+}