#!/usr/bin/make -f NULL = export DEB_BUILD_MAINT_OPTIONS = hardening=+all # Only enable -Werror for upstream's build which uses 3.0 (native) SOURCE_FORMAT = $(shell dpkg-source --print-format . | tr -d "3.0() ") %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ -DCLICK_MODE=OFF \ -DENABLE_WERROR=$(if $(filter native,$(SOURCE_FORMAT)),ON,OFF) \ $(NULL) execute_after_dh_install: dh_apparmor -plomiri-gallery-app --profile-name=lomiri-gallery-app override_dh_auto_test: QT_QPA_PLATFORM=minimal CTEST_OUTPUT_ON_FAILURE=1 dh_auto_test get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=..