# -*- 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/datreeio/datree 1.9.19
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0

categories          devel
maintainers         {@Ci7rix unset.ch:max+github} openmaintainer
license             Apache-2

description         CLI tool to run policies against Kubernetes manifests YAML files or Helm charts
long_description    Datree automatically validates Kubernetes objects for rule violations, ensuring no misconfigurations reach production

checksums           ${distname}${extract.suffix} \
                    rmd160  5d8eeb9344d945ca25bd09b2d0d9b772e91d3a55 \
                    sha256  250e58ce930fb26a3c5a2a71071d91ff5abb2e6baba7556a42ece791e5087f9e \
                    size    5792755


set go_ldflags      "-s -w -X ${go.package}/cmd.CliVersion=${version}"
build.args          -tags main -ldflags \"${go_ldflags}\"
go.offline_build no

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