#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk export DH_OPTIONS PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST)))) VER = $(shell (echo $(DEB_VERSION) | sed 's/-.\+//')) PRODUCT_VER = $(shell (grep -e "^\s*version" changelog | tail -1 | sed 's/version \([0-9.]\+\).\+/\1/')) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_configure: dh_auto_configure -- -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) -DQT5=true -DNOSECRETSUPPORT=false -DNOKDESUPPORT=true override_dh_auto_build: if [ ${VER} != ${PRODUCT_VER} ] ; then exit 1 ; fi if ! grep -q \"${VER}\" ./src/sirikali.appdata.xml ; then exit 1 ; fi dh_auto_build