X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=debian%2Frules;h=8de49d0ff24343d177389a1783ccd60c6b72873a;hb=cb88b51fe55fcb01235747d4b94072fa6efd501c;hp=4dae6583e4d4e4cf56fd9d46a97357330f457242;hpb=2608bfe95f2c29ba568fa14904087882373971bc;p=notmuch diff --git a/debian/rules b/debian/rules index 4dae6583..8de49d0f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,23 +1,36 @@ #!/usr/bin/make -f -# This target invoked by git-buildpackage using a clean hook, see gbp.conf -prebuild: - git-dch --release --new-version=$(VERSION) - git commit -n debian/changelog \ - -m "Automatically update debian/changelog for $(VERSION)" +export DEB_BUILD_MAINT_OPTIONS = hardening=+all %: - dh $@ + dh $@ --with python3,elpa override_dh_auto_configure: - dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch + BASHCMD=/bin/bash ./configure --prefix=/usr \ + --libdir=/usr/lib/$$(dpkg-architecture -q DEB_TARGET_MULTIARCH) \ + --includedir=/usr/include \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --sysconfdir=/etc \ + --zshcompletiondir=/usr/share/zsh/vendor-completions \ + --localstatedir=/var -override_dh_installdocs: - dh_installdocs - install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim +override_dh_auto_build: + dh_auto_build -- V=1 + PYBUILD_NAME=notmuch dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python + PYBUILD_NAME=notmuch2 dh_auto_build --buildsystem=pybuild --sourcedirectory bindings/python-cffi + $(MAKE) -C contrib/notmuch-mutt -override_dh_install: - dh_install - install -m644 vim/plugin/notmuch.vim debian/notmuch/usr/share/vim/addons/plugin - install -m644 vim/syntax/notmuch-*.vim debian/notmuch/usr/share/vim/addons/syntax - install -m644 vim/notmuch.yaml debian/notmuch/usr/share/vim/registry +override_dh_auto_clean: + dh_auto_clean + PYBUILD_NAME=notmuch dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python + PYBUILD_NAME=notmuch2 dh_auto_clean --buildsystem=pybuild --sourcedirectory bindings/python-cffi + dh_auto_clean --sourcedirectory bindings/ruby + $(MAKE) -C contrib/notmuch-mutt clean + +override_dh_auto_install: + dh_auto_install + PYBUILD_NAME=notmuch dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python + PYBUILD_NAME=notmuch2 dh_auto_install --buildsystem=pybuild --sourcedirectory bindings/python-cffi + $(MAKE) -C contrib/notmuch-mutt DESTDIR=$(CURDIR)/debian/tmp install + dh_auto_install --sourcedirectory bindings/ruby