# -*- 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.65.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  bcfa3e91dfbb2cd8fa64018326c39c49eae54f7f \
                    sha256  cfe141f6e00816e9bddaa3d32216295176386b42d9202adbb76f48b78fd5e979 \
                    size    8776971

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