#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# lots of deprecation warnings, so disable them for now
export DEB_CXXFLAGS_MAINT_APPEND = -Wno-deprecated -Wno-deprecated-declarations

%:
	dh $@ --with kf6

override_dh_auto_configure:
	dh_auto_configure -Skf6 -- -DCMAKE_SKIP_RPATH=ON \
	                           -DBUILD_TESTING=OFF \
	                           -DENABLE_WEBENGINE=ON \
	                           -DBUILD_WITH_QT6=ON

execute_after_dh_auto_install:
	# remove development stuff
	rm -rf debian/tmp/usr/include/
	find debian/tmp -name '*.so' -type l -delete

# No dbgsym packages:
override_dh_strip:
	@echo "NO--THANKS ANYWAY--but not building dbgsym packages for MX Linux"
	dh_strip --no-automatic-dbgsym

.PHONY: override_dh_auto_test
