3 export DEB_BUILD_MAINT_OPTIONS = hardening=+all
6 dh $@ --with python3,elpa
8 override_dh_auto_configure:
9 BASHCMD=/bin/bash ./configure --prefix=/usr \
10 --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \
11 --includedir=/usr/include \
12 --mandir=/usr/share/man \
13 --infodir=/usr/share/info \
15 --zshcompletiondir=/usr/share/zsh/vendor-completions \
18 override_dh_auto_test:
19 dh_auto_test -- V=1 NOTMUCH_SKIP_TESTS="libconfig.18 libconfig.31"
21 override_dh_auto_build:
23 PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python
24 PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi
25 $(MAKE) -C contrib/notmuch-mutt
27 override_dh_auto_clean:
29 PYBUILD_NAME=notmuch dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python
30 PYBUILD_NAME=notmuch2 dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python-cffi
31 dh_auto_clean --sourcedirectory bindings/ruby
32 $(MAKE) -C contrib/notmuch-mutt clean
34 override_dh_auto_install:
36 PYBUILD_NAME=notmuch dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python
37 PYBUILD_NAME=notmuch2 dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python-cffi
38 $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install
39 dh_auto_install --sourcedirectory bindings/ruby