#!/usr/bin/make -f

l10npkgs_firstversion_ok := 4:16.04.3-6~
include /usr/share/pkg-kde-tools/qt-kde-team/2/l10n-packages.mk

%:
	dh $@ --with kf5,python3

override_dh_auto_install:
	dh_auto_install
	# remove translations of non-existing components
	rm debian/kig/usr/share/locale/*/LC_MESSAGES/kfile_drgeo.mo
	rm debian/kig/usr/share/locale/*/LC_MESSAGES/kfile_kig.mo
	# at the end, remove empty directories
	find debian/kig -type d -empty -delete

override_dh_gencontrol: l10npkgs_firstversion_ok
	dh_gencontrol
