# -*- 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/schollz/zget 1.1.12 v
revision            0

description         zack's wget

long_description    {*}${description}. ${name} is a mashup of curl and wget.

categories          net www
installs_libs       no
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer
license             MIT

# Allow Go to download deps during build time
go.offline_build no
go.toolchain_min    1.23.0

build.pre_args-append \
                    -ldflags \" \
                        -s -w -X main.Version=${github.tag_prefix}${version} \
                    \"

checksums           rmd160  d156bd4deafa1a62aabe15d4d8d78fad7492a3b7 \
                    sha256  d7870449d64899a00e9b29dfb95e53139931b46466dcf9cb981159bcf5c80419 \
                    size    46046

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