# -*- 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/git-town/git-town 16.3.0 v
github.tarball_from archive
revision            0

description         High-level command-line interface for Git
long_description    {*}${description}

categories          devel
installs_libs       no
license             MIT
maintainers         {karpenko.ca:alexei @akarpenko} \
                    {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

homepage            https://www.git-town.com/

checksums           sha256  1d71998a4772d8f8fa277fb31ddb74612b8c4586c62b4bd261c478f05dcedcc6 \
                    rmd160  5074550be661a0eca82600b40eaa87137d3e9a59 \
                    size    4083731

build.pre_args-append \
    -ldflags \"-X ${go.package}/src/cmd.version=v${version}\"

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