# -*- 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.65.0 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  10be0b14c1a446d1a1421d05b200a2a50de9d052 \
                    sha256  feb73b963ef14fe8fb1a3b77ad274e497edf41479a8f5d02155d0144de5625e1 \
                    size    635743

set commit          4a5a004edd67fbbc9aab475171784dce32b9a63f

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