# -*- 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/scaleway/scaleway-cli 2.45.0 v
go.offline_build    no
revision            0
name                scw

homepage            https://www.scaleway.com/en/cli/

categories          net
installs_libs       no
license             Apache-2
maintainers         {gmail.com:davidriod @dgsb} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

description         Command Line Interface for Scaleway

long_description    Scaleway CLI is a tool to help you pilot your Scaleway \
                    infrastructure directly from your terminal.

checksums           rmd160  772272556e2afea7c863b30131d829e1fdee1dbd \
                    sha256  8c9d56d752d06e35abccb0f626e7df2418a17a22b27cb1a49a2638370f0f2c83 \
                    size    3946345

build.pre_args-append \
    -ldflags \" -X main.Version=${github.tag_prefix}${version} \"
build.args          ./cmd/scw

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