File debian.rules of Package quentier-development
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
# Multiarch support
export DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
# Required to make the tests work on launchpad
export LIBQUENTIER_PERSISTENCE_STORAGE_PATH = /tmp/quentier_persistence_storage_path
# Build info
export QUENTIER_BUILD_INFO = "OpenSUSE build service, unstable. $(shell date --utc '+%Y-%m-%d %H:%M') UTC"
_QUENTIER_QT5_BUILDDIR = build-qt5
%:
dh $@ --parallel --buildsystem=cmake --builddirectory=$(_QUENTIER_QT5_BUILDDIR)
override_dh_auto_configure:
dh_auto_configure -- -DQUENTIER_BUILD_INFO=${QUENTIER_BUILD_INFO} -DBREAKPAD_ROOT=/usr -DCMAKE_INCLUDE_PATH=/usr/include/tidy -DCMAKE_BUILD_TYPE=RelWithDebInfo
override_dh_auto_build:
dh_auto_build
# build translations (it's enough to do that only for Qt5 version)
$(MAKE) -C build-qt5 lupdate
$(MAKE) -C build-qt5 lrelease
override_dh_auto_test:
xvfb-run -a dh_auto_test
override_dh_auto_install:
dh_auto_install --destdir=debian/tmp
override_dh_install:
dh_install --list-missing