# -*- 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.10.1 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
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  acf523f72fd273b932870a3ab5c4dcf19c4a71f3 \
                    sha256  bc6b10ec453921db4041e046779ea1462f8ea58eeb354998e4e4a8fa32ef8715 \
                    size    73670

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