Created
November 16, 2012 04:58
-
-
Save bct/4084247 to your computer and use it in GitHub Desktop.
PKGBUILD for imapfilter
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Mark Foxwell <[email protected]> | |
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