# -*- 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/sealed-secrets 0.41.1 v
go.offline_build    no
go.toolchain_min    1.27.3
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  c41c667833768dd919029e8e0698ae3611d62115 \
                    sha256  40b74c52831206404adcc88a1f078c00e77064cbf3815d2cd234ee5f2cde4ad5 \
                    size    1346196

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