# -*- 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/homeport/havener 2.2.6 v
revision            0

description         A swiss army knife for Kubernetes tasks

long_description    {*}${description}

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  03593b4fb7e5fec35ead347ede903c7cf75bd107 \
                    sha256  f5fe8bc809694bd8c757c3ddaac91cdcc20eb9efc988dd736838b0a8bbfdf7e8 \
                    size    10407254

build.pre_args-append \
    -ldflags \" \
        -s -w  \
        -X ${go.package}/internal/cmd.version=${github.tag_prefix}${version} \
    \"

build.args          ./cmd/${name}

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