# -*- 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.53.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  66e9fbff923c07a025a06d18187332312183e5db \
                    sha256  85796afa87ef116bc190c02dabdbb126bde27f534aa8682ebee58acdb2c9e350 \
                    size    3887081

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}
}
