2019-11-02 23:09:00 +01:00
|
|
|
# Description: a fast, global-search and tag-based email system
|
|
|
|
# URL: https://notmuchmail.org/
|
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
|
|
# Depends on: gmime3 talloc xapian-core
|
|
|
|
# Optional: bash-completion mutt neomutt ruby zsh
|
2020-11-10 09:03:54 +01:00
|
|
|
|
2019-11-02 23:09:00 +01:00
|
|
|
name=notmuch
|
2021-09-05 12:15:30 +02:00
|
|
|
version=0.33
|
2019-11-28 09:19:13 +01:00
|
|
|
release=1
|
2019-11-02 23:09:00 +01:00
|
|
|
source=(https://notmuchmail.org/releases/$name-$version.tar.xz)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2020-11-08 14:58:35 +01:00
|
|
|
|
2019-11-02 23:09:00 +01:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--includedir=/usr/include \
|
|
|
|
--zshcompletiondir=/usr/share/zsh/site-functions
|
|
|
|
make DESTDIR=$PKG LIBDIR_IN_LDCONFIG=0 WITH_EMACS=0 install
|
|
|
|
|
|
|
|
pushd bindings/python
|
2020-11-03 21:13:41 +01:00
|
|
|
/usr/bin/python3 setup.py build
|
|
|
|
/usr/bin/python3 setup.py install --root=$PKG --optimize=1 --skip-build
|
2019-11-02 23:09:00 +01:00
|
|
|
popd
|
|
|
|
|
|
|
|
make -C vim DESTDIR=$PKG prefix=/usr/share/vim install
|
|
|
|
install -Dm755 notmuch-shared $PKG/usr/bin/notmuch
|
|
|
|
|
|
|
|
if [ -n "$(pkginfo -i | grep '^ruby ')" ]; then
|
|
|
|
make ruby-bindings
|
|
|
|
sed -i 's:INSTALL = .*[^D]$:& -D:' bindings/ruby/Makefile
|
|
|
|
make -C bindings/ruby exec_prefix=$PKG/usr install
|
|
|
|
fi
|
|
|
|
|
|
|
|
[[ -n "$(pkginfo -i | grep '^mutt \|^neomutt ')" ]] && make -C contrib/notmuch-mutt ; install -Dm755 contrib/notmuch-mutt/notmuch-mutt $PKG/usr/bin/notmuch-mutt || true
|
|
|
|
|
|
|
|
[[ -n "$(pkginfo -i | grep '^zsh ')" ]] && true || rm -fr $PKG/usr/share/zsh
|
|
|
|
|
2019-11-28 09:19:13 +01:00
|
|
|
[[ -n "$(pkginfo -i | grep '^bash-completion ')" ]] && make DESTDIR=$PKG WITH_BASH=1 install-completion || true
|
2019-11-02 23:09:00 +01:00
|
|
|
}
|