File: rules

package info (click to toggle)
cloudprint 0.14-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 512 kB
  • sloc: python: 1,128; sh: 48; makefile: 16
file content (22 lines) | stat: -rwxr-xr-x 851 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
#!/usr/bin/make -f

export PYBUILD_NAME=cloudprint
export PYBUILD_TEST_PYTEST=1

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

override_dh_auto_install:
	python3 setup.py install --root=debian/cloudprint --install-layout=deb --install-lib=/usr/share/cloudprint --install-scripts=/usr/share/cloudprint
	find debian/cloudprint -type f -name '*.pyc' -delete
	/bin/rm -rf debian/cloudprint/usr/share/cloudprint/cloudprint/__pycache__/

override_dh_auto_build:
	dh_auto_build
	/bin/sed 's/PROG/cloudprint/g' debian/cloudprint.man.in >debian/cloudprint.1
	/bin/sed 's/PROG/cloudprintd/g' debian/cloudprint.man.in >debian/cloudprintd.8
	/bin/sed 's/cloudprintd 1/cloudprintd 8/' debian/cloudprintd.8 >debian/cloudprintd.8.tmp
	/bin/mv debian/cloudprintd.8.tmp debian/cloudprintd.8

override_dh_systemd_enable:
	dh_systemd_enable --name=cloudprintd