File: rules

package info (click to toggle)
audio-visualizer-python 2.1.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 832 kB
  • sloc: python: 5,773; sh: 15; makefile: 10
file content (21 lines) | stat: -rwxr-xr-x 739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/make -f

# Uncoment this line to debug failing tests
# export PYBUILD_TEST_ARGS = -s --no-qt-log
# export DH_VERBOSE = 1
# export PYBUILD_VERBOSE = 1
export PYBUILD_NAME = audio-visualizer-python
export PYBUILD_INSTALL_DIR = /usr/share/audio-visualizer-python/
export PYBUILD_AFTER_TEST = rm -rf {build_dir}/.pytest_cache

# Inject private module to sys.path
export PYBUILD_AFTER_INSTALL = sed -i \
	's/from avp.cli import main/sys.path.insert(0, "\/usr\/share\/audio-visualizer-python\/")\n&\n/' \
	{destdir}/usr/bin/avp

%:
	dh $@ --buildsystem=pybuild

execute_after_dh_python3:
	# Remove the distinfo stuff once the dependencies have been collected
	rm -vrf debian/audio-visualizer-python/$(PYBUILD_INSTALL_DIR)/*.dist-info