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

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

override_dh_install:
	# make sure dir exists
	mkdir -p debian/ksystemstats/DEBIAN
	# sed in our multiarch path
	sed 's|@DEB_HOST_MULTIARCH@|$(DEB_HOST_MULTIARCH)|g' debian/ksystemstats.postinst.in > debian/ksystemstats/DEBIAN/postinst
	# ensure the postinst is executable
	chmod 755 debian/ksystemstats/DEBIAN/postinst
