File: rules

package info (click to toggle)
pyzbar 0.1.9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 284 kB
  • sloc: python: 889; sh: 20; makefile: 16
file content (21 lines) | stat: -rwxr-xr-x 816 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

export PYBUILD_NAME=pyzbar
export PYBUILD_BEFORE_TEST=mkdir -p {build_dir}/pyzbar/; cp -r {dir}/pyzbar/tests {build_dir}/pyzbar/
export PYBUILD_AFTER_INSTALL=rm -rf '{destdir}/usr/bin/read_zbar.py' '{destdir}/{install_dir}/pyzbar/tests'

%:
	dh $@ --buildsystem=pybuild

override_dh_gencontrol:
	dh_gencontrol -- \
	  -Vlib:Depends=$(shell dpkg-query -W -f '$${Depends}' libzbar-dev \
			| sed -E 's/.*(libzbar[[:alnum:].-]+).*/\1/')

override_dh_installman:
	mkdir -p debian/python3-pyzbar/usr/share/man/man1
	PYTHONPATH=debian/python3-pyzbar/usr/lib/$(shell py3versions -d)/dist-packages \
		help2man --no-info --name "Command line utility for reading barcodes and QR-codes" \
		--section=1 \
		debian/python3-pyzbar/usr/bin/read_zbar > \
		debian/python3-pyzbar/usr/share/man/man1/read_zbar.1