#!/usr/bin/make -f # -*- makefile -*- NULL = # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export QT_SELECT := qt5 export DEB_BUILD_MAINT_OPTIONS=hardening=+all %: dh $@ override_dh_auto_configure: dh_auto_configure -- \ CONFIG+=load_icu \ PKGCONFIG_LIB=lib/$(DEB_HOST_MULTIARCH) \ SQLITE_EXTENSIONS=lib/$(DEB_HOST_MULTIARCH)/sqlite \ SQLITE_ICU_EXT=icu.so \ $(NULL) override_dh_auto_test: mkdir -p test-home/.local/share # Workaround for jenkins glib-compile-schemas schemas/ # Tolerate test failures/timeouts for now. See: https://github.com/sailfishos/qtcontacts-sqlite/issues/9 -HOME=$(shell pwd)/test-home GSETTINGS_SCHEMA_DIR=$(shell pwd)/schemas dh_auto_test --no-parallel execute_before_dh_install: # remove the tests rm -rf debian/tmp/opt rm -rf debian/tmp/usr/lib/*/qtcontacts-sqlite-qt5/libtestdlgg.so rm -rf debian/tmp/usr/bin/eds_importer execute_after_dh_clean: rm -f schemas/gschemas.compiled get-orig-source: uscan --noconf --force-download --rename --download-current-version --destdir=..