# -*- 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.5 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  39b19b92c5f6a7f2f59f42559e4546237b8ff868 \
                    sha256  374b3d4fe19355a1bc5ba63fd8bc346f027e6a1dbb04af631683ca45a24d806a \
                    size    195204

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/
}
