# -*- 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/achannarasappa/ticker 5.3.0 v
revision            0

description         Terminal stock ticker with live updates and position \
                    tracking

long_description    {*}${description}. Provides Live stock price quotes, \
                    lets you track the value of your stock positions, \
                    and supports multiple cost basis lots as well as pre and \
                    post market price quotes.

categories          finance
installs_libs       no
license             GPL-3
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  4beff5a09fd0d10ee17d7bb4e1a4c02a973a8718 \
                    sha256  c11e522a309feee522cf3af22d1581a5a1ef338bb6a597fc0c1839b6f0142b42 \
                    size    1681529

# Building with go.vendors doesn't work very well as ticker is not using a
# fully qualified module name in both go.mod and Go sources.  Allow to build
# as it naturally would for now.
go.offline_build no
go.toolchain_min    1.26.4

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

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