diff options
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..c6119f2e357a --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = imapfilter + pkgdesc = A mail filtering utility for processing IMAP mailboxes + pkgver = 2.5.5 + pkgrel = 1 + url = https://github.com/lefcha/imapfilter + arch = i686 + arch = x86_64 + license = MIT + depends = lua + depends = pcre + depends = openssl + optdepends = openssl: SSL/TLS encryption and CRAM-MD5 authentication + source = https://codeload.github.com/lefcha/imapfilter/tar.gz/v2.5.5 + md5sums = 719b7f606948699d5f057e3a62e6c666 + +pkgname = imapfilter + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9288eb93ef6d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Hyacinthe Cartiaux <hyacinthe.cartiaux@free.fr> +# Contributor: Mark Foxwell <fastfret79@archlinux.org.uk> +# Contributor: morwel <rt dot riedel at web dot de> +# Contributor: bct <bct at diffeq dot com> + +pkgname=imapfilter +pkgver=2.5.5 +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://codeload.github.com/lefcha/${pkgname}/tar.gz/v${pkgver}") +md5sums=('719b7f606948699d5f057e3a62e6c666') + +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" +} |