public
Created

PKGBUILD for imapfilter

  • Download Gist
PKGBUILD
Shell
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
# Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
 
pkgname=imapfilter
pkgver=2.5.3
pkgrel=1
pkgdesc="A mail filtering utility for processing IMAP mailboxes"
arch=('i686' 'x86_64')
url="https://github.com/lefcha/imapfilter"
license=('MIT')
depends=('lua' 'pcre' 'openssl')
optdepends=('openssl: SSL/TLS encryption and CRAM-MD5 authentication')
source=(https://github.com/downloads/lefcha/imapfilter/$pkgname-$pkgver.tar.gz)
md5sums=('f7ab4246e587f55f3a761a51b9a28417')
 
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"
 
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"
}

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.