File: rules

package info (click to toggle)
qcat 1.1.0-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 15,996 kB
  • sloc: python: 2,616; sh: 43; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

# DH_VERBOSE := 1
export LC_ALL=C.UTF-8

include /usr/share/dpkg/default.mk

export PYBUILD_BEFORE_TEST=cp -r {dir}/$(DEB_SOURCE)/test {build_dir}/$(DEB_SOURCE) ;

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

override_dh_install:
	dh_install
	find debian -name .coverage -delete
	mkdir -p debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples/$(DEB_SOURCE)
	mv debian/$(DEB_SOURCE)/usr/lib/python3*/dist-packages/$(DEB_SOURCE)/test debian/$(DEB_SOURCE)-examples/usr/share/doc/$(DEB_SOURCE)/examples/$(DEB_SOURCE)
	find debian -name __pycache__ -type d | xargs rm -rf