#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,-O1 -Wl,-z,defs

%:
	dh $@ --buildsystem=meson

override_dh_auto_configure:
	dh_auto_configure -- \
		--prefix=/usr \
		-Dpluginsdir=/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel/plugins

override_dh_auto_install:
	dh_auto_install
	find debian/lxpanel-netaid-plugin -name '*.a' -delete

override_dh_shlibdeps:
	dh_shlibdeps -- --ignore-missing-info -l/usr/lib/$(DEB_HOST_MULTIARCH)/lxpanel
