# -*- 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/cli 2.12.2 v
github.tarball_from archive
name                rancher-cli
revision            0
categories          devel sysutils
license             Apache-2
maintainers         {emcrisostomo @emcrisostomo} \
                    openmaintainer

description         The Rancher Command Line Interface (CLI) is a unified \
                    tool for interacting with your Rancher Server.
long_description    The Rancher CLI (Command Line Interface) is a unified \
                    tool that you can use to interact with Rancher.  With \
                    this tool, you can operate Rancher using a command \
                    line rather than the GUI.

checksums           rmd160  881aacad1f22954be209bcff2e53ba342dd687b1 \
                    sha256  8a2d1a0efe02de5cab44550f4c58dadacc9a6c9c89fa0a4437f714110ed7a9ac \
                    size    60735

go.offline_build no
build.pre_args-append       -ldflags "\"-w -X main.VERSION=${version}\""
build.args          github.com/rancher/cli

destroot {
    xinstall -m 755 ${worksrcpath}/cli ${destroot}${prefix}/bin/rancher
}

github.livecheck.regex  {([^"r]+)}
