git: 44dda6cd41a7 - main - security/nitrokey-app: Fix packaging

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Sat, 18 Feb 2023 17:36:06 UTC
The branch main has been updated by fernape:

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

commit 44dda6cd41a7c640cae50d66e486a028608dea36
Author:     Thibault Payet <monwarez@mailoo.org>
AuthorDate: 2023-02-18 17:08:03 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-02-18 17:31:45 +0000

    security/nitrokey-app: Fix packaging
    
    PR:             269595
    Reported by:    saper@saper.info (maintainer)
---
 security/nitrokey-app/Makefile  | 8 ++++++--
 security/nitrokey-app/pkg-plist | 2 +-
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/security/nitrokey-app/Makefile b/security/nitrokey-app/Makefile
index 4d7709393efa..c49647d13774 100644
--- a/security/nitrokey-app/Makefile
+++ b/security/nitrokey-app/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	nitrokey-app
 DISTVERSIONPREFIX=	v
 DISTVERSION=	1.4.2
+PORTREVISION=	1
 CATEGORIES=	security
 
 MAINTAINER=	monwarez@mailoo.org
@@ -12,17 +13,20 @@ LICENSE_FILE=	${WRKSRC}/LICENSES/GPLv3
 
 LIB_DEPENDS=	libnitrokey.so:security/libnitrokey
 
-USES=		cmake compiler:c++11-lang pkgconfig qt:5
+USES=		cmake compiler:c++11-lang pkgconfig qt:5 desktop-file-utils
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	Nitrokey
 GH_TUPLE=	Nitrokey:nitrokey-app:${DISTVERSIONPREFIX}${DISTVERSION}\
 		tplgy:cppcodec:61d9b04:cppcodec
 
-USE_QT=	buildtools:build concurrent gui linguisttools:build qmake:build svg widgets
+USE_QT=	buildtools:build core concurrent gui linguisttools:build qmake:build svg widgets
+
+CMAKE_ARGS= -DBASH_COMPLETION_PATH="share/bash-completion/completions/"
 
 post-extract:
 	@${RMDIR} ${WRKSRC}/3rdparty/cppcodec
 	@${LN} -sf ${WRKDIR}/cppcodec-61d9b04 ${WRKSRC}/3rdparty/cppcodec
 
+
 .include <bsd.port.mk>
diff --git a/security/nitrokey-app/pkg-plist b/security/nitrokey-app/pkg-plist
index d586470db010..da9513289194 100644
--- a/security/nitrokey-app/pkg-plist
+++ b/security/nitrokey-app/pkg-plist
@@ -1,5 +1,5 @@
 bin/nitrokey-app
-etc/bash_completion.d/nitrokey-app
+share/bash-completion/completions/nitrokey-app
 share/applications/nitrokey-app.desktop
 share/icons/hicolor/128x128/apps/nitrokey-app.png
 share/icons/hicolor/16x16/apps/nitrokey-app.png