# -*- 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.51.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  611e466fd3f1523641fd1b51fc8bbb3ad001b989 \
                    sha256  7467045861f7d31c2278af1002e263336f3c5e8d36ab4362d1a5b8dd74cdcf4d \
                    size    3860096

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