# -*- 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/ekristen/aws-nuke 3.64.1 v
go.package          github.com/ekristen/aws-nuke/v3
go.offline_build    no
revision            0

homepage            https://aws-nuke.ekristen.dev/

description         Remove all the resources from an AWS account

long_description    {*}${description}

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

checksums           rmd160  c83e74dbe81f7e991579e92ab68c2e52b96e7ea1 \
                    sha256  23c28fd84afdf16eb69725055dce59cb1581d0ba38e07c5ba6bbd431e0b98ba9 \
                    size    632959

set commit          0e2c20da086f62a17ee5862de2260e2214e3e774

build.args-append   \
    -ldflags \" \
        -X ${go.package}/pkg/common.BRANCH=master       \
        -X ${go.package}/pkg/common.COMMIT=${commit}    \
        -X ${go.package}/pkg/common.SUMMARY=v${version} \
        -X ${go.package}/pkg/common.VERSION=${version}  \
    \"

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

    xinstall -d ${destroot}${prefix}/share/${name}/
    copy ${worksrcpath}/docs ${destroot}${prefix}/share/${name}/
}
