#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 include /usr/share/dpkg/pkg-info.mk # Mopidy gets its version from setuptools-scm. A build in the packaging git # checkout would make setuptools-scm read the version from the git tags of that # repository, which are the Debian tags. Give it the upstream version instead. export SETUPTOOLS_SCM_PRETEND_VERSION = $(DEB_VERSION_UPSTREAM) %: dh $@ --buildsystem=pybuild execute_before_dh_auto_clean: debconf-updatepo execute_after_dh_auto_install: # Move mopidy command into private module dir so it gets Mopidy # extensions on its PYTHONPATH mkdir -p debian/mopidy/usr/share/mopidy mv debian/mopidy/usr/bin/mopidy debian/mopidy/usr/share/mopidy/mopidy-cmd override_dh_installinit: dh_installinit --no-start override_dh_installsystemd: dh_installsystemd --no-enable --no-start override_dh_installchangelogs: dh_installchangelogs docs/changelog/index.md