void-packages/srcpkgs/gopass/template
Dominic Monroe 144cd70450 gopass: update to 1.6.10.
Closes: #11190 [via git-merge-pr]
2018-01-28 13:16:17 +01:00

31 lines
1 KiB
Bash

# Template file for 'gopass'
pkgname=gopass
version=1.6.10
revision=2
build_style=go
go_import_path="github.com/justwatchcom/gopass"
depends="gnupg2 git"
makedepends="gnupg2"
short_desc="The slightly more awesome standard unix password manager for teams"
maintainer="Dominic Monroe <monroef4@googlemail.com>"
license="MIT"
homepage="https://www.justwatch.com/gopass/"
distfiles="https://github.com/justwatchcom/gopass/archive/v${version}.tar.gz"
checksum=cd007c52df5f46a24c1af1bea44ee892d59a47f144dd09ac70e42fcda0ef3db5
nocross=yes
post_build() {
local GOPASS=${GOPATH}/bin/gopass
local completions=(zsh bash fish)
for completion in "${completions[@]}"; do
$GOPASS completion $completion > ${completion}.completion;
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
}