# -*- 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.17.0 v
go.toolchain_min    1.24.1
go.offline_build    no
revision            0
categories          devel
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
license             MIT

description         Gopass Summon Provider

long_description    Use gopass as secret provider for summon.

checksums           rmd160  92c8ddab63796b1bbc1091f7d82244598e85a578 \
                    sha256  882a4f2eb927e3e256b109400797929560faed14e89737bde6d51f61a62c1005 \
                    size    14708

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/
}
