#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DBUILD_QCH=ON

override_dh_auto_test:
ifneq (,$(filter $(DEB_HOST_ARCH), amd64 arm64 armhf i386 loong64 ppc64el riscv64 s390x hurd-i386 powerpc ppc64 sparc64))
	dh_auto_test
else
	# temporarily ignore test results, qdeclarativefeedback fails if the
	# QML module is not installed
	-dh_auto_test
endif

get-orig-source:
	uscan --noconf --force-download --rename --download-current-version --repack --destdir=..
