#!/usr/bin/make -f
#DH_VERBOSE = 1

DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk

export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

export QT_SELECT=qt5

%:
	dh $@ --buildsystem=qmake --dbg-package=zeal-dbg --fail-missing

override_dh_auto_configure:
	dh_auto_configure -- DESTDIR=$(CURDIR)/build $(CURDIR)/zeal/zeal.pro

override_dh_fixperms:
	dh_fixperms
	find $(CURDIR)/debian/zeal -name '*.png' -type f -exec chmod -x {} \;
