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

description         Gopass Summon Provider

long_description    Use gopass as secret provider for summon.

checksums           rmd160  bdc36db9564ee2241991dd51b59dee0858d7e179 \
                    sha256  5e8acaccb020ac6691157c793937af940444bac77391d5f491b874d30e305da0 \
                    size    15227

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