# -*- 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/mozilla/sops 3.9.4 v
go.package          go.mozilla.org/sops/v3
go.offline_build    no
revision            0

description         Simple and flexible tool for managing secrets

long_description    {*}${description}. sops is an editor of encrypted files \
                    that supports YAML, JSON, ENV, INI and BINARY formats and \
                    encrypts with AWS KMS, GCP KMS, Azure Key Vault and PGP.

categories          security
installs_libs       no
license             MPL-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  553727fbb20c032719119afab94a6b9d0da3b743 \
                    sha256  3e0fc9a43885e849eba3b099d3440c3147ad0a0cd5dd77a9ef87c266a8488249 \
                    size    250843

build.target        ./cmd/sops

pre-build {
    system -W ${worksrcpath} "${go.bin} mod tidy"
}

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

github.livecheck.regex {([0-9.]+)}