# -*- 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.35.0 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  91d62fb25f3cec6aedba074fddfd08e4bcc28814 \
                        sha256  2a74a22b2cd13c4b2b4a76b3c855b43b75adf1569c3f40b14a98fd11bc65f230 \
                        size    1317712

