From: Roger Shimizu <rosh@debian.org>
Date: Sat, 21 May 2022 17:04:05 +0900
Subject: Avoid calling git command when building

---
 YUViewApp/YUViewApp.pro | 3 +--
 YUViewLib/YUViewLib.pro | 4 +---
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/YUViewApp/YUViewApp.pro b/YUViewApp/YUViewApp.pro
index 024fae0..ef869b5 100644
--- a/YUViewApp/YUViewApp.pro
+++ b/YUViewApp/YUViewApp.pro
@@ -58,7 +58,7 @@ macx {
 }
 
 linux {
-    SVNN = $$system("git describe --tags")
+    SVNN = $$(DEB_VERSION_UPSTREAM)
 }
 win32-msvc* {
     message("MSVC Compiler detected.")
@@ -69,7 +69,6 @@ win32 {
     DEFINES += NOMINMAX
 }
 
-LASTHASH = $$system("git rev-parse HEAD")
 isEmpty(LASTHASH) {
     LASTHASH = 0
 }
diff --git a/YUViewLib/YUViewLib.pro b/YUViewLib/YUViewLib.pro
index a0889ca..f6a59e2 100644
--- a/YUViewLib/YUViewLib.pro
+++ b/YUViewLib/YUViewLib.pro
@@ -21,8 +21,7 @@ contains(QT_ARCH, x86_32|i386) {
     warning("You are building for a 32 bit system. This is untested and not supported.")
 }
 
-SVNN = $$system("git describe --tags")
-LASTHASH = $$system("git rev-parse HEAD")
+SVNN = $$(DEB_VERSION_UPSTREAM)
 isEmpty(LASTHASH) {
     LASTHASH = 0
 }
@@ -40,7 +39,6 @@ win32-msvc* {
 }
 win32-g++ | linux | macx {
     HASHSTRING = '\\"$${LASTHASH}\\"'
-    DEFINES += YUVIEW_HASH=\"$${HASHSTRING}\"
 }
 
 VERSTR = '\\"$${SVNN}\\"'
