# -*- 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.offline_build    no

go.setup            github.com/grafana/tanka 0.38.0 v
go.toolchain_min    1.26.1
categories          sysutils
maintainers         nomaintainer
license             Apache-2

description         Flexible, reusable and concise configuration for Kubernetes

long_description    Grafana Tanka is the robust configuration utility for your \
                    Kubernetes cluster, powered by the unique Jsonnet language.

homepage            https://tanka.dev

build.args          -o ${worksrcpath}/tk \
                    -ldflags \" \
                        -s \
                        -w \
                        -extldflags "-static" \
                        -X github.com/grafana/tanka/pkg/tanka.CurrentVersion=v${version} \
                    \" \
                    ./cmd/tk
build.env-append    CGO_ENABLED=0

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

checksums           ${distname}${extract.suffix} \
                        rmd160  969b4c20552f846daae6eb4c3b36027c319d7aed \
                        sha256  aaff4b21c0d3a5b67cc9a42c77d8a6922533f887178d095217d0d28482a1cf67 \
                        size    1369102

