pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

gopass: Include shell completion files in package



Module Name:	pkgsrc-wip
Committed By:	Iku Iwasa <iku.iwasa%gmail.com@localhost>
Pushed By:	iquiw
Date:		Tue Feb 11 16:28:35 2020 +0900
Changeset:	c717cc9811e203a75b2ffe5bb5395cc1d9539c2f

Modified Files:
	gopass/Makefile
	gopass/PLIST

Log Message:
gopass: Include shell completion files in package

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=c717cc9811e203a75b2ffe5bb5395cc1d9539c2f

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 gopass/Makefile | 19 +++++++++++++++++--
 gopass/PLIST    |  3 +++
 2 files changed, 20 insertions(+), 2 deletions(-)

diffs:
diff --git a/gopass/Makefile b/gopass/Makefile
index ee7dd73451..0f39b82775 100644
--- a/gopass/Makefile
+++ b/gopass/Makefile
@@ -1,7 +1,7 @@
 # $NetBSD$
 
 PKGNAME=	gopass-1.8.6
-PKGREVISION=	4
+PKGREVISION=	5
 DISTNAME=	gopass-${GITHUB_TAG}
 CATEGORIES=	security
 MASTER_SITES=	${MASTER_SITE_GITHUB:=gopasspw/}
@@ -18,10 +18,25 @@ EXTRACT_USING=	bsdtar
 GO_DIST_BASE=	${GITHUB_PROJECT}-${PKGVERSION_NOREV}
 GO_SRCPATH=	github.com/gopasspw/gopass/
 
-INSTALLATION_DIRS+=	bin
+INSTALLATION_DIRS+=	bin \
+			share/bash-completion/completions \
+			share/fish/vendor_completions.d \
+			share/zsh/site-functions
+
+post-build:
+	cd ${WRKDIR} && \
+	./bin/gopass completion bash > ${WRKSRC}/completion.bash && \
+	./bin/gopass completion fish > ${WRKSRC}/completion.fish && \
+	./bin/gopass completion zsh  > ${WRKSRC}/completion.zsh
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKDIR}/bin/gopass ${DESTDIR}${PREFIX}/bin
+	${INSTALL_DATA} ${WRKSRC}/completion.bash \
+			${DESTDIR}${PREFIX}/share/bash-completion/completions/gopass
+	${INSTALL_DATA} ${WRKSRC}/completion.fish \
+			${DESTDIR}${PREFIX}/share/fish/vendor_completions.d/gopass.fish
+	${INSTALL_DATA} ${WRKSRC}/completion.zsh \
+			${DESTDIR}${PREFIX}/share/zsh/site-functions/_gopass
 
 .include "../../lang/go/go-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/gopass/PLIST b/gopass/PLIST
index cb851a117d..55938406be 100644
--- a/gopass/PLIST
+++ b/gopass/PLIST
@@ -1,2 +1,5 @@
 @comment $NetBSD$
 bin/gopass
+share/bash-completion/completions/gopass
+share/fish/vendor_completions.d/gopass.fish
+share/zsh/site-functions/_gopass


Home | Main Index | Thread Index | Old Index