# -*- 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.75.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  b7ab0a95253790adb1b9265910f735f064347093 \
                    sha256  3b0518cf5e96ec01e86cd398de895759b1c7be44897da1326a4144636852492c \
                    size    60122

# 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
"
