# -*- 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/wader/fq 0.18.0 v
go.offline_build    no
go.toolchain_min    1.25.0
revision            2

description         jq for binary formats

long_description    \
    {*}${description}. ${name} is a tool, language and set of decoders for \
    inspecting binary data. In most cases ${name} works the same way as jq \
    but instead of reading JSON it reads binary data. The result is a JSON \
    compatible structures where each value has a bit range, symbolic \
    interpretations and know how to be presented in a useful way.

categories          sysutils
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  4c4e7a96c0435dd63339dc6af1f49babb957b6d5 \
                    sha256  2580de6fb21281a262f99f24d585a925cef71f158c2b24a34125e1b29bc612ef \
                    size    18139145

build.pre_args-append \
    -ldflags \"-s -w -X main.version=${github.tag_prefix}${version}\"

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

    xinstall -d ${destroot}${prefix}/share/man/man1
    xinstall -m 0644 ${worksrcpath}/doc/${name}.1 \
        ${destroot}${prefix}/share/man/man1/
}
