# -*- 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.27.0 v
go.offline_build    no
set git-commit      14ccbf5
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  5248c91b256823c4c7ea68517bb8bd0d7ac0c7b9 \
                    sha256  5dadbda3f18dafa6384490c448a9b8f4cb74dff6652af1efbd0a06af4557175f \
                    size    126301

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

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

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