# -*- 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.36.1 v
categories          sysutils
maintainers         {@0xIDANT danieltrautmann.com:me} openmaintainer
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  3544da25cb56eb579abe53efaafe09409f169d78 \
                        sha256  bd2e7ddf4804437f85061bce30d84ffab1035027335bdf9ef5536f95b0584b00 \
                        size    1329773

