File: rules

package info (click to toggle)
pyqt5chart 5.15.4%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 456 kB
  • sloc: python: 1,232; makefile: 20; sh: 11
file content (31 lines) | stat: -rwxr-xr-x 919 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
23
24
25
26
27
28
29
30
31
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DH_OPTIONS=${EXTRA_DH_OPTIONS}

DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk

SPLIT=10

export QT_SELECT=qt5

export PYBUILD_SYSTEM=custom
export PYBUILD_CONFIGURE_ARGS={interpreter} /usr/bin/sip-build --verbose --no-make \
	--target-dir /usr/lib/python3/dist-packages \
	--build-dir {build_dir} --pep484-pyi \
	--concatenate $(SPLIT) \
	--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=$(CURDIR)/debian/tmp

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

override_dh_strip:
	dh_strip -ppython3-pyqt5.qtchart --dbgsym-migration='python3-pyqt5.qtchart-dbg (<< 5.15.4+dfsg-1~)'

override_dh_installdocs:
	dh_installdocs -A NEWS