#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --builddirectory=build -X.la \
		-O--dbgsym-migration="shishi-dbg (<< 1.0.2-7~)"

override_dh_auto_configure:
	dh_auto_configure -- \
		--disable-rpath \
		--disable-valgrind-tests \
		--enable-gtk-doc \
		--with-db-dir=/var/lib/shishi \
		--with-pam-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
		--with-packager=Debian \
		--with-packager-version=$(DEB_VERSION) \
		--with-packager-bug-reports=https://bugs.debian.org/

override_dh_auto_install:
	dh_auto_install
	rm -f debian/tmp/etc/shishi/shishi.keys

override_dh_compress:
	dh_compress -Xshishi.pdf
