# -*- 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/eksctl-io/eksctl 0.230.0 v
go.package          github.com/weaveworks/eksctl
go.offline_build    no
go.toolchain_min    1.26.5
revision            0

homepage            https://eksctl.io

description         Simple CLI tool for creating clusterrs on AWS EKS

long_description    \
    eksctl is a simple CLI tool for creating clusters on EKS - Amazon’s new \
    managed Kubernetes service for EC2. It is written in Go, uses \
    CloudFormation, was created by Weaveworks.

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

checksums           rmd160  ab068d02cf1a6f8c66bb483792676920333475ad \
                    sha256  dc0dfa06aa180f2b8d2009cc00f4f0b03ace9a24340484a293aa0f60dc96290e \
                    size    12123717

build.cmd           make
build.target        binary

destroot {
    xinstall ${worksrcpath}/eksctl ${destroot}${prefix}/bin/eksctl

    set bashCompletionPrefix ${prefix}/share/bash-completion/completions
    set fishCompletionPrefix ${prefix}/share/fish/vendor_completions.d
    set zshCompletionPrefix  ${prefix}/share/zsh/site-functions

    xinstall -d ${destroot}${bashCompletionPrefix}
    xinstall -d ${destroot}${fishCompletionPrefix}
    xinstall -d ${destroot}${zshCompletionPrefix}

    exec ${destroot}${prefix}/bin/eksctl completion bash > \
        ${destroot}${bashCompletionPrefix}/${name}

    exec ${destroot}${prefix}/bin/eksctl completion fish > \
        ${destroot}${fishCompletionPrefix}/${name}.fish

    exec ${destroot}${prefix}/bin/eksctl completion fish > \
        ${destroot}${zshCompletionPrefix}/_${name}
}

github.livecheck.regex  {([0-9.]+)}
