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