#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

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

# The fixfilepath feature causes a build failure, disable it.
export DEB_BUILD_MAINT_OPTIONS = reproducible=-fixfilepath
# do not use kdeinit for kio
export KDE_FORK_SLAVES=1

%:
	dh $@ --with kf6,python3

override_dh_auto_configure:
	dh_auto_configure -Skf6 -- \
		-DBUILD_WITH_QT6=ON \
		-DENABLE_WEBCAM=false

override_dh_auto_test:

execute_after_dh_auto_install:
	# extra copyright notices
	rm -fv debian/tmp/usr/share/tellico/pics/README.*
	mkdir -p debian/tmp/etc/apparmor.d
	cp debian/tellico-apparmor debian/tmp/etc/apparmor.d/usr.bin.tellico
	dh_apparmor --profile-name=usr.bin.tellico -ptellico

override_dh_python3:
	dh_python3 -p tellico-data --shebang=/usr/bin/python3 /usr/share/tellico/data-sources
