PORTNAME=	age
DISTVERSIONPREFIX=	v
DISTVERSION=	1.3.1
PORTREVISION=	7
CATEGORIES=	security

MAINTAINER=	bofh@FreeBSD.org
COMMENT=	Simple, modern and secure file encryption tool
WWW=		https://github.com/FiloSottile/age

LICENSE=	BSD3CLAUSE
LICENSE_FILE=	${WRKSRC}/LICENSE

USES=		go:modules

GO_MODULE=	filippo.io/age
GO_TARGET=	./cmd/age \
		./cmd/age-keygen \
		./cmd/age-plugin-batchpass

PLIST_FILES=	bin/age \
		bin/age-keygen \
		bin/age-plugin-batchpass \
		share/man/man1/age-inspect.1.gz \
		share/man/man1/age-keygen.1.gz \
		share/man/man1/age-plugin-batchpass.1.gz \
		share/man/man1/age.1.gz

post-install:
	${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/share/man/man1/

.include <bsd.port.mk>
