# -*- 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.0.8 v
github.tarball_from archive
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  4ce7708206c4b420091a19878d54383cda6c2fc8 \
                    sha256  b959adee700fa42618bf49b578cd55b4471d54db351a12c513bf2ad2fa3368c4 \
                    size    474936

# Allow deps to be fetched at build time
build.env-delete    GO111MODULE=off GOPROXY=off

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/
}
