Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

imapfilter PKGBUILD

By: a guest on Jul 26th, 2012  |  syntax: Bash  |  size: 1.23 KB  |  views: 33  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # Maintainer: Mark Foxwell <fastfret79@archlinux.org.uk>
  2.  
  3. pkgname=imapfilter
  4. pkgver=2.5.2
  5. pkgrel=1
  6. pkgdesc='A mail filtering utility'
  7. url='https://github.com/lefcha/imapfilter'
  8. arch=('i686' 'x86_64')
  9. license=('MIT')
  10. depends=('lua' 'pcre' 'openssl')
  11. optdepends=('openssl: SSL/TLS encryption and CRAM-MD5 authentication')
  12. source=(https://github.com/downloads/lefcha/${pkgname}/${pkgname}-${pkgver}.tar.gz)
  13. md5sums=('a22db55b57893cb53305a5d835ee7bd6')
  14.  
  15. build() {
  16.         cd ${srcdir}/${pkgname}-${pkgver}
  17.  
  18.         # sometimes imapfilter doesn't compile with LDFLAG "--as-needed".
  19.         # in that case, uncomment next line.
  20.         # LDFLAGS="-Wl,--hash-style=gnu -Wl"
  21.  
  22.         sed -i "s/usr\/local/usr/" src/Makefile
  23.  
  24.         make all
  25. }
  26.  
  27. package() {
  28.  
  29.         cd ${srcdir}/${pkgname}-${pkgver}
  30.  
  31.         make BINDIR=${pkgdir}/usr/bin \
  32.                 SHAREDIR=${pkgdir}/usr/share/imapfilter \
  33.                 MANDIR=${pkgdir}/usr/share/man install
  34.  
  35.         # install sample files
  36.         install -D -m644 $srcdir/$pkgname-$pkgver/samples/config.lua $pkgdir/usr/share/$pkgname/samples/config.lua
  37.         install -D -m644 $srcdir/$pkgname-$pkgver/samples/extend.lua $pkgdir/usr/share/$pkgname/samples/extend.lua
  38.         # install license
  39.         install -D -m644 $srcdir/$pkgname-$pkgver/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
  40. }