# -*- 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.0 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  6c29e9226744ae85cf551b48d1ff34cb6f6b440e \
                    sha256  a738f26abc2bed3cdf82e7f001fb447afcf30f785c827a8f9d95eb9d6c02d942 \
                    size    16199

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}
}
