# -*- 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.55.1 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  c2008ef6d8bf503419cb5af2b7c0edf256c93368 \
                    sha256  01663475792aa851d4b3af16be9ec19d808cead673f986902343beed1a0063dd \
                    size    1565778

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

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

