# -*- 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 22.5.0 v
set major_ver       [lindex [split ${github.version} .] 0]
go.package          github.com/git-town/git-town/v${major_ver}
go.offline_build    no
github.tarball_from archive
revision            0

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

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

checksums           sha256  96c79b1f15625d0604c8b7f0d41ab8d079ca5c227e890261ea9e3cc5897a9d21 \
                    rmd160  0b8bc5bc27d335deab1a36516b6f9f5bfce49098 \
                    size    5311739

build.pre_args-append \
    -ldflags \" \
        -X ${go.package}/internal/config.GitTownVersion=v${version} \
    \"

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