git: a7e3943e40b1 - main - games/veloren-weekly: install metainfo

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Tue, 07 Mar 2023 03:27:49 UTC
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a7e3943e40b122ef355efeb760a15bcea729c46b

commit a7e3943e40b122ef355efeb760a15bcea729c46b
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2023-03-07 01:27:05 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2023-03-07 03:26:47 +0000

    games/veloren-weekly: install metainfo
---
 games/veloren-weekly/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/games/veloren-weekly/Makefile b/games/veloren-weekly/Makefile
index 8e11c7d7945d..95b3dbdc92dc 100644
--- a/games/veloren-weekly/Makefile
+++ b/games/veloren-weekly/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	veloren
 PORTVERSION=	s20230301
+PORTREVISION=	1
 CATEGORIES=	games wayland
 .if !make(makesum)
 MASTER_SITES=	LOCAL/jbeich
@@ -31,6 +32,7 @@ CARGO_ENV=	VELOREN_USERDATA_STRATEGY=system SHADERC_LIB_DIR="${LOCALBASE}/lib"
 PLIST_FILES=	bin/${PORTNAME}-server-cli \
 		bin/${PORTNAME}-voxygen \
 		share/applications/net.veloren.veloren.desktop \
+		share/metainfo/net.veloren.veloren.metainfo.xml \
 		share/pixmaps/net.veloren.veloren.png
 PORTDATA=	*
 
@@ -64,5 +66,8 @@ post-install:
 		${STAGEDIR}${PREFIX}/share/applications
 	${RLN} ${STAGEDIR}${DATADIR}/assets/voxygen/*.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps
+	${MKDIR} ${STAGEDIR}${PREFIX}/share/metainfo
+	${RLN} ${STAGEDIR}${DATADIR}/assets/voxygen/*.metainfo.xml \
+		${STAGEDIR}${PREFIX}/share/metainfo
 
 .include <bsd.port.mk>