# -*- 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.17.0 v
go.offline_build    no
go.toolchain_min    1.25.0
revision            1

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

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

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

checksums           ${distname}${extract.suffix} \
                        rmd160  33064cc21254a9f1c586cbdc04558defd72c6eb6 \
                        sha256  c5658b2bc635a1d344c64e37d7311157f0fc4b20cc3cfa4d09bdd2f023692d57 \
                        size    17997865

