# -*- 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/omegion/ssh-manager 1.2.0 v
revision            0

description         SSH Key Manager for Bitwarden and 1Password
long_description    {*}${description}

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

checksums           rmd160  3ecfb39df42899bd3a2c874e136c5404a67b6921 \
                    sha256  aa9d5f76901b8a523a031d37763b36cfc9580a30d71935dbe81e279adee94d70 \
                    size    45937

# Allow Go to fetch dependencies at build time
go.offline_build no

build.cmd           make
build.pre_args-append \
                    VERSION=${version}
build.args          build

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

notes "
  To install the 1Password CLI, issue:

  $ sudo port install 1password-cli
"