| 1 |
|
| 2 |
|
| 3 |
include /usr/share/dpkg/architecture.mk |
| 4 |
|
| 5 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 6 |
|
| 7 |
%: |
| 8 |
dh $@ --with=sphinxdoc |
| 9 |
|
| 10 |
override_dh_auto_configure: |
| 11 |
QT_SELECT=qt5 dh_auto_configure --builddir=build5 -- .. |
| 12 |
QT_SELECT=qt6 dh_auto_configure --buildsystem=qmake6 --builddir=build6 -- .. |
| 13 |
|
| 14 |
|
| 15 |
override_dh_auto_build: |
| 16 |
dh_auto_build --builddir=build6 |
| 17 |
dh_auto_build --builddir=build5 |
| 18 |
/usr/share/sphinx/scripts/python3/sphinx-build -b html docs build/sphinx/html |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
dh_auto_install --builddir=build6 |
| 22 |
dh_auto_install --builddir=build5 |
| 23 |
|
| 24 |
override_dh_auto_clean: |
| 25 |
dh_auto_clean --builddir=build6 |
| 26 |
dh_auto_clean --builddir=build5 |
| 27 |
rm -rf build build5 build6 |
| 28 |
|
| 29 |
override_dh_auto_test: |
| 30 |
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 31 |
xvfb-run -a ./build5/tests/tests |
| 32 |
xvfb-run -a ./build6/tests/tests |
| 33 |
endif |
| 34 |
|
| 35 |
override_dh_installdocs: |
| 36 |
dh_installdocs -ppyotherside-doc --doc-main-package=qml-module-io-thp-pyotherside |
| 37 |
dh_installdocs --remaining-packages |
| 38 |
|
| 39 |
execute_after_dh_install-arch: |
| 40 |
install --mode=644 $(CURDIR)/qtquicktests/*.qml $(CURDIR)/qtquicktests/*py debian/pyotherside-tests/usr/lib/$(DEB_HOST_MULTIARCH)/pyotherside/tests |