#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# see FEATURE AREAS in dpkg-buildflags(1)
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export QT_SELECT := 5
export INSTALL_DESTDIR = /debian/arcclock

%:
	dh $@ --buildsystem=qmake

override_dh_auto_configure:
	cp $(CURDIR)/debian/arc_ru.ts $(CURDIR)/ts/
	mv $(CURDIR)/ts/arc_ua.ts $(CURDIR)/ts/arc_uk.ts
	rm -fv $(CURDIR)/ts/arc_*.qm
	/usr/lib/qt5/bin/lupdate arcclock.pro
	/usr/lib/qt5/bin/lrelease arcclock.pro
	dh_auto_configure -- \
		arcclock.pro

override_dh_install:
	dh_install --

override_dh_missing:
	dh_missing --fail-missing
