# -*- 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/bitnami-labs/sealed-secrets 0.36.6 v
go.offline_build    no
name                kubeseal
revision            0

description         Kubernetes tool for one-way encrypted Secrets
long_description    CLI for {*}${description}

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

checksums           rmd160  0012760b84aa1b58496d29134732595b58e81943 \
                    sha256  ace1ca2c50379538514f5a8116c8a48d24ef3a856d3699d2085159e2ba75a1ae \
                    size    1329367

build.cmd           make
build.target        ${name}

use_parallel_build  no

patch {
    reinplace \
        "s|^TAG = .*|TAG = ${github.tag_prefix}${version}|" \
        ${worksrcpath}/Makefile
}

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

github.livecheck.regex \
                    {([\d.]+)}
