Skip to content

Instantly share code, notes, and snippets.

@bct
Created November 16, 2012 04:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bct/4084247 to your computer and use it in GitHub Desktop.
Save bct/4084247 to your computer and use it in GitHub Desktop.
PKGBUILD for imapfilter
# 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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment