git: baf869d07803 - main - deskutils/flameshot: fix path in .desktop file

From: Nicola Vitale <nivit_at_FreeBSD.org>
Date: Fri, 26 Nov 2021 13:16:18 UTC
The branch main has been updated by nivit:

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

commit baf869d0780387317856fa47fcbd7b0ca37774ee
Author:     Nicola Vitale <nivit@FreeBSD.org>
AuthorDate: 2021-11-26 13:11:15 +0000
Commit:     Nicola Vitale <nivit@FreeBSD.org>
CommitDate: 2021-11-26 13:11:15 +0000

    deskutils/flameshot: fix path in .desktop file
    
    Bump PORTREVISION
    PR:             259391
---
 deskutils/flameshot/Makefile | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/deskutils/flameshot/Makefile b/deskutils/flameshot/Makefile
index 626095b57ebf..196a8fde3393 100644
--- a/deskutils/flameshot/Makefile
+++ b/deskutils/flameshot/Makefile
@@ -3,6 +3,7 @@
 PORTNAME=	flameshot
 PORTVERSION=	0.10.0
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 CATEGORIES=	deskutils
 
 MAINTAINER=	nivit@FreeBSD.org
@@ -24,6 +25,8 @@ USE_QT=		core dbus gui linguist network svg widgets \
 
 post-patch:
 	        @${REINPLACE_CMD} -e 's,$${CMAKE_INSTALL_FULL_BINDIR},${LOCALBASE}/bin,1' \
-	                ${WRKSRC}/data/dbus/org.flameshot.Flameshot.service.in
+			-e 's,^\(Exec=\)/usr\(/bin\),\1${LOCALBASE}\2,1' \
+	                ${WRKSRC}/data/dbus/org.flameshot.Flameshot.service.in \
+	                ${WRKSRC}/data/desktopEntry/package/org.flameshot.Flameshot.desktop
 
 .include <bsd.port.mk>