# -*- 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/vmware-tanzu/carvel-kapp 0.64.1 v
go.offline_build    no
name                kapp
revision            0

homepage            https://get-kapp.io

description         kapp is a simple deployment tool focused on the concept \
                    of "Kubernetes application" — a set of resources with the \
                    same label

long_description    kapp (pronounced: kap) CLI encourages Kubernetes users to \
                    manage resources in bulk by working with "Kubernetes \
                    applications" (sets of resources with the same label). \
                    It focuses on resource diffing, labeling, deployment and \
                    deletion. Unlike tools like Helm, kapp considers YAML \
                    templating and management of packages outside of its \
                    scope, though it works great with tools that generate \
                    Kubernetes configuration.

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

checksums           rmd160  ca994271611179ab5aaa3f052effc0a6cb081e2e \
                    sha256  32f79f2e25a8b67e2f8456e1446acaa8bd9a6593680a1afadd33179a87f95d67 \
                    size    8312750

build.env-append    CGO_ENABLED=0

build.pre_args-append \
    -mod=vendor \
    -ldflags \"-X ${go.package}/pkg/kapp/version.Version=${github.tag_prefix}${version}\"

build.args          ./cmd/${name}

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