# -*- 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 0.6.0 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0

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  38150b170472a02463f5ba45dbd86728d2aa8261 \
                    sha256  bb3d15ab940670f86fc142705de2c4047252a020f960ec8b1b391f21328a3b84 \
                    size    14592

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