#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_BUILD_RPATH_USE_ORIGIN=ON -DBUILD_TESTING=ON

execute_after_dh_auto_install:
	find debian/kleopatra -name '*.so' -type l -delete

override_dh_auto_test:
	- xvfb-run -a dbus-run-session -- dh_auto_test --no-parallel
