---
 Makefile.in |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

--- a/Makefile.in
+++ b/Makefile.in
@@ -96,11 +96,7 @@ distclean: clean
 	rm -f Makefile contrib/pacman/PKGBUILD contrib/spec/onedrive.spec onedrive.1 $(system_unit_files) $(user_unit_files)
 
 onedrive: $(SOURCES)
-	if [ -f .git/HEAD ] ; then \
-		git describe --tags > version ; \
-	else \
-		echo $(version) > version ; \
-	fi
+	echo v$(shell dpkg-parsechangelog  -S version) > version
 	$(DC) -J. $(NOTIF_VERSIONS) $(DCFLAGS) $^ $(addprefix $(LINKER_DCFLAG),$(all_libs)) $(OUTPUT_DCFLAG)$@
 
 install: all
