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>

pkgdesc="Notmuch is not much of an email program"
arch=(i686 x86_64 mips64el)
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)


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

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


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

  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
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.