Files
gentoo/app-misc/openrgb-plugin-visualmap/files/openrgb-plugin-visualmap-0.9_p20250723-build-system.patch
2025-08-17 09:54:51 +02:00

16 lines
430 B
Diff

Avoid running `git`
--- a/OpenRGBVisualMapPlugin.pro
+++ b/OpenRGBVisualMapPlugin.pro
@@ -27,10 +27,7 @@ MAJOR = 0
MINOR = 9
SUFFIX = git
-SHORTHASH = $$system("git rev-parse --short=7 HEAD")
LASTTAG = "release_"$$MAJOR"."$$MINOR
-COMMAND = "git rev-list --count "$$LASTTAG"..HEAD"
-COMMITS = $$system($$COMMAND)
VERSION_NUM = $$MAJOR"."$$MINOR"."$$COMMITS
VERSION_STR = $$MAJOR"."$$MINOR