# -*- 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/bufbuild/buf 1.54.0 v
go.offline_build    no
revision            0

categories          devel
license             Apache-2
maintainers         @mikaoj openmaintainer
description         Buf is a tool for working with Protocol Buffers.
long_description    The Buf CLI is a helpful tool for managing Protobuf schemas. \
                    It offers various features, including code generation, breaking change detection, linting, and formatting, \
                    to assist with Protobuf development and maintenance. \
                    It works with your choice of plugins and languages and gives you access to a vast library of certified plugins in the Buf Schema Registry.
homepage            https://buf.build/

checksums           rmd160  3f1b388fb703faf9463e89c5570f914c93839018 \
                    sha256  e64786bd2f17dc3731dd30280cf1ba24e0781300ea0f781251ce98ce13142f49 \
                    size    1550634

build.args-append   -ldflags="-s -w" -trimpath ./cmd/buf

destroot {
    xinstall -m 755 ${worksrcpath}/buf ${destroot}${prefix}/bin/buf
}

