# -*- 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/yannh/kubeconform 0.8.0 v
go.toolchain_min    1.26
revision            0

description         \
    A FAST Kubernetes manifests validator, with support for Custom Resources\!

long_description    \
    Kubeconform is a Kubernetes manifest validation tool. Incorporate it into \
    your CI, or use it locally to validate your Kubernetes configuration\!

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

build.args-append   \
    -o ./bin -ldflags \"-X main.version=${github.tag_prefix}${version}\" ./...

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

checksums           ${distname}${extract.suffix} \
                        rmd160  08c786422457dd464380b5da478d05fa74869f43 \
                        sha256  c345de9c3207f2d24628c64fe3cb9bed55c4248b12c181efe81ee907d6c994f2 \
                        size    6330182

