# Template file for 'docker-credential-pass'
pkgname=docker-credential-pass
version=0.6.0
revision=1
wrksrc="docker-credential-helpers-${version}"
build_style=go
go_import_path="github.com/docker/docker-credential-helpers"
go_package="${go_import_path}/pass/cmd"
depends="pass gnupg2"
only_for_archs="x86_64 x86_64-musl"
short_desc="Use native stores to keep Docker credentials safe"
maintainer="Hoang Nguyen <hoang@wetrust.io>"
license="MIT"
homepage="https://github.com/docker/docker-credential-helpers"
distfiles="https://${go_import_path}/archive/v${version}.tar.gz"
checksum=7d8cdb67c89dece68e96dce11eab9d03c1d798296d3f3601eec4589b24664e7a

# the build step installed the binary named cmd because
# the authors structured their code that way.
do_install() {
	vbin "${GOPATH}/bin/cmd" "${pkgname}"
}

post_install() {
	vlicense LICENSE
}
