# -*- 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/argoproj/argo-cd 3.5.1 v
go.offline_build    no
go.toolchain_min    1.26
name                argocd
revision            0

homepage            https://argoproj.github.io/argo-cd

description         Declarative continuous deployment for Kubernetes

long_description    \
    Argo CD is a declarative, GitOps continuous delivery tool for Kubernetes. \
    Argo CD follows the GitOps pattern of using Git repositories as the \
    source of truth for defining the desired application state. This port \
    installs the Argo CD CLI.

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

checksums           rmd160  e8fc4c1a19f9859edfe9673f3d2c564081b102cd \
                    sha256  d2a97bfe71bd6135f1643ceaace39c40067ce1ebe1d1f44274516f3618eeff10 \
                    size    52553949

build.cmd               make
build.pre_args-append   GOPATH=${gopath}
build.args-append       cli-local

use_parallel_build  no

post-patch {
    reinplace {s|build -v -i|build -v|g} ${worksrcpath}/Makefile
}

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

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