# -*- 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/lucagrulla/cw 4.1.3 v
revision            0

homepage            https://www.lucagrulla.com/cw

description         The best way to tail AWS CloudWatch Logs from your terminal
long_description    {*}${description}

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

checksums           rmd160  4050b5ddcb65cac5973d9069016bebc4298ebffb \
                    sha256  f7780a47ca0912d6d2d1f39dc59c65211eef8b189296813aabcffeda0585c9d2 \
                    size    109554

# Allow Go to fetch dependencies during build time
go.offline_build no

build.pre_args-append \
    -ldflags \" -X main.version=${version} \"

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