# -*- 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-jsonapi 1.17.2 v
go.toolchain_min    1.25.0
go.offline_build    no
revision            0
categories          security
maintainers         {@sikmir disroot.org:sikmir} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
license             MIT

description         Gopass Browser Bindings
long_description    ${name} enables communication with gopass via JSON messages
homepage            https://www.gopass.pw

checksums           rmd160  d75a842347ceb9bb93125e6a40944d8f17544f19 \
                    sha256  b1369a2bad432386455d7aa3002f93910f9e275fc3c33e3f37f5731aa918f07a \
                    size    35724

build.cmd           ${go.bin} mod tidy && ${go.bin} build
build.args          -ldflags '-X main.version=${version}' -tags=noscreenshot

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