File: rules

package info (click to toggle)
pyqt6 6.10.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 7,772 kB
  • sloc: cpp: 18,294; python: 10,614; javascript: 721; makefile: 25; sh: 10
file content (32 lines) | stat: -rwxr-xr-x 1,038 bytes parent folder | download | duplicates (2)
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
30
31
32
#!/usr/bin/make -f

include /usr/share/dpkg/buildflags.mk

export PYBUILD_SYSTEM=custom
export PYBUILD_CONFIGURE_ARGS={interpreter} /usr/bin/sip-build \
	--verbose \
	--no-make \
	--confirm-license \
	--pep484-pyi \
	--target-dir /usr/lib/python3/dist-packages \
	--build-dir {build_dir} \
	--qmake /usr/lib/qt6/bin/qmake \
	--qmake-setting 'CONFIG += nostrip' \
	--qmake-setting 'QMAKE_CXXFLAGS += "$(CXXFLAGS) $(CPPFLAGS)"' \
	--qmake-setting 'QMAKE_LFLAGS += "$(LDFLAGS)"'
export PYBUILD_BUILD_ARGS=$(MAKE) -C {build_dir}
export PYBUILD_INSTALL_ARGS=$(MAKE) -C {build_dir} install INSTALL_ROOT={destdir}
export LC_ALL=C.UTF-8

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

execute_after_dh_auto_install:
	sed -i -E 's,exec /usr/bin/python3\.[0-9]+,exec /usr/bin/python3,' debian/tmp/usr/bin/*

override_dh_installdocs:
	dh_installdocs -A NEWS

execute_after_dh_installexamples-indep:
	sed -i '1s,^#!/usr/bin/env python$$,#!/usr/bin/python3,' \
		debian/pyqt6-examples/usr/share/doc/pyqt6-examples/examples/qml/referenceexamples/*.py