#!/usr/bin/make -f
-include /usr/share/gnome-pkg-tools/1/rules/gnome-get-source.mk

%:
	dh $@ --with gnome,python3 --buildsystem=meson

# 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
