# -*- 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/joerdav/xc 0.8.6 v
revision            0

homepage            https://xcfile.dev

description         \
    ${name} is a task runner designed to maximise convenience, and minimise \
    complexity.

long_description    \
    {*}${description} Each ${name} task is defined in simple, human-readable \
    Markdown. Meaning that for people without the ${name} tool installed \
    there is a clear source of useful commands in the README.md file.

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

checksums           rmd160  3752cc0ec20b3ae5aaef031b014d292ff3c90ed9 \
                    sha256  142c28aafa454b461b2950d980f0a8a5d89b59fb9032bbe23ca1015472bff691 \
                    size    196726

go.offline_build no
build.pre_args-append \
    -ldflags \"-X main.version=${github.tag_prefix}${version}\"
build.args          ./cmd/${name}

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