# -*- 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.66.0 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  78dc085f18f28c221a8babb1fcf96343a399a972 \
                    sha256  dd64cf3d2eca40ac86c29f748e6c74393506f89556b0172ef668dd24922ffd9a \
                    size    9035856

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