# -*- 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.2.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  aee4ac44ae83a440fc155d8676ffc4eb46cfb9e8 \
                    sha256  e2cfb09173cce87cb68c42331a6d4e23f5fd6135980e17c2dd37bfd23432cea3 \
                    size    1635016

# 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}/v5/cmd.Version=v${version}\"

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