X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=debian%2Frules;h=9ac190ead6246c875981c2e65f43cdf25755b1eb;hb=0fdc28cd6bfb3aacc3594e8ff471258786f0de02;hp=4dae6583e4d4e4cf56fd9d46a97357330f457242;hpb=2608bfe95f2c29ba568fa14904087882373971bc;p=notmuch diff --git a/debian/rules b/debian/rules index 4dae6583..9ac190ea 100755 --- a/debian/rules +++ b/debian/rules @@ -1,21 +1,35 @@ #!/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)" +VERSION=$(shell dpkg-parsechangelog | sed -n 's/^Version:\([^-]*\)/\1/p') %: - dh $@ + dh --with python2 $@ override_dh_auto_configure: + cp version debian/version.pre-build + echo $(VERSION) > version dh_auto_configure -- --emacslispdir=/usr/share/emacs/site-lisp/notmuch +override_dh_auto_build: + dh_auto_build + dh_auto_build --sourcedirectory bindings/python + +override_dh_auto_clean: + -mv debian/version.pre-build version + dh_auto_clean + dh_auto_clean --sourcedirectory bindings/python + +override_dh_auto_install: + dh_auto_install + dh_auto_install --sourcedirectory bindings/python + override_dh_installdocs: dh_installdocs install -m644 vim/README debian/notmuch/usr/share/doc/notmuch/README.vim +override_dh_auto_build: + make RPATH_LDFLAGS="" + override_dh_install: dh_install install -m644 vim/plugin/notmuch.vim debian/notmuch/usr/share/vim/addons/plugin