# -*- 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/fishi0x01/vsh 0.13.0 v
revision            0

description         HashiCorp Vault interactive shell and cli tool

long_description    ${name} is a {*}${description}. It comes with multiple \
                    common operations and treats paths like directories and \
                    files.

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

checksums           rmd160  ddbdd2d1810501e1276ae4cf3cce7cf3815e2f69 \
                    sha256  466e90137244b13c44befef8fc534f158c4ebe601bc20a66f0e8eabd9fbf9b27 \
                    size    8338917

build.cmd           make
build.args          VERSION=${version} PLATFORMS=darwin ARCHS=${goarch}
build.target        compile

destroot {
    xinstall -m 0755 ${worksrcpath}/build/${name}_darwin_${goarch} \
        ${destroot}${prefix}/bin/${name}

    set vsh_doc_dir ${prefix}/share/doc/${name}
    xinstall -d -m 0755 ${destroot}${vsh_doc_dir}
    copy ${worksrcpath}/doc/commands ${destroot}${vsh_doc_dir}
}
