#!/usr/bin/make -f
# SPDX-License-Identifier: LGPL-2.0-or-later
# # SPDX-FileCopyrightText: 2023 Jonathan Riddell <jr@jriddell.org>

export DEB_CFLAGS_MAINT_APPEND  = -Werror -Wno-error=unused-result -Wno-error=sign-compare
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-Bsymbolic-functions -Wl,--as-needed

%:
	dh $@ --with kf6 --buildsystem kf6

override_dh_auto_configure:
	dh_auto_configure -- -DDISTRO_NAME="KDE neon" -DDISTRO_LOGO=neon

override_dh_auto_install:
	dh_auto_install
	dh_install -p plymouth-theme-breeze \
		debian/initramfs-hook/plymouth_breeze \
		usr/share/initramfs-tools/hooks

override_dh_installsystemd:
	dh_installsystemd --no-start

override_dh_installinit:
	dh_installinit --noscripts --name casper-stop-breeze-plymouth

.PHONY: override_dh_makeshlibs
