#!/usr/bin/make -f export DH_OPTIONS PKD = $(word 1,$(abspath $(dir $(MAKEFILE_LIST)))) VER = $(shell (dpkg-parsechangelog -l$(PKD)/changelog | grep Version | sed 's/Version..//' | sed 's/\+.\+//')) PRODUCT_VER = $(shell (grep version changelog | tail -1 | awk '{print $2}' | sed "s/^\\\([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