summaryrefslogtreecommitdiff
path: root/notmuch/Pkgfile
blob: 3707d586f089f7121485b08fba45ee47c6d0e3bb (plain)
    1 # Description: a fast, global-search and tag-based email system
    2 # URL: https://notmuchmail.org/
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: gmime3 talloc xapian-core
    5 # Optional: bash-completion mutt neomutt ruby zsh
    6 name=notmuch
    7 version=0.30
    8 release=1
    9 source=(https://notmuchmail.org/releases/$name-$version.tar.xz)
   10 
   11 build() {
   12   cd $name-$version
   13   ./configure --prefix=/usr \
   14     --sysconfdir=/etc \
   15     --includedir=/usr/include \
   16     --zshcompletiondir=/usr/share/zsh/site-functions
   17   make DESTDIR=$PKG LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
   18 
   19   pushd bindings/python
   20   python3 setup.py build
   21   python3 setup.py install --root=$PKG --optimize=1
   22   popd
   23 
   24   make -C vim DESTDIR=$PKG prefix=/usr/share/vim install
   25   install -Dm755 notmuch-shared $PKG/usr/bin/notmuch
   26 
   27   if [ -n "$(pkginfo -i | grep '^ruby ')" ]; then
   28     make ruby-bindings
   29     sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
   30     make -C bindings/ruby exec_prefix=$PKG/usr install
   31   fi
   32 
   33   [[ -n "$(pkginfo -i | grep '^mutt \|^neomutt ')" ]] && make -C contrib/notmuch-mutt ; install -Dm755 contrib/notmuch-mutt/notmuch-mutt $PKG/usr/bin/notmuch-mutt || true
   34 
   35   [[ -n "$(pkginfo -i | grep '^zsh ')" ]] && true || rm -fr $PKG/usr/share/zsh
   36 
   37   [[ -n "$(pkginfo -i | grep '^bash-completion ')" ]] && make DESTDIR=$PKG WITH_BASH=1 install-completion || true
   38 }

Generated by cgit