# -*- 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/sibprogrammer/xq 1.5.1 v
go.offline_build    no
go.toolchain_min    1.26.1
revision            0

description         Command-line XML and HTML beautifier and content extractor

long_description    {*}${description}

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

build.args-append   \
    -ldflags \" -X main.version=${version} \"

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

    xinstall -d ${destroot}${prefix}/share/man/man1

    copy \
        ${worksrcpath}/docs/${name}.man \
        ${destroot}${prefix}/share/man/man1/${name}.1
}

checksums           ${distname}${extract.suffix} \
                        rmd160  42b32e4cf1bc38c0ecedaeec79a954b4d287e251 \
                        sha256  d57579a6c2009f3bd0f6b6f66f12744eb895575b767e7a02a099003c6bdcda3d \
                        size    161599

