# -*- 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/brentp/gargs 0.3.9 v
go.offline_build    no
revision            0

description         better\(\?\) xargs in go

long_description    {*}${description}

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

checksums           rmd160  81b0e52873da861e6e8bcce38017e723dd12f730 \
                    sha256  635dbaa6def7438240032a6ea70ae0f2249868d50df17e16bfd564591e30692c \
                    size    16059

build.cmd           \
    "${go.bin} mod init ${go.package} && ${go.bin} mod tidy && ${go.bin} build"

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