From 415856bdd4f48ab4f2732996f0bae58595092bbe Mon Sep 17 00:00:00 2001 From: Parabola Date: Tue, 5 Apr 2011 14:26:38 +0000 Subject: Tue Apr 5 14:26:38 UTC 2011 --- community/gnubiff-gtk/PKGBUILD | 33 +++++++++++++++++++++++++++++++++ community/gnubiff-gtk/build.patch | 23 +++++++++++++++++++++++ 2 files changed, 56 insertions(+) create mode 100644 community/gnubiff-gtk/PKGBUILD create mode 100644 community/gnubiff-gtk/build.patch (limited to 'community/gnubiff-gtk') diff --git a/community/gnubiff-gtk/PKGBUILD b/community/gnubiff-gtk/PKGBUILD new file mode 100644 index 000000000..0b3032228 --- /dev/null +++ b/community/gnubiff-gtk/PKGBUILD @@ -0,0 +1,33 @@ +# $Id: PKGBUILD 14206 2010-04-02 08:59:16Z spupykin $ +# Maintainer: Sergej Pupykin +# Maintainer: Tom K +# Contributor: Todd Musall + +pkgname=gnubiff-gtk +pkgver=2.2.13 +pkgrel=2 +pkgdesc="Mail notification program that checks for mail and displays headers when new mail has arrived. GTK version." +arch=('i686' 'x86_64') +url="http://gnubiff.sourceforge.net/" +license=("GPL") +depends=('libglade' 'openssl' 'popt') +conflicts=(gnubiff) +source=(http://downloads.sourceforge.net/sourceforge/gnubiff/gnubiff-$pkgver.tar.gz \ + build.patch) +md5sums=('65423957eb027b94c9e661611c0e4271' + '96fde605eb69e300f6014546d4339beb') + +build() { + cd $startdir/src/gnubiff-$pkgver + + patch -p1 <../build.patch + + export LDFLAGS=-lX11 + + ./configure --prefix=/usr --disable-gnome --disable-fam --with-password --with-password-string + make || return 1 + make DESTDIR=$startdir/pkg install || return 1 + rm -rf $startdir/pkg/usr/lib + rm -rf $startdir/pkg/usr/share/gnome-2.0 + rm -rf ${pkgdir}/usr/share/info/dir +} diff --git a/community/gnubiff-gtk/build.patch b/community/gnubiff-gtk/build.patch new file mode 100644 index 000000000..523b0557e --- /dev/null +++ b/community/gnubiff-gtk/build.patch @@ -0,0 +1,23 @@ +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 ++#define EXIT_SUCCESS 0 ++#define EXIT_FAILURE 1 + + #include + #include +@@ -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; + } -- cgit v1.2.3-54-g00ecf