From ad405fe73d06a0e59c6d2dc2388d0944365048ef Mon Sep 17 00:00:00 2001
From: Albert Graef <aggraef@gmail.com>
Date: Wed, 8 Feb 2017 10:39:57 +0100
Subject: [PATCH] Now that 2.0 is out, update debuild to a release-based
 versioning scheme.

---
 debuild/Makefile         | 2 +-
 debuild/debian/changelog | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/debuild/Makefile b/debuild/Makefile
index f4cb6be0e..3a6bb3d3f 100644
--- a/debuild/Makefile
+++ b/debuild/Makefile
@@ -34,7 +34,7 @@
 
 # The Debian version gets derived from the date and serial number of the last
 # commit. You can print it with 'make debversion'.
-debversion = $(shell git log -1 --format=%cd --date=short | sed -e 's/-//g')+git$(shell git rev-list --count HEAD)+$(shell git rev-parse --short HEAD)
+debversion = $(shell grep PD_L2ORK_VERSION ../pd/src/m_pd.h | sed 's|^.define *PD_L2ORK_VERSION *"\(.*\)".*|\1|')+git$(shell git rev-list --count HEAD)+$(shell git rev-parse --short HEAD)
 # Debian revision number of the package.
 debrevision = 1
 # Source tarball and folder.
diff --git a/debuild/debian/changelog b/debuild/debian/changelog
index 3a5594915..d4079005d 100644
--- a/debuild/debian/changelog
+++ b/debuild/debian/changelog
@@ -1,5 +1,5 @@
-purr-data (20160623+git2729+0e83b4c-1) xenial; urgency=low
+purr-data (2.0+git3322+50e3805-1) xenial; urgency=low
 
   * Build from latest upstream source.
 
- -- Albert Graef <aggraef@gmail.com>  Fri, 24 Jun 2016 05:57:05 +0200
+ -- Albert Graef <aggraef@gmail.com>  Wed, 08 Feb 2017 10:33:38 +0100
-- 
GitLab