# -*- 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/acorn-io/acorn 0.10.1 v
go.offline_build    no
github.tarball_from archive
revision            0

homepage            https://docs.acorn.io

description         \
    A simple application deployment framework for Kubernetes

long_description    {*}${description}

categories          devel
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  ae80dceac6e8433205ffa6d2877f404d2cd3ce79 \
                    sha256  f52a8a66fbbd74cf688515de7fb5bcc0f7ef87618ae2ca4fefdc11dcec2f0b94 \
                    size    1803234

build.cmd           \
    ${go.bin} generate && ${go.bin} build -o bin/${name} \
    -ldflags '-X ${go.package}/pkg/version.Tag=v${version}' .

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

github.livecheck.regex \
                    {([0-9.]+)}