# -*- 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/rancher/k3d 5.9.0 v
go.offline_build    no
revision            0

homepage            https://k3d.io

description         \
    Helper to run Rancher Lab's k3s in Docker

long_description    \
    k3s is the lightweight Kubernetes distribution by Rancher. k3d creates \
    containerized k3s clusters. This means, that you can spin up a multi-node \
    k3s cluster on a single machine using docker.

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

checksums           rmd160  defd5821dcd5707aafdc55f44dfb41bf66053938 \
                    sha256  969cce82c4871bb829be798655abe2b6709b77cc0f42f7ff69293c621dfbbab0 \
                    size    8955790

build.cmd           make
build.pre_args      GIT_TAG=v${version}
build.args          build

use_parallel_build  no

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

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