diff options
Diffstat (limited to 'community/libsieve/PKGBUILD')
-rw-r--r-- | community/libsieve/PKGBUILD | 33 |
1 files changed, 27 insertions, 6 deletions
diff --git a/community/libsieve/PKGBUILD b/community/libsieve/PKGBUILD index 3009255d1..f8ab98ef5 100644 --- a/community/libsieve/PKGBUILD +++ b/community/libsieve/PKGBUILD @@ -1,23 +1,28 @@ -# $Id: PKGBUILD 96634 2013-09-02 16:06:17Z spupykin $ +# $Id: PKGBUILD 96725 2013-09-03 13:55:48Z spupykin $ # Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> pkgname=libsieve pkgver=2.3.1 -pkgrel=2 +pkgrel=3 pkgdesc="sieve interpretator lib" arch=(i686 x86_64 'mips64el') url="http://libsieve.sourceforge.net/" license=('GPL') options=('!libtool') source=("https://github.com/downloads/sodabrew/libsieve/libsieve-$pkgver.tar.gz" - "glibc-regex.patch") + "glibc-regex.patch" + "crash-fix.patch") md5sums=('bb48eecf877cc7fdb2b0dfe757b48d7a' - '0d98d9e8f0583857616b2ba98f1833fa') + '0d98d9e8f0583857616b2ba98f1833fa' + '05ce47217ced05fd32a3ae41dc37f07e') prepare() { cd "$srcdir/$pkgname-$pkgver" rm -rf src/sv_regex + rm -f src/sv_parser/{addr,header,sieve}.{c,h} + rm -f src/sv_parser/{addr,header,sieve}-lex.{c,h} patch -p1 <$srcdir/glibc-regex.patch + patch -p1 <$srcdir/crash-fix.patch } build() { @@ -25,16 +30,32 @@ build() { aclocal automake autoconf +# export CFLAGS="-g -O2" +# export LDFLAGS="-g -O2" ./configure --prefix=/usr + (cd src/sv_parser && for i in `ls -1 *.l | sed 's|\.l||'`; do flex --header-file=$i.h -o $i.c $i.l; done) make } check() { cd "$srcdir/$pkgname-$pkgver/src/sv_test" + export LD_LIBRARY_PATH=$srcdir/libsieve-$pkgver/src/.libs:$LD_LIBRARY_PATH ls -1 script* | while read script; do ls -1 message* | while read msg; do - msg "checking $script $msg" - ./example $script $msg || true # upstream bugs? + if [ "$script" == "script22.sv" ]; then + # script22.sv: syntax errors check + msg "checking !$script $msg" + ./example $script $msg && false || true + else + if [ "$script" == "script23.sv" ]; then + # script23.sv: enotify looks unsupported or I don't know how to use it - skip it + msg "skipping $script $msg" + true + else + msg "checking $script $msg" + ./example $script $msg + fi + fi done done } |