# -*- 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 4.8.1 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  e0044e2d3eac9df658448a291159d586c12bf065 \
                    sha256  dfbb82fa4484b8a244945597679ce9a3cd54d9da93a784de7e29a9dc1ee2064b \
                    size    191912

# 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

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

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