# -*- 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/k0sproject/k0sctl 0.23.0 v
go.offline_build    no
github.tarball_from archive
revision            0

description         A bootstrapping and management tool for k0s clusters.

long_description    {*}${description}

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

checksums           rmd160  c441f9cecd302fabb7e46c51da024dcd0d5e8ad6 \
                    sha256  6b3e93c2bd27b0a881160c3128061e31498ab1e4086adf7f419b1d06fdbe9ecb \
                    size    109938

build.cmd           make
build.pre_args-append \
                    TAG_NAME=${github.tag_prefix}${version}
build.args          ${name}

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

github.livecheck.regex \
                    {([0-9\.]+)}
