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
This commit is contained in:
Jan Beich 2023-01-20 20:54:45 +00:00
parent fe41d5950d
commit fe17c67330

View File

@ -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