summaryrefslogtreecommitdiff
path: root/community/gnubiff/PKGBUILD
blob: 5dd567d8a556015b4b35a30aa0028da0810e5823 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# $Id: PKGBUILD 53951 2011-08-10 14:38:08Z 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.13
pkgrel=2
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=('libglade' 'gtk2' 'popt')
makedepends=('perlxml' 'intltool')
conflicts=(gnubiff-gtk)
source=(http://downloads.sourceforge.net/gnubiff/gnubiff-$pkgver.tar.gz)
md5sums=('65423957eb027b94c9e661611c0e4271')

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

  ./configure --prefix=/usr --with-password --with-password-string="65423957eb027b94c9e661611c0e4271" \
	--disable-fam --disable-gnome
  make
  make DESTDIR=$startdir/pkg install

  rm -rf ${pkgdir}/usr/share/info/dir
}