From 7e8648d56366a98af1cbd25931303ad2f8ffebb5 Mon Sep 17 00:00:00 2001 From: Emmanuel Papin Date: Thu, 4 Jun 2015 21:39:56 +0200 Subject: [PATCH] Add missing lines in distros/debian8_cmake/rules --- distros/debian8_cmake/rules | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/distros/debian8_cmake/rules b/distros/debian8_cmake/rules index 94d7bad9f..6b00f8dcf 100755 --- a/distros/debian8_cmake/rules +++ b/distros/debian8_cmake/rules @@ -7,6 +7,16 @@ export CFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pip export CXXFLAGS = -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -pipe INSTDIR = debian/tmp +# These are used to get the most recent version of the original sources from github +UURL = $(shell git config --get remote.origin.url) +BRANCH = $(shell git rev-parse --abbrev-ref HEAD) +HEAD = $(shell git rev-parse HEAD) +PKD = $(abspath $(dir $(MAKEFILE_LIST))) +PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) +VER ?= $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-|\+nmu\d+.*)};') +DTYPE = +TARBALL = ../$(PKG)_$(VER)$(DTYPE).orig.tar.xz + %: dh $@ --buildsystem=cmake --parallel --with systemd