# -*- 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/trek10inc/awsets 1.1.1 v
revision            0

description         A utility for crawling an AWS account and exporting \
                    all its resources for further analysis.

long_description    {*}${description}

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

checksums           rmd160  d2d170bdcbc48f6e1167f3a364b4a4e50ab248c1 \
                    sha256  ca09a889c642f27b6a171e83bb1999b677725d0676233137cc975d028e5f77a9 \
                    size    107573

build.dir           ${worksrcpath}/cmd/${name}

build.env-delete    GO111MODULE=off \
                    GOPROXY=off

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

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