#!/usr/bin/make -f

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

export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed

%:
	dh $@ --parallel --with kf5

override_dh_auto_configure:
	dh_auto_configure -Skf5 -- -DPACKAGERS_BUILD=ON -DBUILD_TESTING=OFF

override_dh_auto_install:
	dh_auto_install
	# remove symlinks of private libraries
	find debian/tmp -name '*.so' -type l -print -delete
	# already provided by breeze
	rm -rv debian/tmp/usr/share/color-schemes/Breeze*.colors
	# unused tool
	rm -v debian/tmp/usr/bin/gmicparser

override_dh_install:
	dh_install --list-missing

.PHONY: override_dh_auto_test
