# -*- 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.40.0 v
go.offline_build    no
go.toolchain_min    1.26.7
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  33f92552db7767303920fb89f7937884b8855a41 \
                    sha256  d80d44401f3516d2b31c3e51dcd0826ad8ae90d976c2e86010be2c665ff23d99 \
                    size    1343381

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.]+)}
