updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / imapfilter / PKGBUILD
blobf10af72dc7d15d1effb05d68ee0c2bc9260706e4
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>
8 pkgname=imapfilter
9 pkgver=2.3
10 pkgrel=1
11 pkgdesc='A mail filtering utility'
12 url='https://github.com/lefcha/imapfilter'
13 arch=('i686' 'x86_64')
14 license=('MIT')
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')
20 build() {
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"
25   make all
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
31   # install license
32   install -D -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE