# -*- 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.9.0 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  278dfaed83450f12d47cb9b7733bd14f38a5c1d2 \
                    sha256  afcb5e1fbd1be5f0b6dcb802e02c96527ac0e96ddeb47471b8ad4056f91ccc72 \
                    size    199887

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