#!/usr/bin/make -f

export QT_SELECT = qt5
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

%:
	dh $@

# dh_auto_configure does not work with this package, thus
# we need to call the configure script manually.
override_dh_auto_configure:
	./configure --debug --prefix=/usr

# Install two icons for desktop file
override_dh_auto_install:
	dh_auto_install
	install -m 0644 pics/qbrew.png $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/48x48/apps
	install -m 0644 pics/qbrew.svg $(CURDIR)/debian/qbrew/usr/share/icons/hicolor/scalable/apps
