--- a/Makefile
+++ b/Makefile
@@ -17,7 +17,7 @@ CFLAGS ?= -O2 -Wall
 # if your compiler doesn't support OpenMP, comment out this line
 CC += -fopenmp
 
-GIT_VERSION := $(shell git describe --abbrev=6 --dirty --always || date +%F)
+GIT_VERSION := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
 GVCFLAGS += -DGIT_VERSION=\"$(GIT_VERSION)\"
 
 override CFLAGS += $(GVCFLAGS) `pkg-config openssl --cflags` -pthread
