# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/gopasspw/gopass-summon-provider 1.15.15 v
go.offline_build    no
github.tarball_from archive
revision            0
categories          devel
maintainers         {@0x1DA117 danieltrautmann.com:me} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
license             MIT

description         Gopass Summon Provider

long_description    Use gopass as secret provider for summon.

checksums           rmd160  85c23a697d8a0d77369991a533092582eb7d42a2 \
                    sha256  b71f5c38e035d10ab9deaa4d3ecda5c9c15a023fe3475a34505c425ebc64faac \
                    size    15025

build.cmd           ${go.bin} mod tidy \&\& ${go.bin} build
build.args          -o ${worksrcpath}/${name} \
                    -trimpath \
                    -ldflags \" \
                        -s \
                        -w \
                        -X main.version=${version} \
                    \" \
                    -gcflags \" \
                        -trimpath=${gopath} \
                    \" \
                    -asmflags \" \
                        -trimpath=${gopath} \
                    \"

build.env-append    CGO_ENABLED=0

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}