Centurion / Build / notmuch / PKGBUILD

# Maintainer: fauno <fauno at kiwwwi.com.ar>
# Maintainer: Olivier Ramonat <olivier at ramonat dot fr>
# Maintainer: Richard Murri <admin@richardmurri.com>

pkgname=notmuch
pkgver=0.14
pkgrel=2
pkgdesc="Notmuch is not much of an email program"
arch=(i686 x86_64 mips64el)
url="http://notmuchmail.org/"
license=('GPL3')
depends=('xapian-core' 'gmime' 'talloc')
makedepends=('gnupg' 'pkgconfig')
optdepends=('emacs: for using the emacs interface'
            'vim: for using the vim interface'
            'python2: for using the python bindings'
            'ruby: for using the ruby bindings'
            'gnupg: for email encryption')
options=(!distcc !makeflags)

source=("http://notmuchmail.org/releases/${pkgname}-${pkgver}.tar.gz")

build() {
  cd "$srcdir/${pkgname}-"*

  ./configure --prefix=/usr --sysconfdir=/etc
  make 

}

check() {
  cd "$srcdir/${pkgname}-"*
  make test
}

package(){
  cd "$srcdir/${pkgname}-"*
  make DESTDIR="$pkgdir/" LIBDIR_IN_LDCONFIG=0 install

  install -D notmuch $pkgdir/usr/sbin/notmuch
  install -D contrib/notmuch-mutt/notmuch-mutt $pkgdir/usr/bin/

  mkdir -p $pkgdir/usr/share/vim/vimfiles/{plugin,syntax}

  cd vim && make PREFIX="$pkgdir/usr/share/vim/vimfiles" install

# Remove conflicting zsh completion
  rm -r ${pkgdir}/usr/share/zsh
}
md5sums=('5eb3f225d3eb37862932f6baa5780d15')
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.