summaryrefslogtreecommitdiff
path: root/security/gpg-tui/Makefile
blob: 4c858fc39fef0683edcb211e38c47e5d19dda5ff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
PORTNAME=	gpg-tui
DISTVERSIONPREFIX=	v
DISTVERSION=	0.9.1
PORTREVISION=	2
CATEGORIES=	security

MAINTAINER=	se@FreeBSD.org
COMMENT=	Terminal User Interface for GnuPG
WWW=		https://github.com/orhun/gpg-tui

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	gpgme>=1.7.0:security/gpgme
LIB_DEPENDS=	libassuan.so:security/libassuan \
		libgpg-error.so:security/libgpg-error \
		libxcb.so:x11/libxcb \
		libxkbcommon.so:x11/libxkbcommon
RUN_DEPENDS=	gpg:security/gnupg \
		gpgme>=1.7.0:security/gpgme

USES=		cargo python:build
USE_GITHUB=	yes
GH_ACCOUNT=	orhun

BINARY_ALIAS=	python3=${PYTHON_CMD}

PLIST_FILES=	bin/gpg-tui \
		bin/gpg-tui-completions \
		man/man1/gpg-tui.1.gz

post-install:
		${INSTALL_DATA} ${WRKSRC}/man/gpg-tui.1 ${STAGEDIR}${MANPREFIX}/man/man1/
		${STRIP_CMD} ${STAGEDIR}${MANPREFIX}/bin/gpg-tui-completions
		${STRIP_CMD} ${STAGEDIR}${MANPREFIX}/bin/gpg-tui

.include <bsd.port.mk>