summaryrefslogtreecommitdiff
path: root/notmuch/Pkgfile
blob: 6d85e3550fdb9f33cbb60cf5be0d193615c2b3b9 (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.31.1
    8 release=1
    9 source=(https://notmuchmail.org/releases/$name-$version.tar.xz)
   10 
   11 build() {
   12   cd $name-$version
   13 
   14   # somehow, date seems to be borked, might be deleted again
   15   find . -type f -exec touch {} +
   16 
   17   ./configure --prefix=/usr \
   18     --sysconfdir=/etc \
   19     --includedir=/usr/include \
   20     --zshcompletiondir=/usr/share/zsh/site-functions
   21   make DESTDIR=$PKG LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
   22 
   23   pushd bindings/python
   24   /usr/bin/python3 setup.py build
   25   /usr/bin/python3 setup.py install --root=$PKG --optimize=1 --skip-build
   26   popd
   27 
   28   make -C vim DESTDIR=$PKG prefix=/usr/share/vim install
   29   install -Dm755 notmuch-shared $PKG/usr/bin/notmuch
   30 
   31   if [ -n "$(pkginfo -i | grep '^ruby ')" ]; then
   32     make ruby-bindings
   33     sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
   34     make -C bindings/ruby exec_prefix=$PKG/usr install
   35   fi
   36 
   37   [[ -n "$(pkginfo -i | grep '^mutt \|^neomutt ')" ]] && make -C contrib/notmuch-mutt ; install -Dm755 contrib/notmuch-mutt/notmuch-mutt $PKG/usr/bin/notmuch-mutt || true
   38 
   39   [[ -n "$(pkginfo -i | grep '^zsh ')" ]] && true || rm -fr $PKG/usr/share/zsh
   40 
   41   [[ -n "$(pkginfo -i | grep '^bash-completion ')" ]] && make DESTDIR=$PKG WITH_BASH=1 install-completion || true
   42 }

Generated by cgit