# Maintainer: Hyacinthe Cartiaux # Contributor: Mark Foxwell # Contributor: morwel # Contributor: bct pkgname=imapfilter pkgver=2.6.11 pkgrel=1 pkgdesc="A mail filtering utility for processing IMAP mailboxes" arch=('i686' 'x86_64' 'armv6h' 'armv7h') url="https://github.com/lefcha/imapfilter" license=('MIT') depends=('lua' 'pcre' 'openssl') optdepends=('openssl: SSL/TLS encryption and CRAM-MD5 authentication') source=("https://codeload.github.com/lefcha/${pkgname}/tar.gz/v${pkgver}") sha256sums=('baea9596ed251910b176a2bdcd46d78ab68f6aa4e066f70ca0d6153e32df54fb') build() { cd "$srcdir/$pkgname-$pkgver" # sometimes imapfilter doesn't compile with LDFLAG "--as-needed". # in that case, uncomment next line. # LDFLAGS="-Wl,--hash-style=gnu -Wl" sed -i "s/MYCFLAGS =/MYCFLAGS=${CFLAGS}/" src/Makefile sed -i "s/MYLDFLAGS =/MYLDFLAGS=${LDFLAGS}/" src/Makefile make PREFIX=/usr all } package() { cd "$srcdir/$pkgname-$pkgver" make PREFIX=/usr DESTDIR="$pkgdir/" MANDIR=/usr/share/man install # install sample files install -D -m644 samples/config.lua $pkgdir/usr/share/$pkgname/samples/config.lua install -D -m644 samples/extend.lua $pkgdir/usr/share/$pkgname/samples/extend.lua # install license install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }