| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export LC_ALL=C.UTF-8 |
| 4 | export PYBUILD_INSTALL_DIR=/usr/share/beets/ |
| 5 | # https://github.com/beetbox/beets/issues/1876 |
| 6 | export PYBUILD_TEST_ARGS=-k "not test_completion" |
| 7 | export PYBUILD_AFTER_INSTALL=rm -r {destdir}{install_dir}/beets-*.dist-info/licenses/ |
| 8 | |
| 9 | # Needed by sphinx build |
| 10 | export HOME=$(CURDIR)/debian/fakehome/ |
| 11 | |
| 12 | %: |
| 13 | dh $@ --buildsystem=pybuild |
| 14 | |
| 15 | execute_after_dh_auto_install: |
| 16 | ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES))) |
| 17 | PYTHONPATH=$(CURDIR) $(MAKE) -C docs html man |
| 18 | # There seem to be leftover static js files. |
| 19 | rm -rf docs/_build/man/_sphinx_design_static |
| 20 | endif |
| 21 | |
| 22 | override_dh_installchangelogs: |
| 23 | dh_installchangelogs docs/changelog.rst |
| 24 | |
| 25 | execute_after_dh_fixperms: |
| 26 | chmod a-x debian/beets/usr/share/beets/beets/dbcore/db.py |