aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-01-20 20:54:45 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-01-20 21:34:04 +0000
commitfe17c673307c44a8944490b1c47c6d39eecfdbda (patch)
tree368ebc8c99c622eec64d377bf169e84932339d96
parentfe41d5950d1473edef31454886dc17ade9072d3d (diff)
downloadports-fe17c673307c44a8944490b1c47c6d39eecfdbda.tar.gz
ports-fe17c673307c44a8944490b1c47c6d39eecfdbda.zip
games/veloren: embed commit hash instead of tag name
WARN veloren_client: Server is running 185dccc1[2023-01-06], you are running v0.14.0[2023-01-06], versions might be incompatible! https://gitlab.com/veloren/veloren/-/commit/b8e12811bf46
-rw-r--r--games/veloren/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/veloren/Makefile b/games/veloren/Makefile
index 89b679a781af..32830d81a377 100644
--- a/games/veloren/Makefile
+++ b/games/veloren/Makefile
@@ -48,7 +48,7 @@ post-patch:
@${REINPLACE_CMD} -e 's/"git"/"${TRUE}"/' \
${WRKSRC}/common/build.rs
# Extract (snapshot) version from the port instead of empty file
- @${REINPLACE_CMD} -e '/GIT_HASH/s/=.*/= "${DISTVERSIONFULL}";/' \
+ @${REINPLACE_CMD} -e '/GIT_HASH/s/=.*/= "${GL_COMMIT:C/(.{8}).*/\1/}";/' \
-e "/GIT_DATE.*static/s/=.*/= \"$$(date -r $$(${AWK} '/TIMESTAMP/ { print $$3 }' \
${DISTINFO_FILE}) +'%Y-%m-%d-%H:%M')\";/" \
${WRKSRC}/common/src/util/mod.rs