void-packages/srcpkgs/gopass/template
maxice8 945d85bef4 gopass: update to 1.7.2.
Closes #14760.

Signed-off-by: Enno Boland <gottox@voidlinux.eu>
2018-05-29 17:21:06 +02:00

32 lines
1.1 KiB
Bash

# Template file for 'gopass'
pkgname=gopass
version=1.7.2
revision=1
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/"
#changelog="https://raw.githubusercontent.com/justwatchcom/gopass/master/CHANGELOG.md"
distfiles="https://github.com/justwatchcom/gopass/archive/v${version}.tar.gz"
checksum=71fece96684e36f4765e913bf30bf93c9bf7a1df9638b9187732d49d8b2f22cb
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
}