# -*- 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.29.0 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  02a5d6460b5c617d49c403cc165b9ee0de573eb5 \
                    sha256  5090d84873b64a6c3dbea56427c909081ba19d69d4e0aa87c6a285e09bc30182 \
                    size    1322832

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