# -*- 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.38.4 v
go.offline_build    no
go.toolchain_min    1.26.4
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  26828a3ba3c452e0ac38b61e5230b2b560f5b11d \
                    sha256  7076a3278ac29e5f3f8ac6676414e4c24f01303c1405b99a1caebe88f5977d7e \
                    size    1336342

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