# $Id: PKGBUILD 82 2009-07-17 19:56:55Z aaron $ # Maintainer: Sergej Pupykin # Maintainer: Tom K # Contributor: Todd Musall pkgname=gnubiff pkgver=2.2.11 pkgrel=3 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 < +#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; } EOF LDFLAGS="-lgnomeui-2" CFLAGS="-I/usr/include/libgnomeui-2.0" CPPFLAGS="-I/usr/include/libgnomeui-2.0" ./configure --prefix=/usr --with-password --with-password-string --disable-fam make || return 1 make DESTDIR=$startdir/pkg install || return 1 rm -rf ${pkgdir}/usr/share/info/dir }