# -*- 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.13.1 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  0c0587674e8726edcd33cc4bb915990aabca8c98 \
                    sha256  e6893558d3168007e504e19977ec4c7e6cf58beb6c864214911b97a344b5e978 \
                    size    60801

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