File: rules

package info (click to toggle)
pyalsaaudio 0.8.4-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 1,392 kB
  • sloc: ansic: 2,058; python: 467; makefile: 79
file content (29 lines) | stat: -rwxr-xr-x 921 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
22
23
24
25
26
27
28
29
#! /usr/bin/make -f

#export DH_VERBOSE=1
export PYBUILD_NAME=alsaaudio
export PYBUILD_TEST_ARGS=cd '{build_dir}'; python{version} {dir}/test.py -v

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	dh_auto_clean --buildsystem=pybuild
	cd doc && make clean
	rm -rf pyalsaaudio.egg-info
	rm -rf .cache/

override_dh_auto_build:
	dh_auto_build --buildsystem=pybuild
	cd doc && $(MAKE) SPHINXBUILD=/usr/share/sphinx/scripts/python3/sphinx-build

override_dh_auto_install:
	dh_auto_install --buildsystem=pybuild

override_dh_auto_test:
	PYBUILD_SYSTEM=custom dh_auto_test --buildsystem=pybuild

override_dh_installdocs:
	dh_installdocs
	ln -sf /usr/share/javascript/jquery/jquery.js debian/python3-alsaaudio/usr/share/doc/python3-alsaaudio/html/_static/jquery.js
	ln -sf /usr/share/javascript/underscore/underscore.js debian/python3-alsaaudio/usr/share/doc/python3-alsaaudio/html/_static/underscore.js