# -*- 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.32.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  5e6f8c33529c6562265f66d32d3f7042fcd8f0e1 \
                        sha256  5d328d3a499787b1eb5d20ddbe20119048636e972db6cd75a3bb83c415f1cce3 \
                        size    1293910

