# -*- 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.42.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  0295a8fa1bb78922bed982daf93dd4e88cad0041 \
                    sha256  40cafbdedc8b956a4b7da331bae7c6ec26f891a40e789348d36bcddea9c88ee3 \
                    size    3888231

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