#!/usr/bin/make -f

%:
	dh $@ --with gnome,python3

# libexecdir should stay pointed to the old directory so that the
# old autostart .desktop in the user directory still works
override_dh_auto_configure:
	dh_auto_configure -- \
		--libexecdir=/usr/lib/gnome-tweak-tool

override_dh_install:
# Ubuntu includes this in gnome-control-center instead
ifeq (yes,$(shell dpkg-vendor --derives-from Ubuntu && echo yes))
	find debian/tmp -name 'tweak_group_sound.py' -print -delete
endif
	dh_install
