File: rules

package info (click to toggle)
gdebi 0.9.5.7%2Bnmu6
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 1,924 kB
  • sloc: python: 1,993; makefile: 38
file content (26 lines) | stat: -rwxr-xr-x 585 bytes parent folder | download | duplicates (6)
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
#!/usr/bin/make -f

PY3VER=$(shell py3versions -dvr)
DH_VERBOSE=1

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

override_dh_auto_clean:
	dh_auto_clean
	rm -rf build GDebi/Version.py po/mo

override_dh_auto_test:
	xvfb-run -a python$(PY3VER) setup.py test

override_dh_auto_install:
	PYBUILD_SYSTEM=custom \
	PYBUILD_INSTALL_ARGS="python{version} setup.py install \
		--install-layout=deb \
		--root=debian/tmp \
		--install-scripts=/usr/share/gdebi \
		--install-lib=/usr/share/gdebi" \
	dh_auto_install

override_dh_python3:
	dh_python3 --shebang=/usr/bin/python3 /usr/share/gdebi