# -*- 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.8.3 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  1c09a5a348ac6f253fb0076b020fae60152bf930 \
                    sha256  2ef51e029f43e70dcda616de98980017ca7de18848265525bf7882d2bd66f9f2 \
                    size    9542510

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.]+)}
