# -*- 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/szazeski/checkssl 1.0.2 v
revision            0

# See 'go' line in go.mod
go.toolchain_min    1.27

homepage            https://www.checkssl.org

description         checkssl - simple command line tool to check or monitor your https certificate

long_description    ${description}

categories          sysutils devel
license             MIT
installs_libs       no

maintainers         {breun @breun} \
                    openmaintainer

checksums           rmd160  b90f3ab069e6d276833c7a6747901d8d7b900d1a \
                    sha256  0c19b36b8a8689dc6274bc44961523d9be0969c25de75b9d135a0974242e80d7 \
                    size    16297

destroot {
    set doc_dir ${destroot}${prefix}/share/doc/${name}

    # Create the doc_dir directory
    xinstall -m 755 -d ${doc_dir}

    # Copy the docs
    foreach f { LICENSE README.md } {
        copy ${worksrcpath}/${f} ${doc_dir}
    }

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