From 5bb3316f2c59e27cb8cdc9b8d8625753cab80323 Mon Sep 17 00:00:00 2001 From: Dmytro Shynkevych Date: Sun, 24 Jan 2021 16:50:50 -0500 Subject: [PATCH] gopass: update to 1.12.0. --- srcpkgs/gopass/template | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) diff --git a/srcpkgs/gopass/template b/srcpkgs/gopass/template index 2f6f5c860fa..2b3964146ab 100644 --- a/srcpkgs/gopass/template +++ b/srcpkgs/gopass/template @@ -1,8 +1,9 @@ # Template file for 'gopass' pkgname=gopass -version=1.10.1 -revision=2 +version=1.12.0 +revision=1 build_style=go +build_helper=qemu go_import_path=github.com/gopasspw/gopass go_package="${go_import_path} ${go_import_path}/cmd/..." makedepends="gnupg2" @@ -13,29 +14,19 @@ license="MIT" homepage="https://www.gopass.pw/" changelog="https://raw.githubusercontent.com/gopasspw/gopass/master/CHANGELOG.md" distfiles="https://github.com/gopasspw/gopass/archive/v${version}.tar.gz" -checksum=f4bfe03bc26701baf411795faafe774aa6025bc6050ab3ebf7e931e5ff821961 - -if [ "$CROSS_BUILD" ]; then - # Depend on system gopass to generate completions - hostmakedepends+=" gopass" -fi +checksum=73b7c5c8367e664d85871fba88f4fa806ef0fb75047c767a72b8516dea6f64b3 post_build() { - local GOPASS=${GOPATH}/bin/gopass - local completions=(zsh bash fish) - - if [ "$CROSS_BUILD" ]; then - GOPASS=/usr/bin/gopass - fi - - for completion in "${completions[@]}"; do - $GOPASS completion $completion > ${completion}.completion; + gopass=$(find $GOPATH/bin -name gopass) + for shell in bash fish zsh; do + vtargetrun $gopass completion $shell > completion.$shell done } post_install() { - install -Dm0755 zsh.completion ${DESTDIR}/usr/share/zsh/site-functions/_gopass - install -Dm0755 bash.completion ${DESTDIR}/usr/share/bash-completion/completions/gopass - install -Dm0755 fish.completion ${DESTDIR}/usr/share/fish/vendor_completions.d/gopass.fish vlicense LICENSE + + for shell in bash fish zsh; do + vcompletion completion.$shell $shell + done }