1 # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
2 # Contributor: Thomas Zervogiannis <tzervo@gmail.com>
3 # Contributor: rich_o <rich_o@lavabit.com>
4 # Contributor: Alexander Baldeck <alexander@archlinux.org>
5 # Contributor: William Rea <sillywilly@gmail.com>
6 # Contributor: Baptiste Daroussin <baptiste.daroussin@gmail.com>
11 pkgdesc='A mail filtering utility'
12 url='https://github.com/lefcha/imapfilter'
13 arch=('i686' 'x86_64')
15 depends=('lua' 'pcre' 'openssl')
16 optdepends=('openssl: SSL/TLS encryption and CRAM-MD5 authentication')
17 source=(https://github.com/downloads/lefcha/${pkgname}/${pkgname}-${pkgver}.tar.gz)
18 md5sums=('912bb395d6c377018eaf7d74d2db6636')
21 cd ${srcdir}/${pkgname}-${pkgver}
22 # sometimes imapfilter doesn't compile with LDFLAG "--as-needed".
23 # in that case, uncomment next line.
24 # LDFLAGS="-Wl,--hash-style=gnu -Wl"
26 make DESTDIR=${pkgdir} \
27 MANDIR=/usr/share/man install
28 # install sample files
29 install -D -m644 $srcdir/$pkgname-$pkgver/samples/config.lua $pkgdir/usr/share/$pkgname/samples/config.lua
30 install -D -m644 $srcdir/$pkgname-$pkgver/samples/extend.lua $pkgdir/usr/share/$pkgname/samples/extend.lua
32 install -D -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE